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

API token_mod choosing manually the value of a HP bar by prompting a window

Hello everyone, I have a quick question about the Token_Mod script : Here is the script to reduce the bar1 value of 1d6 !token-mod --ids @{target|foe|token_id} --set bar1_value|-[[1d6]] I'd like to choose the value myself via a prompt windows, so I could increase or decrease quickly the HP of a NPC/PC. But I don't know how to change the script, specially --set bar1_value|-[[1d6]] Can you help me ? Thanks
1613338449
Kurt J.
Pro
API Scripter
Zarn Arkonis said: Hello everyone, I have a quick question about the Token_Mod script : Here is the script to reduce the bar1 value of 1d6 !token-mod --ids @{target|foe|token_id} --set bar1_value|-[[1d6]] I'd like to choose the value myself via a prompt windows, so I could increase or decrease quickly the HP of a NPC/PC. But I don't know how to change the script, specially --set bar1_value|-[[1d6]] Can you help me ? Thanks Well, you could just change it to something like this: !token-mod --ids @{target|foe|token_id} --set bar1_value|?{Amount (Include + or -)} but it is probably a lot easier to do that without the API at all by clicking in the radial for bar1 and just typing "+5" or "-10" and hitting enter. You still have to either select the token or pick a target either way.
Thanx a lot, it works nicely. I use it because it's much easier when I have to reduce the HP of several NPC/PC quickly
1613341055
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can also look into the  Apply Damage  addon for Group Check.