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 .
×

Spell macro help

Hi, I need a hand with a macro for a spell like ear piercing scream where it's 1d6 per 2 caster levels. I've gotten this far, but I can't figure out how to make it work at level 1 since I need it to round down. Essentially I need to get a minimum of 1 somewhere in this macro. If anyone can help I'd appreciate it. [[ {5, floor(@{CasterLevel}/2) }kl1 ]]d6 Thanks!
1488291847
The Aaron
Pro
API Scripter
Could you do something like: [[{5,floor((@{CasterLevel}-1)/2)+1}kl1]]d6
I tried that, but at level 3 it rolls 2d6 instead of 1d6. Although I think the way that spell is worded is kind of off as it implies you don't get 2d6 till 4 which seems like it should do more than 1d6 at 3. If so then yes your macro does work.
1488292842
The Aaron
Pro
API Scripter
Oh.  So the progression should be: 1,1,1,2,2,3,3,4,4,5,5,6,6?
According the way the spell was written yea, but that seems silly lol. But if it is correct is there a way to do that with this type of macro. I have other ways around it, but I'd like to think I was close here and just needed someway to tell it minimum of 1 lol.
1488293227
Ziechael
Forum Champion
Sheet Author
API Scripter
try: [[[[ {{5,floor(@{casterlevel}/2)}kl1,1d1}kh1 ]]d6 ]]
1488293278
The Aaron
Pro
API Scripter
Well, you could always do: [[ {5, [[{1,floor(@{CasterLevel}/2)}kh1]] }kl1 ]]d6
And that's the answer lol, thanks so much!