Register

Token Replacer

An Add-on Module for Foundry Virtual Tabletop

Author: VTT Lair Project Source: Project URL Versions 10+ (Verified 11) Last Updated 5 months, 3 weeks ago

Automatically replace NPC actor tokens and/or portraits dependent on token assets saved in a defined folder structure. Allows randomisation of token artwork, if more than one file per creature is added.

 

Setup

Automatically replace NPC actor artwork

This is where you enable or disable the token/portrait replacement. There are 4 options available:

 

Use NPC Difficulty Folder Structure

This is to indicate whether you are structuring the art work into folders defined by the difficulty level of the NPC (NPC Difficulty Name below). 

Warning Using a structure not defined by the difficulty could cause wrong images to be used for an actor/token for e.g. placing a 'Wolf' and just checking against the name without the difficulty could place a 'Wolf Spider' token instead.

 

Settings

Token Directory

Place where your tokens are saved. These can't be stored in your root data folder, create a place for them to live. Defaults to the free Forgotten Adventures tokens. It's however advised to change this directory to something NOT in the modules directory as new versions will overwrite any tokens you manually saved there.

 

NPC Difficulty Name

This is what is used in your game system to differentiate between the difficulty of creatures. This is specifically for organisational purposes. In the token folder, you can create subfolders according to difficulty levels and organise the token art. The value defaults to 'cr' (DnD 5e). If you change the value to something else the subfolders in the token folder will have to reflect the same. Clearing this value means the module will just check under the root token folder and not worry about subfolders.

 

NPC Difficulty Variable

The variable used by the game system you are using. It's used to see what difficulty level the creature is, in order to figure out in which subfolder the figure can be found. If 'NPC Difficulty Name' is empty, this won't be checked.

 

Portrait Prefix

The prefix used to define images that should be used when replacing portraits, instead of a token image. This is used if you want to specify a specific artwork that should be used for the portrait replacement. It uses the prefix exactly as you define it, i.e. if you use "prefix", the the file needs to be called "prefixDeep_Scion.png", if you use "p_" for instance, th file name has to be "p_Deep_Scion.png".

 

Folder Name Format

The way the difficulty folder is formatted. 

 

Image Name Format

The way the image is formatted. 

 

 Disable Token Replacer for a Token

On the actor, click on Prototype Token in the title bar. Select the Image tab, then at the bottom of the form there will be a checkbox where you can disable token replacer for the Prototype Token. If it's disabled this means the artwork will never automatically be replaced. The portrait or token art can still be manually set, however token replacer won't look for artwork going forward.

Token Replacer Disabler

 

Tokens

Tokens are saved in the defined Token Directory. Save the tokens either in the root folder (and make sure 'NPC Difficulty Name' is empty) or to it subsuquent subfolder (dependent on creature difficulty level). The Folder Name Format and Image Name Format can be defined in the setup.

File names can be saved as per how it's defined using the Image Name Format setting. In order to randomise token artwork, more than one file can be supplied eg 'Dire_Wolf_1.png', 'Dire_Wolf_2.png', 'Dire_Wolf_Black.png'. The randomisation only happens with token art and not portrait art.

 

If no artwork is found for the creature, it will use the artwork already linked to that actor.

Tokens found in the module are free tokens supplied by Forgotten Adventures. Make sure to move free tokens to the Token Directory.

Categories

Available Versions

  1. Version 0.7.5

    5 months, 3 weeks ago
    Foundry Version 10+ (Verified 11) Manifest URL Read Notes
  2. Version 0.7.4

    Foundry Version 10+ (Verified 10) Manifest URL Read Notes
  3. Version 0.7.3

    Foundry Version 10+ (Verified 10) Manifest URL Read Notes
  4. Version 0.7.2

    Foundry Version 10+ (Verified 10) Manifest URL Read Notes
  5. Version 0.7.1

    Foundry Version 10+ (Verified 10) Manifest URL Read Notes
  6. Version 0.7.0

    Foundry Version 10+ (Verified 10) Manifest URL Read Notes
  7. Version 0.6.5

    Foundry Version 0.8.5+ (Verified 9) Manifest URL Read Notes
  8. Version 0.6.4

    Foundry Version 0.8.5+ (Verified 9) Manifest URL Read Notes
  9. Version 0.6.3

    Foundry Version 0.8.5+ (Verified 9) Manifest URL Read Notes
  10. Version 0.6.2

    Foundry Version 0.8.5+ (Verified 9) Manifest URL Read Notes
  11. Version 0.6.1

    Foundry Version 0.8.5+ (Verified 0.8.9) Manifest URL Read Notes
  12. Version 0.6.0

    Foundry Version 0.8.5+ (Verified 0.8.9) Manifest URL Read Notes
  13. Version 0.5.5

    Foundry Version 0.8.5+ (Verified 0.8.9) Manifest URL Read Notes
  14. Version 0.5.4

    Foundry Version 0.8.5+ (Verified 0.8.8) Manifest URL Read Notes
  15. Version 0.5.3

    Foundry Version 0.8.5+ (Verified 0.8.8) Manifest URL Read Notes
  16. Version 0.5.2

    Foundry Version 0.8.5+ (Verified 0.8.8) Manifest URL Read Notes
  17. Version 0.5.1

    Foundry Version 0.8.5+ (Verified 0.8.7) Manifest URL Read Notes
  18. Version 0.5.0

    Foundry Version 0.8.5+ (Verified 0.8.5) Manifest URL Read Notes
  19. Version 0.4.4

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  20. Version 0.4.3

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  21. Version 0.4.2

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  22. Version 0.4.1

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  23. Version 0.4.0

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  24. Version 0.3.0

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  25. Version 0.2.3

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  26. Version 0.2.2

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  27. Version 0.2.1

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  28. Version 0.2.0

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  29. Version 0.1.2

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  30. Version 0.1.1

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes
  31. Version 0.1.0

    Foundry Version 0.7.7+ (Verified 0.7.9) Manifest URL Read Notes