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 for subtracting from a token bar IE.. bar 1 2 3

Is there a way to include a command in a msro to adjust a token bar by subtracting say 1 for number of daily uses per day ability? Example I have 8 daily uses of channel energy I am using bar 3 on my token for tracking them i want to have the macro when i use the ability auto subtract 1 from the total in bar 3. any suggestions i have not been able to figure it out.
1418954070
The Aaron
Roll20 Production Team
API Scripter
You can't do that with a macro, but there are API scripts for it (and you appear to be a Mentor already). This is my script for it: <a href="https://app.roll20.net/forum/post/1257490/script-t" rel="nofollow">https://app.roll20.net/forum/post/1257490/script-t</a>... For the selected token with my script: !token-mod --set bar3_value|-1
Thanks alot
ok so i added the script but the command doesnt work i have the token selected but not sure what im doiong wrong when i use that command I even copy and pasted the one you put in so it would be correct im so confused
nvm got it to work needed the idGM script i should learn to read
1418971564
The Aaron
Roll20 Production Team
API Scripter
No worries. Glad you got it worked out!
i did post a question in the forum for the script you linked me i could use help with as well kind of in conjunction with this question
1418972973
The Aaron
Roll20 Production Team
API Scripter
Yeah, I already replied to it. =D