Register

Token Factions

An Add-on Module for Foundry Virtual Tabletop

Author: 4535992 Project Source: Project URL Versions 11 - 12 (Verified 11) Last Updated 5 months, 2 weeks ago

Tokens Faction

This module will allow you to assign tokens to factions by using the token's disposition colors, the token actor's folder color, or defining your own custom replacement colors for token dispositions.

If you want to buy me a coffee alt-text

This module will allow you to assign tokens to factions by using the token's disposition colors, the token actor's folder color, or defining your own custom replacement colors for token dispositions.

alt text

Installation

It's always easiest to install modules from the in game add-on browser.

To install this module manually:

  1. Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
  2. Click "Install Module"
  3. In the "Manifest URL" field, paste the following url: https://raw.githubusercontent.com/p4535992/foundryvtt-token-factions/master/src/module.json
  4. Click 'Install' and wait for installation to complete
  5. Don't forget to enable the module in game using the "Manage Module" button

libWrapper

This module uses the libWrapper library for wrapping core methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

Known issue

Configuration

alt text

Generate Token Faction Color From

Default: A Token's Disposition

This option uses the default Token Disposition color to render the token base and frame. Token Disposition can be seen on a token's Character tab. Tokens with actors controlled by players are colored in a fourth, distinct color.

alt text

An Actor's Folder Color

This option uses the color of the folder a token's actor belongs in. A color of #000000, or the default color of a new actor folder, is treated as if there is no folder that will prevent a base and frame from being rendered for contained actor tokens.

alt text

[ON DEVELOPING] A Custom Color Set For Token Disposition

This option reveals additional configuration options allowing you to customize colors associated with each token disposition.

alt text

Choose shape of your faction

Token frames (rings, square, hex) are layered above token graphics.

img1

img2

img3

img4

alt text

You can override this setting on a per-token basis on a token's Image tab if you use a mix of round and irregular tokens.

alt text

Frame Render Style

[FOR NOW IS THE ONLY AVAIABLE OPTION] Default: Flat

This option renders the frame in a flat color.

alt text

[ON DEVELOPING] Beveled

This option renders the frame in a beveled style typically seen surrounding round tokens.

alt text

Frame/Border Width (Percent of Grid Unit)

This allows you to change the thickness of the rendered frame. The percentage is based on the width of a single grid unit, not the token width, so larger and smaller tokens will have a consistent frame size.

alt text

Base Opacity

Setting this value to anything lower than 1 will allow the map background to be seen through the base. Setting this value to 0 will disable drawing the base entirely.

Frame Opacity

Setting this value to anything lower than 1 will allow the map background or token to be seen through the frame. Setting this value to 0 will disable drawing the frame entirely.

Enable/Disable the faction on the single token on the canvas

img7

API

game.modules.get('token-factions').api.retrieveBorderFactionsColorFromToken(tokenIdOrName:string) ⇒ string

A method to retrieve the string color hex border of a token on the canvas founded by id or name

Returnsstring

Param Type Description Default
tokenIdOrName string The oken id or name (if founded) #000000

async game.modules.get('token-factions').api.disableDrawBorderFactionsFromTokens(tokenIdsOrNames:string[]) ⇒ Promise<void>

A method to disable the draw border factions on a array of tokens on the canvas founded by id or name

ReturnsPromise<void>

Param Type Description Default
tokenIdsOrNames string[] The array of token ids or names (if founded) undefined

async game.modules.get('token-factions').api.disableDrawBorderFactionsFromToken(tokenIdOrName:string) ⇒ Promise<void>

A method to disable the draw border factions on a token founded by id or name

ReturnsPromise<void>

Param Type Description Default
tokenIdOrName string The token id or name (if founded) undefined

async game.modules.get('token-factions').api.enableDrawBorderFactionsFromTokens(tokenIdsOrNames:string[]) ⇒ Promise<void>

A method to enable the draw border factions on a array of tokens on the canvas founded by id or name

ReturnsPromise<void>

Param Type Description Default
tokenIdsOrNames string[] The array of token ids or names (if founded) undefined

async game.modules.get('token-factions').api.enableDrawBorderFactionsFromToken(tokenIdOrName:string) ⇒ Promise<void>

A method to enable the draw border factions on a token founded by id or name

ReturnsPromise<void>

Param Type Description Default
tokenIdOrName string The token id or name (if founded) undefined

 

Categories

Available Versions

  1. Version 0.5.2

    5 months, 2 weeks ago
    Foundry Version 11 - 12 (Verified 11) Manifest URL Read Notes
  2. Version 0.5.1

    9 months, 3 weeks ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  3. Version 0.5.0

    9 months, 4 weeks ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  4. Version 0.4.9

    1 year, 1 month ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  5. Version 0.4.8

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  6. Version 0.4.7

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  7. Version 0.4.6

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  8. Version 0.3.11

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  9. Version 0.3.8

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  10. Version 0.3.7

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  11. Version 0.3.5

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  12. Version 0.3.4

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  13. Version 0.3.3

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  14. Version 0.2.24

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  15. Version 0.2.23

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  16. Version 0.2.22

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  17. Version 0.2.21

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  18. Version 0.2.19

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  19. Version 0.2.18

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  20. Version 0.2.17

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  21. Version 0.2.13

    Foundry Version 0.8.6 - 10 (Verified 0.8.9) Manifest URL Read Notes
  22. Version 0.2.1

    Foundry Version 0.7.7 - 10 (Verified 0.7.9) Manifest URL Read Notes
  23. Version 0.2.0

    Foundry Version 0.7.7 - 10 (Verified 0.7.8) Manifest URL Read Notes
  24. Version 0.1.12

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  25. Version 0.1.11

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  26. Version 0.1.10

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  27. Version 0.1.9

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  28. Version 0.1.8

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  29. Version 0.1.7

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  30. Version 0.1.6

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  31. Version 0.1.5

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  32. Version 0.1.4

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes
  33. Version 0.1.3

    Foundry Version 0.7.7 - 10 (Verified 0.7.7) Manifest URL Read Notes