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 update hit points

Hi is it possible to get a macro to change the content of one of the bars/ or a field on a character sheet 
Not without the use of an API script. If you're the GM of the campaign, you could install TokenMod and make macros to update token information.
how do i do that ?
1485898028
Alicia
Sheet Author
TokenMod is pretty amazing but this is a stand-alone API that edits just the bars <a href="https://app.roll20.net/forum/post/1216260/script-alter-bar-on-token" rel="nofollow">https://app.roll20.net/forum/post/1216260/script-alter-bar-on-token</a>
1485903096
The Aaron
Pro
API Scripter
It's fun reading old threads. :) The TokenMod command to subtract 1d6 from bar1 would be: !token-mod --set bar1_value|-[[1d6]] the adjustment (after the | (pipe) ) can be relative by prefacing with + or -, or explicit by prefacing with nothing or the = sign. If you need to set explicitly to a negative number, use =-number.&nbsp;
Hey Aaron, I've been searching for the last 4 hours for your script to automatically set npc Hp based on their hitdice for 5e but the github for that is gone. Does token-mod somehow do this when you put an npc on to the board now that I cant seem to find in search? Thanks by the way, every other one of your scripts is pretty much amazing!
1485926907
The Aaron
Pro
API Scripter
MonsterHitDice does what you want. I renamed it a year ago or so.
The Aaron said: MonsterHitDice does what you want. I renamed it a year ago or so. Thanks!