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

One specific token action suddenly stopped working

Quick video of the problem in action:&nbsp; <a href="https://streamable.com/e9ttn1" rel="nofollow">https://streamable.com/e9ttn1</a> (The monster on the left has a random token action that refuses to work, while the monster on the right has all working actions). I am setting up token actions for all of my monsters, and for some reason, despite the monster on the left using the same exact setup &nbsp;as the monster&nbsp;on the right, its token action doesn't work. Here's there code I'm using for their Ability macros. I've checked that I'm referencing the right action in the list about a dozen times, too.&nbsp; Sepiks Prime (DOES NOT WORK) Named: 5#ULTRA-ACTION:-Servitor-Guard Code: %{selected|repeating_npcaction_$3_npc_action} Kell (WORKS) Named:&nbsp;5#ULTRA-ACTION:-Takedown Code: %{selected|repeating_npcaction_$4_npc_action} /w gm [Kell's Longsword](~1#Kell's-Longsword)
1663177109
Kraynic
Pro
Sheet Author
Open the sheet with the problem action, and drag the action that isn't working down to the bottom of the sheet to add it to your quick macro bar.&nbsp; Look at the display there to be sure you are using the same row number as what shows up on the quick macro bar.&nbsp;
1663329134

Edited 1663329411
Sorry for the delayed response. The token action shows up as " repeating_npcaction_-MookANeyvHR|IHA3TsC_npc_action" in the quick macro bar. I tried typing that into the macro code for the Ability on the character sheet, and it did nothing (as I figured).&nbsp; It does &nbsp;work from the macro quickbar, though. It just doesn't work as a token action. I 100% for sure have the broken token action listed as the $3 spot on the character sheet (technically the 4th slot, since action count starts at $0).&nbsp; EDIT: If I completely re-make the character sheet, it works. Something about that sheet in particular is bugged and won't let that one token action &nbsp;function.
1663337337
Kraynic
Pro
Sheet Author
I should have remembered it would give the id instead of the row index.&nbsp; My guess is that the action you are trying to call is actually a different row number due to another row being added and then deleted. You could probably hit on the correct row index by trying 4, 5, etc. until it worked.&nbsp; You can always switch the $3 for the -MookANeyvHR|IHA3TsC and it would work that way.
1663418485

Edited 1663418492
I tried that, and it didn't work.
In fact, macros seem to be entirely broken now. The only solution is to completely remake the character sheet. I have 170+ monsters. This is really &nbsp;annoying to have to deal with.
1663429670
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
HI DnDestiny! Since you have a Pro account, appear to be using the&nbsp;D&amp;D 5th Edition by Roll20 Sheet, and are using your token actions to call character abilities, have you considered just using the Token Action Maker API script? It can create all of your actions with a single command, even for a group of tokens.
It can create the actions, but they're still broken. I still had to re-make almost every single sheet to get everything to work.
1663606077
Kraynic
Pro
Sheet Author
You don't happen to have more than one sheet with the same name do you?&nbsp; Kind of a "shot in the dark", but that would explain the macros being confused.
Did not. But I think the issue has to do with the character sheets themselves, because I finally noticed a pattern: the sheets that work &nbsp;were the ones made after the update that added Mythic Actions to NPC sheets, and the ones that were always broken were made before that update (which was most of them).&nbsp; I also noticed that I could just duplicate the sheet and generate macros on the duplicated sheet, and it would work just fine. I have no idea if this confirms or debunks the hypothesis of the problem being that the broken sheets were made a long time ago.
There was a bug I discovered a while back that seems to appear randomly from time to time - I'm not sure if this is the same one or not.&nbsp; Sometimes the 'row id' of repeating actions gets misnumbered.&nbsp; What has worked for me in the past is to open up that section, unlock it, and move one of the items, and lock the section. Then unlock it, move it back, and relock it.&nbsp; That forces the sheetworkers to renumber all of the repeating items in that section. Doing it once isn't a big deal, but if you have to do it for all of your character sheets... that will be pretty annoying.&nbsp;