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

Trouble with initiative and Token Action Maker API

Hello everyone,


I am not very clever at macros so i don't use them.  I do use the Token Action Maker API because it is great and has never needed any input from me beyond !ta

My players have recently started a new game (dnd using 5e 2014 sheets) and i've transfered their characters across to the new game, added Token Action Maker, and we've had our first game.  All went well except that one of my players found that the Token Action for Init didn't work on her character.  The other characters worked ok.  On her character sheet if you click on INITIATIVE it rolls as usual.

If you click on the Init button in Token Action you got: No ability was found for %{-NuVVoxZomQmLUZTDikX|initiative}

Ok, so the Init button is linked to (instructed by, i guess) the Attributes & Abilities tab on the Character Sheet, I can see the text stream %{-NuVVoxZomQmLUZTDikX|initiative} if I click the edit button on the Init line, but beyond that I am stymied.  Can anyone advise or point me in the direction of an appropriate crib sheet? 


Thanks in advance.  This whole stuff seems like wizardry to some of us, so please be known that your magical skills are appreciated!

April 23 (4 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Hi HilaireBolloc!

Are they using a character with a non-standard initiative ability (like one that has advantage, for instance)? The initiative button from TAM is fairly crude.

Also, does it work if you delete and regenerate her token actions?

April 24 (4 months ago)

uncertain if this is the case

I've had an issue, maybe not from Token Action maker but with just initiative in macros, and that would be the character names.

I normally would have to tell players to use first name only on the sheet, cause if there is a surname, it wouldn't read the initiative, as it was grabbing the first name only.
So to the OP - curious is everyone sheet with first name only and the problem sheet has a surname? if so, might just be that. 

April 24 (3 months ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Hey Novercallis!

Can you post the initiative macro you are using that does this? Names with spaces in them should not matter in a standard attribute lookup, and assigning the result to the tracker doesn't even need an attached sheet (since initiative is token-based). I'd like to find out what's going on.


As for this relating to HilaireBolloc, their Token Action Maker is set to write the token actions by using character IDs, not names, so that shouldn't even come into the equation.

April 25 (3 months ago)

Just tested in Jumpgate & Legacy: not working for any players, regardless if just first name or with surname

could have sworn it was working. I'm assuming my players are using the sheet directly recently and haven't told me the macro button in chat isn't working.

/w @{selected|character_name} &{template:atk} {{desc=**Character Sheet Menu**
**-------------------------------------**
** [Initative](~Name|initiative)**
**-----------------------------------------------**
 [Perception Check](~Selected|perception)** **[Death Save](~selected|Death_save)
**-----------------------------------------------**
**Saving Throws**
[Strength](~Selected|strength_save) [Dexterity](~Selected|dexterity_save) [Constitution](~Selected|constitution_save) [Intelligence](~Selected|intelligence_save) [Wisdom](~Selected|wisdom_save) [Charisma](~Selected|charisma_save)
**-----------------------------------------------**
**Ability Checks**
[Strength](~Selected|strength) [Dexterity](~Selected|dexterity) [Constitution](~Selected|constitution) [Intelligence](~Selected|intelligence) [Wisdom](~Selected|wisdom) [Charisma](~Selected|charisma)
**-----------------------------------------------**
**Physical Skills**
[Acrobatics](~Selected|acrobatics) [Athletics](~Selected|athletics) [Steath](~Selected|stealth)

**Social Skills**
[Persuasion](~Selected|persuasion) [Deception](~Selected|deception) [Insight](~Selected|insight) [Intimidation](~Selected|intimidation)

**Senses**
[Investigation](~Selected|investigation)

**Knowledge**
[Arcana](~Selected|arcana) [History](~Selected|history) [Medicine](~Selected|medicine) [Nature](~Selected|nature) [Religion](~Selected|religion)

**Miscellaneous**
[Survival](~Selected|survival) [Animal Handling](~Selected|animal_handling) [Performance](~Selected|performance) [Sleight of Hand](~Selected|sleight_of_hand)
**-------------------------------------**
[Short Rest](!short-rest) **|** [Long Rest](!long-rest) **
}}

April 25 (3 months ago)

We've had token action macros break randomly but not necessarily initiative. Many of the attack options would break and I'm thinking that might be because the sheet often generates copies of attacks and when the player deletes down to one instance, they might be deleting the one associated with the macro. I'm guessing here.

Regenerating the token action macros fixes things but it is annoying.

Hi @keithcurtis,  thanks for responding.  in answer to your question, the character gets a big bonus to initiative from the Alert feat but that's it.  


However, deleting and reinstating the turn actions did work.  Plus I had to learn how to do that, which has doubled the amount of things I know how to do with that API.

Thanks so much for your help, and thanks to the others who contributed on this thread.  It's very much appreciated :)