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

Health Roll automatic in bar input

Hey Ho. Short Question : is it possible from the Monster Sheet the Heath into the Bar? Example : 2D8+2 Now i will put the rusult in to the Bar1. So i select the TOken on the Field, use the Healt Makro and in the Bar 1 is the Monster healst Automatic is this Possible?!
1469558472
The Aaron
Pro
API Scripter
If I understand you correctly, you can accomplish such with API scripts.  I have two in particular you might look at.  MonsterHitDice for rolling distinct monster hit points when you drag a monster onto the board and TokenMod for adjusting the bars of a token with a macro.
i can only use the API Script to add the Health into the bar from the Charakter sheet?
1469559175
The Aaron
Pro
API Scripter
No, you can do it arbitrarily as well, for example: !token-mod --set bar1_value|[[ @{selected|bar1}+(2d4+2) ]] Will add 2d4+2 (a 5e potion of healing) to the value of bar1.  (This simplistic version will go over max, but it can be written to take that into account).
ok. could you Script me this : for Example : in my Charakter sheet stands 5D8+5 hitdice. This are the max hitpoints from my enemy/charakter. Now i will press a macro to Roll the Max Life and Put id into a Bar maybe bar 3. If its possible? but not befor the / but behind. is this Possible
1469576321
The Aaron
Pro
API Scripter
Actually, I have a method specifically for setting current and max at the same time. =D !token-mod --set bar1|[[@{selected|hitdice}]] For bars: bar1_value -- sets the current value bar1_max -- sets the maximum value bar1 -- sets the current and max to the supplied value Lots more examples here: &nbsp; <a href="https://app.roll20.net/forum/post/1257490/script-t" rel="nofollow">https://app.roll20.net/forum/post/1257490/script-t</a>...