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

NPC Action Macro - Newb Question

I've been away for a while but I'm back now and have never been really good w macros... Just a copy paste kinda guy.  But when I make a new npc action macro it won't work.  The old ones work but when I copy/paste them they won't work on new tokens?  Macro is on OGL its-  %{selected|repeating_npcaction_$0_npc_action} Please help, I saw an earlier post that stated on March 24th some of the syntax had been changed like using description instead of desc… is my problem something like that? Thank you.
1587431895

Edited 1587431941
If your NPC Has multiple actions you need to change the index after the $ sign to show to new action. (index starts at 0) For example, if your NPC has 3 actions Action 1 code would be: %{selected|repeating_npcaction_$0_npc_action} Action 2 code would be: %{selected|repeating_npcaction_$1_npc_action} Action 3 code would be: %{selected|repeating_npcaction_$2_npc_action}
That's how mine is set up.  It still works on my older tokens, this only seems to not work on any new tokens I make.  I copy/pasted your reply and it doesn't work for me either.  There must be something I'm missing here?
1587432958
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That works as copied and pasted for me. What sheet are you using? If it's not the D&D 5th Edition by Roll20, it won't work.
It is but I've been using a template sheet I created and I just made a token on a fresh sheet and it worked so it must be something wrong with my template.
1587435884

Edited 1587436049
I'm having the same problem, made a template, the macro has worked for months, now it's not working. It was working earlier today. I made a batch of templates the last monster I finished the action macro works for. I come back tonight and it's not working now. 
Update: I made a new NPC Template and it's working on the new one. IDK but it's fixed for me with copy and pasting from the old Template to the New One
I'm finding the same thing... weird, I don't know what the issue was but as long as I have a solution I'm happy. Thanks.