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

Earthdawn 3.0 Game - Step number Script Died - Help

Hello Fellow Nerds, Recently our group jumped back into our Earthdawn 3rd game after taking a month off. This script is now giving an error message and is crashing the sandbox. Unfortunately its a critical script to run our game. I copied the script from this thread and I fear a recent update has made some changes.. <a href="https://app.roll20.net/forum/post/152710/earthdawn" rel="nofollow">https://app.roll20.net/forum/post/152710/earthdawn</a>... I know there was some issues with using the !~ command but it did work really well for our group for last several months. Basically the script looks for !~ and converts it to Earthdawn Step dice. Any ideas?
1395086150

Edited 1395086592
"Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your scripts and click the "Save Script" button and we'll attempt to start running them again. More info... For reference, the error message generated was: Infinite loop or long running process detected." EDIT THAT&gt; INIT HIGHLIGHTER SCRIPT WAS THE BAD ONE&gt; THIS STEP ROLLER WORKS
1395086529

Edited 1395086809
Earthdawn Step Dice Script for those who are interested. (CREATE A MACRO CALLED 'step') In the macro: !~ Then asked players to create and type. #step (number) #step 10 for example or create macros of their own for attack and damage. etc. ====================================================== on("chat:message", function(msg) { // looks for !~ and converts it to Earthdawn Step dice. if(msg.type == "api" && msg.content.indexOf("!~") !== -1) { var stepNum = eval(msg.content.replace("!~", " ")); if (stepNum &lt; 2){ sendChat(msg.who, "Step 1"); sendChat(msg.who, "/r 1d6!-3"); } if (stepNum === 2){ sendChat(msg.who, "Step 2"); sendChat(msg.who, "/r 1d6!+-2"); } if (stepNum === 3){ sendChat(msg.who, "Step 3"); sendChat(msg.who, "/r 1d6!-1"); } if (stepNum === 4){ sendChat(msg.who, "Step 4"); sendChat(msg.who, "/r 1d6!+"); } if (stepNum === 5){ sendChat(msg.who, "Step 5"); sendChat(msg.who, "/r 1d8!+"); } if (stepNum === 6){ sendChat(msg.who, "Step 6"); sendChat(msg.who, "/r 1d10!+"); } if (stepNum === 7){ sendChat(msg.who, "Step 7"); sendChat(msg.who, "/r 1d12!+"); } if (stepNum === 8){ sendChat(msg.who, "Step 8"); sendChat(msg.who, "/r 2d6!+"); } if (stepNum === 9){ sendChat(msg.who, "Step 9"); sendChat(msg.who, "/r 1d8!+1d6!+"); } if (stepNum === 10){ sendChat(msg.who, "Step 10"); sendChat(msg.who, "/r 2d8!+"); } if (stepNum === 11){ sendChat(msg.who, "Step 11"); sendChat(msg.who, "/r 1d10!+1d8!+"); } if (stepNum === 12){ sendChat(msg.who, "Step 12"); sendChat(msg.who, "/r 2d10!+"); } if (stepNum === 13){ sendChat(msg.who, "Step 13"); sendChat(msg.who, "/r 1d12!+1d10!+"); } if (stepNum === 14){ sendChat(msg.who, "Step 14"); sendChat(msg.who, "/r 2d12!+"); } if (stepNum === 15){ sendChat(msg.who, "Step 15"); sendChat(msg.who, "/r 1d12!+2d6+"); } if (stepNum === 16){ sendChat(msg.who, "Step 16"); sendChat(msg.who, "/r 1d12!+1d8!+1d6!+"); } if (stepNum === 17){ sendChat(msg.who, "Step 17"); sendChat(msg.who, "/r 1d12!+2d8!+"); } if (stepNum === 18){ sendChat(msg.who, "Step 18"); sendChat(msg.who, "/r 1d12!+1d10!+1d8!+"); } if (stepNum === 19){ sendChat(msg.who, "Step 19"); sendChat(msg.who, "/r 1d12!+2d10!+"); } if (stepNum === 20){ sendChat(msg.who, "Step 20"); sendChat(msg.who, "/r 2d12!+1d10!+"); } if (stepNum === 21){ sendChat(msg.who, "Step 21"); sendChat(msg.who, "/r 3d12!+"); } if (stepNum === 22){ sendChat(msg.who, "Step 22"); sendChat(msg.who, "/r 2d12!+2d6!+"); } if (stepNum === 23){ sendChat(msg.who, "Step 23"); sendChat(msg.who, "/r 2d12!+1d8!+1d6!+"); } if (stepNum === 24){ sendChat(msg.who, "Step 24"); sendChat(msg.who, "/r 2d12!+2d8!+"); } if (stepNum === 25){ sendChat(msg.who, "Step 25"); sendChat(msg.who, "/r 2d12!+1d10!+1d8!+"); } if (stepNum === 26){ sendChat(msg.who, "Step 26"); sendChat(msg.who, "/r 2d12!+2d10!+"); } if (stepNum === 27){ sendChat(msg.who, "Step 27"); sendChat(msg.who, "/r 3d12!+1d10!+"); } if (stepNum === 28){ sendChat(msg.who, "Step 28"); sendChat(msg.who, "/r 4d12!+"); } if (stepNum === 29){ sendChat(msg.who, "Step 29"); sendChat(msg.who, "/r 3d12!+2d6!+"); } if (stepNum === 30){ sendChat(msg.who, "Step 30"); sendChat(msg.who, "/r 3d12!+1d8!+1d6!+"); } if (stepNum === 31){ sendChat(msg.who, "Step 31"); sendChat(msg.who, "/r 3d12!+2d8!+"); } if (stepNum === 32){ sendChat(msg.who, "Step 32"); sendChat(msg.who, "/r 3d12!+1d10!+1d8!+"); } if (stepNum === 33){ sendChat(msg.who, "Step 33"); sendChat(msg.who, "/r 3d12!+2d10!+"); } if (stepNum === 34){ sendChat(msg.who, "Step 34"); sendChat(msg.who, "/r 4d12!+1d10!+"); } if (stepNum === 35){ sendChat(msg.who, "Step 35"); sendChat(msg.who, "/r 5d12!+"); } if (stepNum === 36){ sendChat(msg.who, "Step 36"); sendChat(msg.who, "/r 4d12!+2d6!+"); } if (stepNum === 37){ sendChat(msg.who, "Step 37"); sendChat(msg.who, "/r 4d12!+1d8!+1d6!+"); } if (stepNum === 38){ sendChat(msg.who, "Step 38"); sendChat(msg.who, "/r 4d12!+2d8!+"); } if (stepNum === 39){ sendChat(msg.who, "Step 39"); sendChat(msg.who, "/r 4d12!+1d10!+1d8!+"); } if (stepNum === 40){ sendChat(msg.who, "Step 40"); sendChat(msg.who, "/r 4d12!+2d10!+"); } } }); CREDIT GOES TO <a href="https://app.roll20.net/users/139522" rel="nofollow">https://app.roll20.net/users/139522</a>