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

[5e OGL] Macro Scorching ray help Please

1480212121

Edited 1480212360
This is my base attack I cant figure out how to make it level or attack more then once can someone help me tweak this so it attacks the appropriate times per level its cast. Im not good at coding so I'm not sure what to add or how to make it pretty. @{Daystar|wtype}&{template:atkdmg} {{mod=+4}} {{rname=Scorching Ray}} {{r1=[[1d20@{Daystar|halflingluck}cs>20 + 2[WIS] + 2[PROF]]]}} @{Daystar|rtype}@{Daystar|halflingluck}cs>20 + 2[WIS] + 2[PROF]]]}} {{attack=1}} {{range=120 feet}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d6]]}} {{dmg1type=fire }} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[2d6[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}} {{spelllevel=2}} ammo= @{Daystar|charname_output}
Im using srd5 roll20 character sheet
1480214187

Edited 1480214250
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The OGL templates don't support multiple attacks. You'll need to click each time you need to attack or put the additional attacks and damage rolls in the description field.
what about just making a macro thats not based off the sheets 
The &{template:atkdmg} templates are attached to the sheets, but you could make macro using the default template &{template:default}. That doesn't have crit functionality though. 
ah yeah i will just have to work with it the way it is thanks for helping me
Just to be clear, as long as the sheet is set for the campaign, you can reference the templates contained in it in any macro. The macro does not have to be built-in to the sheet.
1480263454
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Rabulias said: Just to be clear, as long as the sheet is set for the campaign, you can reference the templates contained in it in any macro. The macro does not have to be built-in to the sheet. True, but the OGL templates do not have a way to add additional attacks into the formatted output of the template, they only support up to a single pair of advantage/disadvantage rolls.