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

Token Actions don't seem to work on tokens created after the latest update.

I create NPC characters for my monsters and use Ability set as Token Actions to roll their attacks and saves so I don't have to open the character sheet. For example I would have an ability called Bite with the macro "%{selected|repeating_npcaction_$0_npc_action}" and as long as Bite was the first action on the character sheet it works. Ever other action I just increase the $0 by one going down the list. Since the newest Roll20 update however any new abilities I create don't work.  Complete example: I have NPC monster for the Banderhobb.  The first action on its list is Bite. Inside of its character sheet I add an ability call "Bite" with the macro text "%{selected|repeating_npcaction_$0_npc_action}" set as a token action so that it appears at the top of the screen when the token in selected. If I select the Banderhobb token and press the token action I get "No ability was found for %{Banderhobb|Bite}"  Pressing the up arrow in the chat box shows that what was attempted was "%{Banderhobb|Bite}" If I select the Banderhobb token an manually run  "%{selected|repeating_npcaction_$0_npc_action}" it works just fine so I know the macro works.  Its just the "%{Banderhobb|Bite}" part of the token action that no longer works. Even a simple token action such as "/roll 1d20" doesn't work. Also, if I use a NPC monster that was created before the update all the token actions still work. Anyone else notice anything like this?
1646344827
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If I repeat this steps, the macro/token action works fine on my end. I just tested it with a plain old gnoll. I even get "%{Gnoll|Bite}" when I press the up arrow. Best guess: Make sure you don't have any duplicate characters. If you have two "Banderhob"s, even if one is archived, this can confuse the parser.
1646344962
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yeah, I just checked. If I make a duplicate Gnoll with the same name, I see exactly what you describe.
It looks like you’re using the ‘D&D 5E by Roll20’ character sheet template, so you may be interested in a  chat menu approach  instead. 
Thanks guys.  I will try to run down any duplicates and take a look at that Chat Menu approach
I'm with Keith on this one, you probably have a duplicated named sheet either lost in a folder or archived OR you are capitalizing something you shouldn't.