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 .
×
May your rolls be merry + bright! 🎄
Create a free account

D20 Modern token hit points bar

I am attempting to add the hitpoints of a character to a tokens bar, I have linked the token to a character sheet, that has hitpoints recorded properly, select hitpoints for the bar but it remains at zero. Just trying to work out if I am doing something wrong, or this is a bug. Cheers for the help - Stan
1468904806

Edited 1468904863
Lithl
Pro
Sheet Author
API Scripter
It looks like @{HitPoints} is being used for both the HP total and the current HP: <tr> <th><div class="sheet-font">Hit Points</div></th> <th><input type="number" class="sheet-ability" name="attr_HitPoints" value="@{HitPoints-Class}+@{HitPoints-Con}+@{HitPoints-Other}" disabled="true"/></th> <td><input type="number" class="sheet-number" name="attr_HitPoints-Class" value="0"/></td> <td><input type="number" class="sheet-number" name="attr_HitPoints-Con" value="@{Constitution-mod}*@{Character_Level}" disabled='true'/></td> <td><input type="number" class="sheet-number" name="attr_HitPoints-Other" value="0"/></td> <td colspan="3"><input type="number" class="sheet-ability" name="attr_HitPoints" value="0" style="width:95%"/></td> </tr> The total HP input should be name="attr_HitPoints_max"  in order for HitPoints to work correctly as a token's bar. Poke CoalPoweredPuppet about the issue, it looks like this is one of his sheets.
Aaaaaaaaaand a  pull request with Brian's suggestion for a fix has been made.  
Coal Powered Puppet said: Aaaaaaaaaand a  pull request with Brian's suggestion for a fix has been made.   Cheers buddy