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 merry + bright! 🎄
Create a free account

Spell Macro's

Hello All, I am working on my spell macro's but I have run into a road block. [[1d8+(@{selected|casterlevel},5)dh1] is the calculation I found for Cure Light Wounds. But the dh1 does not seem to work in this application. What I mean is that dh1 should mean to drop the highest roll. But I suspect that since I want to drop the highest number the dh1 is not working. My full macro looks like this. /me heals @{target|token_name} for [[1d8+(@{selected|casterlevel},5)dh1]] hit points by divine energy. I am new to this, any help would be greatly appreciated. KK
1430146611
The Aaron
Roll20 Production Team
API Scripter
Are you getting an error?
1430146974

Edited 1430147010
No error. It just does not appear to calculate properly. I rolled a 3 and it says I healed 3HP. But my form says I am a 1st level cleric. So shouldn't that be 4HP of healing?
1430147872
Spren
Sheet Author
Pretty sure ( I may be wrong) all the drop and keep references require a dice roll. So unfortunately (@{selected|casterlevel},5)dh1 won't work because there isn't a roll.
Right, I had assumed the same thing. Any suggestions on how to get around the dh1. I mean is there another way to go with the lesser number?
1430148305

Edited 1430148598
Wes
Pro
Sheet Author
Does this work? [[{(1d8+@{selected|casterlevel}),5}dh1]] Edit: I think I read your roll wrong. Do you add 5 or caster level to a 1d8? Or do you use the higher of 1d8 + caster level or 5?
1430148497
Spren
Sheet Author
No workaround that I can think of off the top of my head. Maybe some other will chime in. I'll give it some thought and see if I can figure something out though. For now I would just take out the extra part and just do 1d8+casterlevel and at level 5 you can just change it to 1d8+5. Seems the simplest solution.
1430148764
Finderski
Plus
Sheet Author
Compendium Curator
I don't know if this would work, but have you tried: [[{(1d8+(@{selected|casterlevel}),1d0+5}dh1]]
You have parenthesis around your rolls and the dh1; don't you need curly brackets for a DH comparison? You have: ( @{selected|casterlevel},5 ) dh1 which generates an error Using: { @{selected|casterlevel},5 } dh1 works fine for me
1430149717
Spren
Sheet Author
Nice Mark G. that seems to work.
1430150094

Edited 1430150143
The Aaron
Roll20 Production Team
API Scripter
Yeah, the curly braces vs, parentheses is why I asked about errors. Couldn't check because I was in a meeting. dh/dl/kh/kl should all work fine numbers or dice, provided you don't have both. [[ { 1d3, 1d8 }kh1 ]] Should work fine [[ { 1, 5 }kl1 ]] Should also work [[ { 1d5, 3 }kh1 ]] will give you an error about mixing types [[ { 1d5, 3d1 }kh1 ]] will work though if you need to choose between a die and a number. (3d1 will be 3)
1430150155
Wes
Pro
Sheet Author
Cool. I was just coming back to post this ^^ after having gone and tried the rolls.
Mark, yes that worked. Thank you so much. Thank you all for your input.