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 .
×
Advertisement Create a free account

Initiative doesn't work, even straight from the char sheet (with no scripts running)

1637643936
GM
Pro
was working with Combatmaster/token/universal scripts for months...but now nothing works
1637649010
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Can you describe step by step what you are trying, what you expect to happen and what actually happens? Also, which sheet are you using, have you tried this on other browsers, and have you tried it in a private browsing window?
1637685217

Edited 1637685283
GM
Pro
Hi, thanks for your time, could I invite you to GM my game please, I have a feeling you'll solve the problem quickly......no scripts running at the moment...tokens are said to not be linked...but even selecting initiative from character sheet doesn't assign to ini tracker.  Using D&D5e character sheets.
1637685536
Kraynic
Pro
Sheet Author
Is a token selected when initiative is rolled?  Initiative in the tracker is tied to a token no matter where the initiative macro is rolled from.
1637687310
GM
Pro
Yes it is...again everything was great...until 1 day last week when everything failed
1637687736
GM
Pro
but no valid token was selected!
1637688048
GM
Pro
Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again.  More info...  If this script was installed from the Script Library, you might find help in the Community API Forum. For reference, the error message generated was:  TypeError: Cannot read property 'pr' of null TypeError: Cannot read property 'pr' of null at apiscript.js:2086:56 at Array.sort (<anonymous>) at sortTurnorder (apiscript.js:2085:19) at rollInitiative (apiscript.js:1670:13) at startCombat (apiscript.js:1521:17) at commandHandler (apiscript.js:309:17) at apiscript.js:166:25 at Function.each (/home/node/d20-api-server/node_modules/underscore/underscore-umd.js:1330:9) at inputHandler (apiscript.js:161:23) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16)
1637700287
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It could be a case of the default token improperly saved. Manually verify that the token on the tabletop represents the character sheet you have open. Easiest way os to shift or alt/opt double-click on it. If nothing opens, then the default token is not set. With that token still selected, then try clicking the init button. If this turns out to be the case, remember that saving the default token must be the last step in setting up the token. Nothing done to it afterward affects the saved default token in any way.