
ModifyTokenImage Modify what your tokens look like, without roll tables, and customize what should be shown. Current Version: 1.0.4 Wiki Link: <a href="https://wiki.roll20.net/Script:Modify_Token_Image" rel="nofollow">https://wiki.roll20.net/Script:Modify_Token_Image</a> Code Repository (Roll20 API Script Github): <a href="https://github.com/Roll20/roll20-api-scripts/tree/master/ModifyTokenImage" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/tree/master/ModifyTokenImage</a> Modify Token Image is a script that utilizes the Handout functionality to be able to replace Token Images if needed. For example, if you have an end-game boss that is actually mimicking as some friendly creature, using Polymorph, you'd probably want players to see that token as Polymorphed into the creature you come to expect. However, in order to correctly make this happen, you would need two tokens, one with the polymorphed image, one with the real image of the creature. However, this API Script allows you to change between those tokens. Other examples include having creatures swap between Enemy and Friendly and having that signified by certain things. You can also swap out Token images for players that want to update their Tokens without completely replacing the tokens. This API Script requires that you create a Subfolder called "Token Images" in the Main Folder of your Library. Each token you want to enable with this functionality, you need to have a subfolder for the name of the Token, with one handout per state you want to switch. WARNING: This script modifies the GM Notes present on the Tokens that are modified, to keep track of what state each token is in (for next and previous). If you intend on using the GM Notes fields on Tokens, do not use this script, as it will overwrite the GM Notes with a JSON Array. You can add to the JSON Array to keep those notes, but if you modify the token GM Notes that are being set, you can corrupt the state of the token, and it will reset when another command is run. Commands: !ModifyTokenImage --next Changes the currently selected token's image to the next token valid token image in the folder for that token. !ModifyTokenImage --previous Changes the currently selected token's image to the previous token valid token image in the folder for that token. !ModifyTokenImage --set <NameOfHandout> Changes the currently selected token's image to the <NameOfHandout> image in that folder. !ModifyTokenImage --gm GM ONLY COMMAND Allows or disallows Player use of the above commands. NOTE: Even though players can use these commands, they can *only* execute these commands on tokens controlled by themselves. GMs can modify *all* tokens *always*. Also, this defaults to Players off. If you want to change the default, you need to change it in the script. !ModifyTokenImage --debug GM ONLY COMMAND Enables or disables Debug outputting to the log.