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 chill this holiday season!
Create a free account

Need macro help for showing current HP of the party but as a percentage.

Hello! So in my campaign for my party I have a macro which lists all of the party members in chat and produces the current HP out of their max hp of the party, I want to take that and make it show the percentage of their current hp compared to their max hp. I just have no idea how to. &{template:default} {{name=Party Health}} {{Player=@{Player|hp}/@{Player|hp|max} }} {{Player2=@{Player2|hp}/@{Player2|hp|max} }} {{Player3=@{Player3|hp}/@{Player3|hp|max} }} {{Player4=@{Player4|hp}/@{Player4|hp|max} }} {{Player5=@{Player5|hp}/@{Player5|hp|max} }} {{Player6=@{Player6|hp}/@{Player6|hp|max} }}
1629613061
Kraynic
Pro
Sheet Author
{{Player=[[@{Player|hp}/@{Player|hp|max}]]% }} Something like that should work, or if you want to see both, you could do this: {{Player=@{Player|hp}/@{Player|hp|max} | [[@{Player|hp}/@{Player|hp|max}]]%}}
<a href="https://app.roll20.net/forum/post/10027415/simple-macro-for-my-cleric-to-see-the-current-hp-of-party/?pageforid=10027488#post-10027488" rel="nofollow">https://app.roll20.net/forum/post/10027415/simple-macro-for-my-cleric-to-see-the-current-hp-of-party/?pageforid=10027488#post-10027488</a> &amp;{template:default} {{name=Party Health}} {{Player1=@{Player1|hp}/@{Player1|hp|max} ([[round((@{Player1|hp} / @{Player1|hp|max}) * 100)]]%) }} {{Player2=@{Player2|hp}/@{Player2|hp|max} ([[round((@{Player2|hp} / @{Player2|hp|max}) * 100)]]%) }} {{Player3=@{Player3|hp}/@{Player3|hp|max} ([[round((@{Player3|hp} / @{Player3|hp|max}) * 100)]]%) }} {{Player4=@{Player4|hp}/@{Player4|hp|max} ([[round((@{Player4|hp} / @{Player4|hp|max}) * 100)]]%) }} {{Player5=@{Player5|hp}/@{Player5|hp|max} ([[round((@{Player5|hp} / @{Player5|hp|max}) * 100)]]%) }} {{Player6=@{Player6|hp}/@{Player6|hp|max} ([[round((@{Player6|hp} / @{Player6|hp|max}) * 100)]]%) }}