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

:( very :( We can't toggle the "istokenaction" True and False

1387239273
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Ability Property Default Value Notes _id A unique ID for this object. Globally unique across all objects in this campaign. Read-only. _type "ability" Can be used to identify the object type or search for the object. Read-only. _characterid "" The character this ability belongs to. Read-only. Mandatory when using createObj . name "Untitled_Ability" description "" The description does not appear in the character sheet interface. action "" The text of the ability. istokenaction false Is this ability a token action that should show up when tokens linked to its parent Character are selected? Was planning to make a API system of drill down questions... Even had a my token picked out... "Grand Galactic Inquisitor" Could have created a dynamic system of drill down questions to get user input. Just have 10 abilities and dynamically change their name, action and istokenaction value. [Ignore Me!] (Click returned new token action buttons) [Create Character?] [Add Monster?] [Stop?] (click "Create Character' returned new token action buttons [Human?] [Elf?] [Dwarf?] [Stop?] (click "Dwarf") ... you get the idea.... I don't know about the rest of you but I blame Riley.
You should be able to change it...is it not working?
1387248518
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Could be I will investgate closer tomorrow and post my results.
1387272251
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
log(findObjs({ _type: "ability", _id: abilityAskId})[0].get("istokenaction")) Returns undefined.... I can change name and action just fine... but can't change istokenaction.
1387284091
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
This is a dead end idea I think (for what I was thinking) the "istokenactions" don't refresh until you deselect and reselect the token (which make sense for its intended use.)
I see. This was a bug, should be fixed.
1387292451
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Thanks Riley!
Riley, I can confirm that this is fixed, but I think what Stephen (and now I) would really like is for the token action bar to refresh automatically when an ability's istokenaction value changes to true. Off the top of my head I can easily imagine this as a way to program a character creation menu, or a level up menu, that would allow GMs and Players to swiftly create their characters, or at least get the simple formulaic stuff out of the way. I'm sure there would be other possibilities too.
Jeff S. said: Riley, I can confirm that this is fixed, but I think what Stephen (and now I) would really like is for the token action bar to refresh automatically when an ability's istokenaction value changes +1