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

API Token Actions Now Not Showing Anything Other Then Checks, Initiative and Saves.

Hi I posted this in the Roll20 bug forum but I think it was in the wrong place, I am using the script in the Link below, to give each Token a Token Action. <a href="https://www.dropbox.com/s/n369am842wruyk0/Token%20actions.docx?dl=0" rel="nofollow">https://www.dropbox.com/s/n369am842wruyk0/Token%20actions.docx?dl=0</a> So I have been running my campaign for over a year now, and we use an API Script (which I can link if necessary) to have token actions appear upon clicking on the token, that way players don't have to constantly go into their sheets and the DM can make attacks, saves, checks, spells etc quicker. However, since yesterday, the last two I have set only now show Checks, Saves and Initiative. Can someone help me as tow why this is? I'm using Roll20's 5e Dungeon and Dragons.&nbsp;
Any help?
1585001278
The Aaron
Roll20 Production Team
API Scripter
hmm. That's Kevin's script, I don't think he's active anymore.&nbsp; Can you put that script test in a gist (<a href="http://gist.github.com" rel="nofollow">http://gist.github.com</a>), I can't get at the text on that document.&nbsp; I can try and take a look at it then.
1585001417
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Ah. I ran into this problem just recently. Try changing this section: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _.each(char, function(a) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isNpc(a.id) === "1") { to read: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _.each(char, function(a) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (isNpc(a.id) === 1) { The script looks for a string, but the sheet is now reporting an integer. Let me know if that clears it up.
1585002089
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Try this version .