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

Total Party Health Macro

Asking for a friend (no, really!)  Does anyone know of a macro for displaying the total health of the party, or of all selected tokens?
1624137008
The Aaron
Roll20 Production Team
API Scripter
For all selected, you'd need the API (Pro Subscriber Perk).  For the party, you could do it based on character attributes like: Total Party HP: [[ @{Some Character|hp} + @{Some Other Character|hp} ]] Add as many characters as you have. 
<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>
1624203196
The Aaron
Roll20 Production Team
API Scripter
Oh! &nbsp;I read total and was thinking "sum of". I suppose seeing the health of the individual party members all together makes more sense. A sort of party dashboard. =D
The Aaron said: Oh! &nbsp;I read total and was thinking "sum of".&nbsp; As a matter of fact, I did mean "sum of."&nbsp; It's a rather specialized request on behalf of my friend.
Juliet Y. said: The Aaron said: Oh! &nbsp;I read total and was thinking "sum of".&nbsp; As a matter of fact, I did mean "sum of."&nbsp; It's a rather specialized request on behalf of my friend. Then Aaron's macro should work.&nbsp; You can fancy it up with a roll template depending on what game/character sheet you are using, and what specifically you want the output to look like.
this is what i use.&nbsp; &nbsp; it displays all the parties HP and AC (coz i keep forgetting the AC) Obviously, you need to swop out the character names and get them PERFECTLY as per your characters character sheets &amp;{template:default}{{name=Party Status}} {{Folkwin =@{Folkwin Wolfspeeras|Hp}Hp&nbsp; &nbsp; &nbsp; &amp;&nbsp; &nbsp; &nbsp; AC@{Folkwin wolfspeeras|ac}}} {{Titus =@{Titus Knell|Hp}Hp&nbsp; &nbsp; &nbsp;&amp;&nbsp; &nbsp; &nbsp;AC@{titus knell|ac}}}&nbsp; {{Lepista =@{Lepista Excelsior|Hp}Hp&nbsp; &nbsp; &amp;&nbsp; &nbsp; AC@{lepista excelsior|ac}}} {{Oliver =@{Oliver reed|Hp}Hp&nbsp; &nbsp;&amp;&nbsp; &nbsp;AC@{oliver reed|ac}}}
Hi! I'm the friend Juliet's asking on behalf of. The scenario I've got isn't dealing with party members at all. I'm using Roll 20 as a mapping and space layout system, since it understands objects and positioning, and one of the things I need to calculate is "how many boxes can we store for how much cost if we lay it out this way as opposed to that way". So I've got bookshelf "NPCs" with different identities -- one type has 6 shelves in 7 feet of height but only stores three boxes per shelf, another type has 5 shelves in 6 feet of height but stores 5 boxes per shelf. And each of them cost different amounts -- so I could give each NPC type its price as its HP. But also they're not all bought or assembled yet. So what I'm hoping this theoretical macro could do would be something along the lines of "Okay, right now we've got 5 6-foot shelves and 2 7-foot shelves built and IDed. Add up those 7 NPCs' "cost" HP, and that's how much we've got invested; add up their AC and that's how many boxes we could store. Okay, we had another working weekend, we built 4 more shelves, let's drag 4 more shelf NPCs into the right spot, now what does it look like..." Is this doable, or am I dreaming? :D
1624387193
The Aaron
Roll20 Production Team
API Scripter
The only way to do that would be with the API, a Pro Subscriber Perk. Without a Pro subscription and some javascript knowledge, I'd suggest doing this in a spreadsheet.