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

My macro for calculating heals and not overhealing.

1401859626

Edited 1401860254
I wanted to share my equation for automatically calculating heals using just a macro. There are two equations because of the way the drop/keep formula works- if one side has a roll, the other side MUST have a roll. I circumvented the problem by adding a +0d0 on the opposing side and it worked great. These were designed for DnD 4e, but feel free to modify them however you wish. The equation mimics the equation "minimum(curentHP+heal , maxHP)" on the selected target. If you can't select targets, you could have the DM save/roll these for you. And if you are playing 4e (without the character sheets) an easy way to calculate the surge value is to use a attribute set: surge-value = "[[ floor((@{selected|HP|max})/4) ]]" #Majestic Word, Lvl1 (no rolls, just addition) [[ { @{selected|HP} +@{selected|surge-value} +@{BARD|Charisma-mod}, @{selected|HP|max} }dh1 ]]/@{selected|HP|max} #Majestic Word, Lvl6 (heal has +1d6, so I had to add +0d0 to the maxHP side to get it to work) [[ { @{selected|HP} +@{selected|surge-value} +@{BARD|Charisma-mod}+1d6, @{selected|HP|max}+0d0 }dh1 ]]/@{selected|HP|max} Final Result: /me uses Majestic Word on @{selected|token_name}. HP: [[ { @{selected|HP} +@{selected|surge-value} +@{Paelias|Charisma-mod}+1d6, @{selected|HP|max}+0d0 }dh1 ]]/@{selected|HP|max} Displayed as: Paelias uses Majestic Word on Fargrim. HP:36/42. Try it out, let me know if you can make other improvements.
1402766204

Edited 1402766530
I cannot tell you how long I was trying to work this one out. Thanks much for this. My very minor tweak was to include the amount healed as well. Result: /me uses Majestic Word on @{selected|token_name}. @{selected|token_name} regains [[@{selected|surge-value} +@{Bellatrix|Charisma-mod}+0d6]]HP returning to [[ { @{selected|HP} +@{selected|surge-value} +@{Bellatrix|Charisma-mod}+0d6, @{selected|HP|max}+0d0 }dh1 ]]/@{selected|HP|max}HP Displayed as: Bellatrix uses Majestic Word on Toox. Toox regains 12HP returning to 30/30HP Thanks again Benana!
That'll work as long as you dont have a +1d6 or other rolled value. Since you can't save rolled values to be used multiple times it'll work as +0d6. Hopefully they allow some form of saved variables.
1403189776
Alex L.
Pro
Sheet Author
Benana said: That'll work as long as you dont have a +1d6 or other rolled value. Since you can't save rolled values to be used multiple times it'll work as +0d6. Hopefully they allow some form of saved variables. That is what the API is for.
I agree Alex, but for the masses that don't have access to the API, something like this is best substitute.