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

TokenMod Help

There is just so much damn information here, and I'm sure someone has done what I want to do already. As someone who has zero programming experience, this is VERY daunting: I am looking to use TokenMod to ensure that when tokens are dragged/dropped to the map, they have the following properties: Bar 1 - AC, Bar 2 - Passive Wisdom, Bar 3 - HP Controlled by the character to whom the token belongs Has vision Darkvision toggleable (if this is possible) Ultimately, if this can be achieved via a macro button, all the better!
1763321248

Edited 1763321410
This has a lot more to it, but you might be able to parse through and remove or edit the portions you don't want. It uses TokenMod and ChatSetAttr. !?{Token Name?|@{selected|character_name}} ?{Darkvision?                                 @{selected|npc_senses}|Yes,has_night_vision|No,} ?{Darkvision Distance?                           @{selected|npc_senses}|60} ?{Passive Perception?                           @{selected|npc_senses}|@{selected|passive_wisdom}} ?{Size?|Medium/Small,1|Large,2|Tiny,0.5|Huge,3|Gargantuan,4} !setattr {{   --silent   --sel   --replace   --passive_wisdom|?{Passive Perception?                           @{selected|npc_senses}}   --advantagetoggle|'{{query=1}} {{normal=1}} {{r2=\lbrak\lbrak0d20'   --rtype|'\at{advantagetoggle}'   --wtype|\ques{Whisper\ques\|Public Roll,\|Whisper Roll,/w gm }|    --npc_name|\at{selected\|token_name} }} !delattr {{   --silent   --sel    --npc_name_flag    --dtype }} !token-mod {{ --on showname showplayers_name showplayers_aura1 has_bright_light_vision ?{Darkvision?                                 @{selected|npc_senses}} --off playersedit_name playersedit_bar1 playersedit_bar2 playersedit_bar3 playersedit_aura1 playersedit_aura2 showplayers_bar1 showplayers_bar2 showplayers_bar3 showplayers_aura2 --set name|"?{Token Name?}  controlledby|= bar1_link|ac bar2_link|passive_wisdom bar2_max|  bar2_current|?{Passive Perception?                           @{selected|npc_senses}} bar3_link|hp night_vision_distance|?{Darkvision Distance?                           @{selected|npc_senses}} scale|?{Size?}u bar_location|overlap_bottom compact_bar|on defaulttoken }}