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)