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}