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

Healing Macro Help

1597118375

Edited 1597118400
Spynx
Plus
So I know I'm missing some simple syntax for this, but I can't seem to figure out what. Basically want my macro to prompt for spell level and then prompt to see if beacon of hope is up. Also a life cleric hence the extra added to each roll. Here is what I got so far. ?{Level|  1, ?{Beacon of Hope|No,1d4+3|Yes,4+3} |  2, ?{Beacon of Hope|No,2d4+4|Yes,8+4} |  3, ?{Beacon of Hope|No,3d4+5|Yes,12+5} |  4, ?{Beacon of Hope|No,4d4+6|Yes,16+6} |  5, ?{Beacon of Hope|No,5d4+7|Yes,20+7} |  6, ?{Beacon of Hope|No,6d4+8|Yes,24+8} |  7, ?{Beacon of Hope|No,7d4+9|Yes,28+9} |  8, ?{Beacon of Hope|No,8d4+10|Yes,32+10} |  9, ?{Beacon of Hope|No,9d4+11|Yes,36+11} } Any help or suggestions would be much appreciated.
1597119213
GiGs
Pro
Sheet Author
API Scripter
You also need to html replace the vertical pipes in each of these ?{Beacon of Hope | No,1d4+3 | Yes,4+3&#125
?{Level|  1, ?{Beacon of Hope|No,1d4+3|Yes,4+3} |  2, ?{Beacon of Hope|No,2d4+4|Yes,8+4} |  3, ?{Beacon of Hope|No,3d4+5|Yes,12+5} |  4, ?{Beacon of Hope|No,4d4+6|Yes,16+6} |  5, ?{Beacon of Hope|No,5d4+7|Yes,20+7} |  6, ?{Beacon of Hope|No,6d4+8|Yes,24+8} |  7, ?{Beacon of Hope|No,7d4+9|Yes,28+9} |  8, ?{Beacon of Hope|No,8d4+10|Yes,32+10} |  9, ?{Beacon of Hope|No,9d4+11|Yes,36+11} } Getting an error now off of this change? Basically ask for level then when beacon of hope shows up there's no drop down and it has this text "No + 4[WIS]]]" in the box. I should mention I am using this in the damage 1 slot on a attack macro.
1597155398
GiGs
Pro
Sheet Author
API Scripter
Spynx said: I should mention I am using this in the damage 1 slot on a attack macro. That could be relevant, but I just noticed you also have commas in that inner query, Those need to be replaced too. For complex things like this, you should test them outside of the character sheet. You can paste that text above as its own macro into chat, and get it working. Then once its working, add it to the sheet.
1597160328

Edited 1597161457
Oosh
Sheet Author
API Scripter
Which sheet is this? There's probably an easier way to do this, but it would help to know where it's being inserted into the macro. Try this, to start with... it trims down the Queries to just cover the basic math. Without Bacon you have 4 d 6. With Bacon you have 4 x 6. [[?{Cast at what level?|1|2|3|4|5|6|7|8|9}?{Beacon of Hope?|Yes,*[BACON OF HOPE]|No,d} 6 +@{bob|wisdom_mod}[WIS]]] healing is done. You might still need some HTML replacement in there depending on the template you're pushing this into. But if it's 5e you should be right to use this as is, apart from the flavour text at the end. Also get rid of the [[brackets]] if you're using this in a character sheet field - it adds them itself. Just modify the {Cast at what level?} math to give you the right number of dice, the bold underline 6 in the middle to reflect the right die type, and the @{bob|wisdom|mod} to call on the correct character and Attribute.
Mmmm, Bacon of Hope.
1597180619

Edited 1597180678
Spynx
Plus
So I've tried Oosh's macro with no success and I've tried GiGs suggestion of replacing all | , } with html and nothing seems to be working. I rewrote it trying to make it simpler in terms of space. It prompts for level correctly but then botches the rest. I don't think I'm referencing the first drop down properly under Beacon of Hope rolls and it doesn't recognize the Beacon of Hope as a drop down at all. Sorry if I'm being obtuse. Btw I am using this under a damage roll on 5e OGL sheet and also testing under normal macros tab. [[?{Level|1|2|3|4|5|6|7|8|9}?{Beacon of Hope|No,?{Level}d4+2+?{Level}|Yes,?{Level}*4+2+?{Level}]]
1597182311
GiGs
Pro
Sheet Author
API Scripter
This is the fully html replaced version, which I've tested and it works on its own: ?{Level| 1, ?{Beacon of Hope|No,1d4+3|Yes,4+3} | 2, ?{Beacon of Hope|No,2d4+4|Yes,8+4} | 3, ?{Beacon of Hope|No,3d4+5|Yes,12+5} | 4, ?{Beacon of Hope|No,4d4+6|Yes,16+6} | 5, ?{Beacon of Hope|No,5d4+7|Yes,20+7} | 6, ?{Beacon of Hope|No,6d4+8|Yes,24+8} | 7, ?{Beacon of Hope|No,7d4+9|Yes,28+9} | 8, ?{Beacon of Hope|No,8d4+10|Yes,32+10} | 9, ?{Beacon of Hope|No,9d4+11|Yes,36+11}} If you need to to actually roll the dice, you'd wrap the whole thing inside a pair of inline roll brackets [[ -- put above code here --- ]] Here's what Oosh's excellent suggestion would look like, with die size corrected: ?{Level|1}?{Beacon Of Hope|No,d4|Yes,*4}+?{Level}+2 and the fixed bonus added. Again, if you need it to be rolled, put the whole thing in [[ ]] brackets. If neither of these work, then there's something about the character sheet that doesnt allow this or requires a different format.
1597182368
GiGs
Pro
Sheet Author
API Scripter
Your rewritten version requires some html substitution as you still have queries inside a query.
I made macros for a player a while ago to calculate healing as a life cleric. It's not exactly what you are looking for, but this should give you at least an easy copy-paste to add the life domain bonus. Also, it's fancy on chat. Cure Wounds [ 15:20 ] &{template:default}{{name=Life cleric}}{{Cure Wounds Heals=[[?{Spell level}d8+@{wisdom_mod}+2+?{Spell level}]] HP}}{{Cast at Level=?{Spell level}}}{{Blessed Healer=Metovías heals [[2+?{Spell level}]] HP}} [ 15:21 Prayer of Healing [ 15:21 ] &{template:default}{{name=Life cleric}}{{Prayer of Healing Heals=[[?{Spell level}d8+@{wisdom_mod}+2+?{Spell level}]] HP}}{{Cast at Level=?{Spell level}}}{{Blessed Healer=Metovías heals [[2+?{Spell level}]] HP}} [ <15:21 ] Mass Cure Wounds [ 15:21 ] &{template:default}{{name=Life cleric}}{{Mass-Cure-Wounds Heals=[[(?{Spell level}-2)d8+@{wisdom_mod}+2+?{Spell level}]] HP}}{{Cast at Level=?{Spell level}}}{{Blessed Healer=Metovías heals [[2+?{Spell level}]] HP}}
1597192190

Edited 1597192264
Spynx
Plus
GiGs you are awesome. That is working exactly how I intended. I swear to everything DnD I typed both those out just like that and it didn't work. I still have your version in my notepad++ typed the same way. I must be doing something wrong. I appreciate the effort everyone. Cheers ***edit***here's what I had in notepad++ and I see now I did not replace the commas. I feel like a dunce since you specifically told me that. Thanks again. ?{Level|  1, ?{Beacon of Hope|No,1d4+3|Yes,4+3} |  2, ?{Beacon of Hope|No,2d4+4|Yes,8+4} |  3, ?{Beacon of Hope|No,3d4+5|Yes,12+5} |  4, ?{Beacon of Hope|No,4d4+6|Yes,16+6} |  5, ?{Beacon of Hope|No,5d4+7|Yes,20+7} |  6, ?{Beacon of Hope|No,6d4+8|Yes,24+8} |  7, ?{Beacon of Hope|No,7d4+9|Yes,28+9} |  8, ?{Beacon of Hope|No,8d4+10|Yes,32+10} |  9, ?{Beacon of Hope|No,9d4+11|Yes,36+11} }
1597192555
GiGs
Pro
Sheet Author
API Scripter
You're welcome! I'm glad we got there in the end :)
Well it pulled me back in. If I reference the ?{Level} in the damage 2 slot it rerolls the macro attached to the spell level I picked. Is there a way to isolate just the spell level number I selected? I'm using this to show the blessed healer ability as a separate healing amount.        ?{Level}+2
1597195025
GiGs
Pro
Sheet Author
API Scripter
If you use this form  ?{Level|1}?{Beacon Of Hope|No,d4|Yes,*4}+?{Level}+2 you can use ?{Level} elsewhere.
1597202957

Edited 1597205115
Spynx
Plus
Any other life clerics that are interested, here is the final version I used. Thanks a bunch to GiGs and Oosh for all the help with syntax. This can be adapted for most any healing spell by changing the d# and *# and adjusting the choice of levels to reflect the spell level. Damage 1 roll - Allows spell level selection and will auto calculate for Life Cleric ability (Disciple of Life). Will auto roll max if Beacon of hope is selected. ?{Level|1|2|3|4|5|6|7|8|9}?{Beacon Of Hope|No,d4|Yes,*4}+?{Level}+2 Damge Type 1 - Prompts for receiving player name input. Helpful when your healing a lot of people. Healing to ?{Character Name} Damage 2 roll - References spell ?{Level} to calculate blessed healer. Because I always forget that I get to heal myself as well. ?{Level}+2 Damage Type 2 Healing to Player Name What the output looks like.
1597205230

Edited 1597205368
Spynx
Plus
I had the time so I went ahead and wrote them up for some of my other main healing spells. Again these are written assuming your a life cleric. Cure Wounds ?{Level|1|2|3|4|5|6|7|8|9}?{Beacon Of Hope|No,d8|Yes,*8}+?{Level}+2 Mass Healing Word ?{Level|3,1|4,2|5,3|6,4|7,5|8,6|9,7}?{Beacon Of Hope|No,d4|Yes,*4}+?{Level}+4 Mass Cure Wounds ?{Level|5,3|6,4|7,5|8,6|9,7}?{Beacon Of Hope|No,d8|Yes,*8}+?{Level}+4
1597205235
GiGs
Pro
Sheet Author
API Scripter
hehe, thanks.
Nice solution. Only because I'm not as smart as most of you guys I made a very slight change and wrapped the thing in brackets so it shows the total and allows me to hover the cursor to get the breakdown: [[?{Level|1|2|3|4|5|6|7|8|9}?{Beacon Of Hope|No,d8|Yes,*8}+?{Level}+2]] Same could be done to the others. To be clear, I never would have come up with the solution in the first place, and am constantly amazed by the helpful people in this forum. Thanks everyone! M