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

Activating a Characters Attack Macro With a Command (Pathfinder Community Sheet)

Say I have an NPC with 5 different attacks. It starts at 0 and goes to 4. I want to run #4 - when I mouse over the black button in the Attacks section of the character sheet to trigger the attack it says repeating_weapon_SX_attack-roll So I would assume this would run it? %{selected|repeating_weapon_SX_attack-roll} Or maybe %{selected|repeating_weapon_4_attack-roll} But this doesn't do anything. I want to be able to run the macro text I edited on the attack by typing out a command. (That way I can make that specific attack a token action on that token that represents that character) So how do I go about doing this?
1525222116

Edited 1525222145
MyRoll20Stuffs
API Scripter
I didn't know how to do it like how I described but I found a workaround. 1) Copy the Macro Text from the Attack and make a Macro with the text in the Collections Section 2) Create an ability on the character sheet that just calls the macro (In this instance all I put in is "#Fire-Breath1" 3) Toggle the Checkbox to Add to Token Actions Now I can use the custom template and SFX / VFX associated with the Fire Breath attack with the click of a Token Action button.
1525222266

Edited 1525222607
vÍnce
Pro
Sheet Author
You're almost there. ;-) %{selected|repeating_weapon_ $ 4_attack-roll} or just use the included Attacks chat menu and make any attack you want from chat. %{selected|attacks} or for NPC's %{selected|NPC-attacks}
1525222398
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
repeating_weapon_$X_attack-roll means that you replace the x with the row number (starts at 0), or you replace the $xwith the row I'd.
I have really poor vision and I don't wear my glasses even though I should... the $ looked like an S to me. Thanks for clearing this up for me guys.