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 .
×
Due to an outage with an external service provider, we’re experiencing intermittent loading issues on Roll20. Please refresh if needed.
Create a free account

Token-Mod

OK fundamentally this script works but I want to do a few upgrades and need some assistance. !token-mod {{ --off showname  --ids|@{selected|token_id} --on show_name --set bar1_link|speed bar2_link|ac bar3_link|hp bar3_reset|layer|object }} 1. When I run this against a new token is there a way to set the Represents Character Field? 2. I want to set the Name field as well. 3. Even when I set the Represents Character Field and Name Field manually and I run this script I have to open the properties of the token and click save changes before the Name Plate will check and show the name. Not sure why that happens. Thanks
1.  !token-mod --set represents|"?{Represents Who?}" 2. !token-mod --set  name|"?{Token Name?}" 3. !token-mod --on showname showplayers_name Here's my 'mook' setup macro (also using ChatSetAttr, TokenNameNumber, and a couple custom scriptlets): !?{Token Name?|@{selected|character_name}} !?{Add Number?|Yes, %%NUMBERED%%|No,""} !?{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} !set-gmnote Token Name: @{selected|character_name} !setattr {{   --silent   --sel   --replace   --hp|''   --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 ?{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?} ?{Add Number?}" controlledby|= bar1_link|  bar2_link|npc_ac bar2_max|  bar3_link|passive_wisdom bar3_max|  bar3_current|?{Passive Perception?                           @{selected|npc_senses}} aura2_color|#0000ff aura2_radius|  night_vision_distance|?{Darkvision Distance?                           @{selected|npc_senses}} scale|?{Size?}u bar_location|overlap_bottom compact_bar|on defaulttoken }} !wself Mook Token Full Setup for @{selected|character_name} !token-mod --set name|"?{Token Name?}" bar1|@{selected|hp|max}