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

Adding temp HP to the current and max HP in Macro

Hi there,  I'm running a new campaign and there are some chars generating temp HP. I have a macro showing the party HP as an overview: /w gm &{template:default} {{name=Player HP}} {{Corvin Keeneyes=@{Corvin Keeneyes|hp} of @{Corvin Keeneyes|hp|max}}} {{Crower=@{Crower|hp} of @{Crower|hp|max}}} ... Now I dont want to only have the current HP but also the HP + Temp HP. Is there a way to add these automatically in a small mathematical function? I've tried Crower|hp+hp_temp but this does not work unfortunately. Thanks in advance.
1692081445
Gauss
Forum Champion
Hi Nico,  Which character sheet are you using?  Are you trying to change the values automatically? Or are you trying to add them together and then display that?
Hi,  I'm using the D&D 5E by Roll20 sheet. I just want to add them together and display the result using the macro then.
It would be  @{Corvin Keeneyes|hp|max}}}+ @{Corvin Keeneyes|temphp}}} (or whatever the fieldname is); If you add that in [[ ]] it automatically shows you the value... Nico S. said: Hi there,  I'm running a new campaign and there are some chars generating temp HP. I have a macro showing the party HP as an overview: /w gm &{template:default} {{name=Player HP}} {{Corvin Keeneyes=@{Corvin Keeneyes|hp} of @{Corvin Keeneyes|hp|max}}} {{Crower=@{Crower|hp} of @{Crower|hp|max}}} ... Now I dont want to only have the current HP but also the HP + Temp HP. Is there a way to add these automatically in a small mathematical function? I've tried Crower|hp+hp_temp but this does not work unfortunately. Thanks in advance.
Cool, that worked out really well. Thank you!