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

Broken Command

Im just coming back after about a year and a half and it seems coding has changed a lot. Could someone tell me what is wrong with the command: %{selected|repeating_npcaction_$1_npc_action} %{selected|repeating_npcaction_$1_npc_action} %{selected|repeating_npcaction_$2_npc_action} %{selected|repeating_npcaction_$2_npc_action}
1609449793

Edited 1609449864
Jordan C.
Pro
API Scripter
Can you provide more context? Are you getting an error? Is a token selected? Does the token represent a character that has 2 repeating actions? Edit: the command worked on my end when I tested it on a standard SRD Monster that had 2 actions.
Yes I am getting an error, its this:  No ability was found for %{Glabrezu|A:Pincer} Yes the token is selected. The monster is the Glabrezu. It has four actions: Multiattack, Pincer, Fist, Summon Demon Im trying to make a multitrack button that does the the four full attacks. I have a bunch of other commands that seem to be broken as well. But they work perfectly fine on the monsters I have built in the past.
1609451987

Edited 1609453294
Jordan C.
Pro
API Scripter
Hmm, would it be possible to pull a new instance of the monster out to test or is there a lot of information that the old copy has that you need? I ask because I was able to drag a Glabrezu out and run that command without an issue.  Edit: I don't know how/why it would change the name to "A:Pincer" instead of "Pincer"; maybe even changing the name would help show what is happening further? Other things that can potentially help diagnose the problem: Screenshot of the NPC sheet where the actions are named Try attacking with the Pincer from the sheet; if it works, click inside the chat box and press the Up arrow, and copy paste the result to see what name is called there. Type @{Selected|repeating_npcaction_$1_name} into chat and see what returns
OK So. Here is the thing.. I figured it out. And it was an error so exceptionally idiotic that I am embarrassed to tell you. LOLZ! I do very much appreciate your help though.
1609458262
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
What sheet are you using? The attribute names are not universal.
1609458736
Jordan C.
Pro
API Scripter
I've been there! Glad it's sorted