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 .
×

Some assistance with Token Mod

Hello, I am setting up a game as a DM for the first time. I am using token mod, specifically the script !token-mod --set bar1_link|hp bar2_link|ac bar3_link|npc_speed This has worked for me in the past, specifically yesterday. I did nothing to edit the script, now today it is not working. I tried clearing the chat archive like another post mentioned, but that did not work. Could someone tell me what I am doing wrong? Thanks!
Have you checked the Mod page to make sure that your sandbox is running and there are no errors in the console?  From outside of the game, click on the Settings dropdown, then the Mod (API) Scripts link. You could also try another TokenMod command to check if something is going on, like this which will move a selected token 1 grid unit to the right: !token-mod --move =90|1u  If that works, then it's not an issue with your Mod sandbox or TokenMod, but perhaps with the token settings (like if the token was not linked to a character).
That worked! I restarted the API sandbox, and everything is working fine now. Thanks for your help!  This thread can be closed now. 
1667953138
Andrew R.
Pro
Sheet Author
I recommend keeping the Mod (API) Scripts page open in another tab so you can check & restart without waiting. 
You may also be interested in the  APIHeartbeat script . 
Andrew R. said: I recommend keeping the Mod (API) Scripts page open in another tab so you can check & restart without waiting.  Jarren said: You may also be interested in the  APIHeartbeat script .  Both good things to know, thank you! Luckily this hasn't happened again, but if it becomes more of a problem I'll give those a shot. 
Thomas V. said:\ Both good things to know, thank you! Luckily this hasn't happened again, but if it becomes more of a problem I'll give those a shot.  The API Heartbeat script is a great one to use because even with the Mod (API) page open, sometimes the sandbox will crash 'silently' - no error message in the console - and still needs to be reset.   Another option is to just use a simple script that just provides some kind of chat output to do the same thing if you suspect that the sandbox has crashed.  Set it as a macro on the Macrobar so you can just click it and get an instant indicator that the sandbox is running.
Jarren said: Thomas V. said:\ Both good things to know, thank you! Luckily this hasn't happened again, but if it becomes more of a problem I'll give those a shot.  The API Heartbeat script is a great one to use because even with the Mod (API) page open, sometimes the sandbox will crash 'silently' - no error message in the console - and still needs to be reset.   Another option is to just use a simple script that just provides some kind of chat output to do the same thing if you suspect that the sandbox has crashed.  Set it as a macro on the Macrobar so you can just click it and get an instant indicator that the sandbox is running. Did not know that- I'm starting my first session this upcoming week so I haven't had a chance to really test the waters for real. But I will go ahead and download that just in case!