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] Attack Macro Help

For NPCs, I use the macro %{selected|repeating_npcaction_$0_npc_action} and just change the number to the action desired. What is the equivalent for PCs? I'm trying to make a button to roll attacks without having to rewrite the bloody code every time the weapon or attack changes.
1517835456
Chibbin Grove
Plus
Marketplace Creator
This is exactly what i was about to post! If someone knows this answer it would be greatly apprechaited 
1517837487
Ziechael
Forum Champion
Sheet Author
API Scripter
Try: %{selected|repeating_attack_$0_attack} caveat, i'm not a regular OGL user.
Ziechael is correct. It is %{selected|repeating_attack_$0_attack}
Thanks, guys! I knew someone here would know!!
1517841702
Ziechael
Forum Champion
Sheet Author
API Scripter
For reference, the best way to find out is to enable the macro bar at the bottom and drag/drop a roll/button/repeating section down there. This will tell you the name (although it will insert the rowID rather than the generic $0 etc but you can easily replace that).