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

Macro: Max spell dice

I am trying to get a macro set up for a Level 12 caster to cast Lightning Bolt (D&D 3.5), dealing 1d6 points of damage per Caster Level (Maximum 10d6). I am attempting to do this by calling the Caster Level from the character sheet, and would like to make it all an emote if possible, with tight rolls instead of using "/roll" I have /em launches a Bolt of Lightning 120 ft straight in front of her, dealing [[ @{Character|casterlevel}d6 ]] to each creature in it's line. but can't figure out how to limit it to 10d6. Can anyone help me figure out how to get this to cap out, and perhaps explain how it works so I can use it on other spells, as well?
You can do this without the API: [[ {@{character|casterlevel}d6, 1d0+10}KL1 ]] KL will keel the lowest one.
1420444073
The Aaron
Roll20 Production Team
API Scripter
This should be posted in the Specific Use Questions forum. The API forum is for the Javascript API, a Mentor level feature. I'll move this for you.
1420475341
Lithl
Pro
Sheet Author
API Scripter
HoneyBadger said: You can do this without the API: [[ {@{character|casterlevel}d6, 1d0+10}KL1 ]] KL will keel the lowest one. This should be {casterleveld6, 10d6}, not {casterleveld6, 10}.
I'm not sure that's a proper comparison (either Brian or Honey). Isn't that comparing "12d6" to "10" where you want to compare caster level to 10, then apply d6? The only way I've been able to do this in the past was to combine a full /roll and an inline roll together because KL1 didn't play nice with calculated rolls. /r [[ {10, @{CasterLevel} }kl1 ]]d6 It's one of the few occasions where it's probably better (cleaner) to just manually update once your CL passes 10. I have some other examples over at <a href="https://wiki.roll20.net/Macros_-_Pathfinder_Examples" rel="nofollow">https://wiki.roll20.net/Macros_-_Pathfinder_Examples</a> if it's helpful to you allen.
1420480954
Lithl
Pro
Sheet Author
API Scripter
Mark, you're right. I wasn't particularly thinking when I tried to correct HB's example.
Yeah, I don't use them often... so it was off... oops.
The community is very disappointed in you HoneyBadger... we've grown to expect better of you than that For shame.... :)
Thank you guys very much though. Is there any hope for the future of roll20 to allow these functions to be performed in an inline roll?