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

Token Mod not updating Default Token

I'm trying to set up quick-easy token adjustment macros for when I drop new monsters from the Compendium on the map. I'm using MonsterHitDice, Token Mod, Token Name Number, and Token Action Maker. One of the main intentions of my macros is using Token Mod to update the revised token as the new default for the character sheet to which it's attached after all the other token adjustments have been completed. So, set the bar links, show the nameplate, token bars to bottom overlapping, etc, and then update Default Token when those are processed to record the changes in the character sheet.  But it doesn't look like it's working. I've tried "!token-mod --set defaulttoken" as both a line in a larger Token Mod macro and as a single line in its own macro, and neither option is actually updating the default token on my character sheets. I can update a token so it shows its HP, AC, PP, and nameplate, but after I click to set that as the default, the character sheet is still showing and dropping the unedited token onto the map. Is this an issue that anyone else has experienced lately? Or something with a known fix? I've tried searching online but that single line of Token Mod code is considered the definitive answer for updating default tokens.  I'm using Jumpgate with the 2014 5e D&D sheet. I've restarted my Sandbox several times, it's not giving me any error messages or issues with any of my existing scripts. I didn't see this as a known issue after looking through several days of history here, so I'm wondering if it's something I'm doing wrong. Any feedback or support would be appreciate. Thanks. This is the macro I'm trying to run. Maybe one of the other scripts is blocking Token Mod after they're run later in the macro? !mhd !token-mod {{     --on         showname         showplayers_name         showplayers_bar1         showplayers_aura1         showplayers_aura2     --off         isdrawing         showplayers_bar2         showplayers_bar3         playersedit_bar2         playersedit_bar3     --set         bar1_link|         bar2_link|npc_ac         bar3_link|passive_wisdom         name|"@{selected|character_name} %%NUMBERED%%"}} }} !deleteallta !ta attacks spells saves checks reactions traits !token-mod --set bar1_reset !token-mod --set defaulttoken !tnn --renumber But I'm still not sure why a macro with a single line of "!token-mod --set defaulttoken" isn't working either. 
1759612736
The Aaron
Roll20 Production Team
API Scripter
Hmm.  I just tried this on a Jumpgate game and it worked fine.  Are you using the default Mod API Sandbox, or the Experimental Mod API Sandbox?  Do you have any warnings in the log output on the API Console?
I was checking into the settings you mentioned when I recalled that I had created the game using 2024 5e sheet and then disabled it later when it conflicted with another script, switching back to the 2014 sheet. So I copied my game and created it using the 2014 5e sheet from the beginning and the Default Token command appears to be working correctly.  Apologies for any confusion and thanks for the reply. Have a great weekend!
1759618661
The Aaron
Roll20 Production Team
API Scripter
Fantastic!  Glad you got it working.   Just so I'm clear are you saying: You had the 2024 sheet enabled the whole time, and settting the default token didn't work. You started the game with the 2024 sheet, but switched the sheet to 2014, and setting the default token didn't work until you created a whole new game with 2014 from the start?
I originally created the game using the 2024 5e sheet. As I was adding scripts but before I began making and testing macros, I did begin getting an error message about conflicting scripts, so I went through and I think I ended up removing Aura/Tint Health Colors and maybe AutoButtons before that error went away. After the error message was removed, I went into the game to work making my macros.  Inside the game, I disabled the 2024 5e sheet, thinking that this would allow me to work with just the 2014 5e sheet. That's where I encountered the issue with the Default Token not updating, when the game was in that state of "Created with 2024, now with 2024 disabled." Even with all the previous 2024 sheets now removed, and working on what appeared to be a straight 2014 5e sheet.  Copying my game and selecting the 2014 5e sheet from the beginning appears to have resolved the issue. 
1759816482
The Aaron
Roll20 Production Team
API Scripter
Wonderful! Thank you for the thorough explanation, that will help me track down a possible recreation of the issue.