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 remove health from token

Hi Everyone, I am trying to get a custom script working. The script is a macro that deals damage to a target (clicked) token when you click the macro. This is the code: !token-mod --set bar3_value|-[[2d6+3]]! --report all|"{name} take {bar3_value:abschange}0 casualties." It was generously designed by 'TheAaron' for me. However it now no longer works. Have there been some changes to the API since then which would prevent this from working? It did before.
1701969956
The Aaron
Roll20 Production Team
API Scripter
Hmm.  I just tried it in one of my games and it seems to be working?  Is it possible you've got some other scripts installed that are conflicting?  
Hey Aaron, I made the classic mistake of forgetting the number one rule in software: turn it off and on again. Restart API sandbox is all I needed to do! Thanks for your response as always 
Alastair said: Hey Aaron, I made the classic mistake of forgetting the number one rule in software: turn it off and on again. Restart API sandbox is all I needed to do! Thanks for your response as always  Also, the new UI seems to break stuff. Maybe that’s what initially caused the issue?
You should report this before there is no going back to the old UI... Gargamond said: Alastair said: Hey Aaron, I made the classic mistake of forgetting the number one rule in software: turn it off and on again. Restart API sandbox is all I needed to do! Thanks for your response as always  Also, the new UI seems to break stuff. Maybe that’s what initially caused the issue?