Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Toggle tint macro?

Hi all, I am trying to create a button that lights up when clicked on and changes back when clicked on again. Essentially I want my players to be able to click on a token and a tint is added to that token.
1676146563
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Dividices! To make changes to objects on the VTT requires the use of Mod scripts, a Pro subscription level perk. If you are in or have access to a game with that perk, the Token-mod script will do what you need.
keithcurtis said: Hi Dividices! To make changes to objects on the VTT requires the use of Mod scripts, a Pro subscription level perk. If you are in or have access to a game with that perk, the Token-mod script will do what you need. Hi Keithcurtis! I don't know much about scripts so what specific script would I need? 
1676150724
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The script would be TokenMod (available for install under OneClick on your Mods page (again, Pro perk), and the command would be something like this: !token-mod --ignore-selected --ids @{target|token_id} --set tint_color|#ff3366 and to reset it: !token-mod --ignore-selected --ids @{target|token_id} --set tint_color|transparent !token-mod means "This is a token mod command coming up" --ignore-selected means "don't make this change to the selected token" (which probably belongs to the player issuing the command) --ids @{target|token_id} means "make this change to a target the player will choose at run time" --set tint_color|#ff3366 means "set the token's tint color to this hex value" In order for players (and not just the gm) to use this command, players must be given the ability to affect tokens they don't control. This is a do-once command that flips a setting on token mod itself: !token-mod --config players-can-ids|on
That's awesome! Thank you so much Keithcurtis!