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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Can't request Max HP from the character sheet (4E)

I play with a lot of new players, and like to be able to quickly walk them through the math of short resting. I created the macro (listed at bottom) so that I can pull numbers from their token, but the Max HP always yields a " 0". I've dabbled with it awhile now and can't get a fix, and I'm sure all my hot key, and character sheet type characters are properly categorized.  &{template:dnd4epower} {{other=yes}}{{name=Rest # }} {{action=*@{target|character_name}*}} {{**Max HP:**= [[@{target|hp_max}]] }} {{**Current HP:**= [[@{target|hp}]] }} {{**Current Surges:**= [[@{target|surges}]] }} {{**Surge Value:**= [[@{target|surge-value}]] }}
1486130355

Edited 1486214424
Ziechael
Forum Champion
Sheet Author
API Scripter
Hi Kevin, use @{target|Who|hp|max} instead :) Details can be found in the  wiki .
As per Advanced Usage for Targeted Attribute Calls , you'll need to add the <target_name> syntax to your targeted Attribute calls if you want to use the max flag. e.g. &{template:dnd4epower} {{name=Rest # }} {{other=yes }} {{action=*@{target|Target1|character_name}* }} {{**Max HP:**= [[@{target| Target1|hp|max }]] }} {{**Current HP:**= [[@{target|Target1|hp}]] }} {{**Current Surges:**= [[@{target|Target1|surges}]] }} {{**Surge Value:**= [[@{target|Target1|surge-value}]] }}
That did it. Thank you so much. On a side note, I found this exceptionally useful with my "Maze Runner" style dungeons; which seems to have become the favorite in my 4E games. When how much time you spend "short resting" is of measurable importance, spending too much time calculating how much time a character needs to rest can kill the clocks ticking feel.