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

Attack Help

Hello, im playing a Modern 5e game, and there are weapons with alternate firing modes (single shot, Burst, and Auto fire). I have created a new line for each attack firing mode. but the problem comes from token actions. I don't want to create a tokens macro for each attack. I would like to combine the attack into one macro for the token action using the quarry option when selecting attacks. I have done this for my other template but I am having trouble setting it up using the OGL Template. I have tried a few times but I cant get it to work. would someone be able to help me combine the attack below? I will place the attack macros im trying to combine below. I would really appreciate it, Thank you. Single Shot @{Lonk Zuigon|wtype}&{template:atkdmg} {{mod=+5}} {{rname=Assault Rifle}} {{r1=[[@{Lonk Zuigon|d20}cs>20 + 2[DEX] + 3[PROF]]]}} @{Lonk Zuigon|rtype}cs>20 + 2[DEX] + 3[PROF]]]}} {{attack=1}} {{range=150ft/600ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d8 + 2[DEX]]]}} {{dmg1type=Ballistic}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[2d8+16+@{Lonk Zuigon|dexterity_mod}[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=MAG - Bonus Action to Reload Two-Handed - Requires two hands when you Attack with it. }}   {{spelllevel=}} {{innate=}} {{globalattack=@{Lonk Zuigon|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Lonk Zuigon|global_damage_mod_type}}} ammo=Assault Rifle|-NG1UrVEKZ4eKccdDiiX @{Lonk Zuigon|charname_output} Burst Fire @{Lonk Zuigon|wtype}&{template:atkdmg} {{mod=+7}} {{rname=Burst Fire Assault Rifle}} {{r1=[[@{Lonk Zuigon|d20}cs>20 + 2[DEX] + 2[MOD] + 3[PROF]]]}} @{Lonk Zuigon|rtype}cs>20 + 2[DEX] + 2[MOD] + 3[PROF]]]}} {{attack=1}} {{range=150ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[3d8 + 2[DEX]]]}} {{dmg1type=Ballistic}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[3d8+24+@{Lonk Zuigon|dexterity_mod}[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=MAG - Bonus Action to Reload Two-Handed - Requires two hands when you Attack with it. }}   {{spelllevel=}} {{innate=}} {{globalattack=@{Lonk Zuigon|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Lonk Zuigon|global_damage_mod_type}}} ammo=Assault Rifle,5|-NG1UrVEKZ4eKccdDiiX @{Lonk Zuigon|charname_output} Auto Fire @{Lonk Zuigon|wtype}&{template:atkdmg} {{mod=DC13}} {{rname=Auto Fire Assault Rifle}} {{r1=[[0d20cs>20]]}} {{r2=[[0d20cs>20]]}} 0 {{range=150ft/600ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d8 + 2[DEX]]]}} {{dmg1type=Ballistic}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[2d8[CRIT]]]}} {{crit2=[[0[CRIT]]]}} {{save=1}} {{saveattr=Dexterity}} {{savedesc=Half Damage}} {{savedc=[[[[(@{Lonk Zuigon|dexterity_mod}+8+@{Lonk Zuigon|spell_dc_mod}+@{Lonk Zuigon|pb})]][SAVE]]]}} {{desc=MAG - Bonus Action to Reload Two-Handed - Requires two hands when you Attack with it. Auto-Fire - Creature in targets square and all adjacent squares must make a DEX save or take damage. If square targeted is at weapons long range targets have advantage to DEX saving throws.}}   {{spelllevel=}} {{innate=}} {{globalattack=@{Lonk Zuigon|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Lonk Zuigon|global_damage_mod_type}}} ammo=Assault Rifle,10|-NG1UrVEKZ4eKccdDiiX @{Lonk Zuigon|charname_output}
1668184278

Edited 1668184494
Gauss
Forum Champion
Combining attack templates into one query requires HTML entities, and is very difficult due to the amount of work involved and the attributes being called.  Because of that it is generally recommended to use a chat menu. Have the macro bring up a chat menu, push the button that corresponds to the attack you want. 
If you're using the 'D&D 5E by Roll20' sheet (commonly called the 5E OGL), then this chat menu approach will work.