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

Scorching Ray Macro Help

So i'm trying to create a macro for scorching ray that would call for a drop-down menu for you to select the spell slot level you wish to cast. The macro would then roll 3d20 for attack and 3 2d6 for damage for level 2. Then if level 3 is selected it would roll 4d20 for attack and 4 2d6 at level 3, and so on. I am using 5e OGL and I am aware that you can't make multiple attacks within a macro using the 5e OGL template. So I am using &{template:default} for the attack and &{template:dmg} for the damage. Is there a way to only ask once for the spell slot level and have it roll the appropriate amount of attack and damage rolls? What I currently have is this; it's not much. &{template:default} {{Scorching Ray}} {{Spell Slot= ?{Cast at which level?|2|3|4|5}}} {{Range= 120 feet}} &{template:dmg} {{rname=Scorching Ray}} {{damage=1}} {{dmg1flag=1}} {{dmg1= ?{Cast at which level? | 2, [[2d6]]+[[2d6]]+[[2d6]] | 3, [[2d6]]+[[2d6]]+[[2d6]]+[[2d6]]}}} {{dmg1type=Fire}} {{crit1=crit1}} {{crit2=crit2}} {{hldmg=hldmg}} {{spelllevel=spelllevel}} {{charname=@{selected|character_name}}} So it makes 2 calls for spell slot level. I haven't filled it all out yet since I'm just testing. The 1st roll table just calls for which spell slot you are using for display. and the 2nd calls it for rolling damage. Is there a way to make it call ?{Cast at which level} once and have the number selected 1. Display which spell slot is being used. 2. Roll the appropriate amount of Attack rolls 3. Roll the appropriate amount of Damage rolls?
1509555753

Edited 1509557400
Have a rather messy solution that uses ability calls, the default template, requires a bit of setup, and outputs every roll (needed or not). Biggest problem is higher spell levels load a large template. Main macro sample: /w Bryan &{template:default} {{name=Scorching Ray Selection}} {{[Level 2 - 3 rays](~Hadan|sc2)[Level 3 - 4 rays](~Hadan|sc3)[Level 9 - 10 rays](~Hadan|sc9)}} Replace all instances of "Bryan" with your name, or gm if you are running the game. Replace all instances of "~Hadan" with ~character_name. If you are GMing, you can create a dummy character sheet named spells. In which case you replace "~Hadan" with ~spells.. On the desired character sheet, you need to go to the Attributes & Abilities tab, and then add a new ability for each level of scorching ray you'd want to be able to cast. In the above macro they're named sc2, sc3, and sc9 (levels 2, 3, and 9 respectively) for testing. Then, for each of the attributes, add the below code (up to the maximum number of rays):  &{template:default} {{name=@{selected|character_name}: Scorching Ray}} {{Spell Slot=9th}} {{Ray 1=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 2=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 3=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 4=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 5=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 6=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 7=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 8=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 9=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} {{Ray 10=Attk: [[d20]] Crit?: [[d20]]  Dmg: [[2d6]]+[[2d6]]+[[2d6]] Crit?: [[2d6]]+[[2d6]]+[[2d6]] }} Change the spell slot level accordingly and delete extra rays for lower levels. Using this, you'd get the below on running the main macro (adding more spell levels will present more options): Clicking one of the above options will run the attribute on your character sheet: (Edited the code to roll correct damage. Additional values will show when rolling damage. If separate values are not needed, you can put each damage roll in double brackets.)