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

Macro to add a clock token using TokenMod

1658342439
CryptoCartographer
Pro
Marketplace Creator
I'm coming back to GM-ing after a hiatus, and forgot a lot of what I knew about TokenMod. I'm needing to quickly add clocks to my game, and what I'd like to do create a macro which will: Choose a rollable token from a drop-down Prompt for a name to be applied to the token Make sure the "face" set is number 0 Put it on the map I suspect this is all pretty straightforward with TokenMod, but my macro-writing skills have atrophied. Can anyone help?
1658345020
David M.
Pro
API Scripter
Token-mod can change the token properties once it's on the map, but it won't create a token. Check out the SpawnDefaultToken script (available for 1-click install). For your application, create a character sheet with the rollable table token set as the default token for the sheet. Then, select an existing token on the map and run a Spawn macro similar to this (note both token-mod and Spawn use 1-based sides, not 0): !Spawn {{   --name|?{Select which token|name1|name2...}   --offset|2,0   --size|3,3   --side|1   --tokenName|?{Enter a name} }} You could put token-mod abilities on the relevant sheets as token actions to change the side of the token as needed. Make sure your default token is updated after  you set it to represent the sheet, though, or the token actions won't appear on the spawned token.
1658359411
CryptoCartographer
Pro
Marketplace Creator
Thanks for this! I will try it out.