Hello, everyone.
Here is the code that you could try, if interested.
///
CODE:
[[Random Array Tutorial]]:
{PLAYER 1}
- Click to see if can find "Success" to break the loop.
[[Begin!]](01-01)
[[PLAYER 1]]:
Player 1: 10
[[01-01]]:
@clear
squiffy.myVarTmOut = setTimeout(function(){ squiffy.story.go("01-02"); }, 250); setTimeout(squiffy.myVarTmOut);
{PLAYER 1}
A
[[01-02]]:
@clear
squiffy.myVarTmOut = setTimeout(function(){ squiffy.story.go("01-03"); }, 250); setTimeout(squiffy.myVarTmOut);
{PLAYER 1}
<center> [[Success!]]
[[01-03]]:
@clear
squiffy.myVarTmOut = setTimeout(function(){ squiffy.story.go("01-04"); }, 250); setTimeout(squiffy.myVarTmOut);
{PLAYER 1}
B
[[01-04]]:
@clear
squiffy.myVarTmOut = setTimeout(function(){ squiffy.story.go("01-05"); }, 250); setTimeout(squiffy.myVarTmOut);
{PLAYER 1}
<center> [[Success!]] <br> [[Success!]]
[[01-05]]:
@clear
squiffy.myVarTmOut = setTimeout(function(){ squiffy.story.go("01-06"); }, 250); setTimeout(squiffy.myVarTmOut);
{PLAYER 1}
C
[[01-06]]:
@clear
squiffy.myVarTmOut = setTimeout(function(){ squiffy.story.go("01-01"); }, 250); setTimeout(squiffy.myVarTmOut);
{PLAYER 1}
<center> [[Success!]] <br> [[Success!]] <br> [[Success!]]
<!-- END OF vs. 16: Anemone -->
[[Success!]]:
@clear
clearTimeout(squiffy.myVarTmOut);
{PLAYER 1}
SUCCESS!
- Great Job!
Can you post this using the three backslashes (upper-left on the keyboard). That will give us a code block and it won't use bullet points and whatever.
Like this.
There doesn't seem to be any "begin" passage to go to. I don't see how this would work.
Several times, you have the javascript instruction setTimeout(squiffy.myVarTmOut);
.
What is this supposed to do? setTimeout
takes 2 parameters - a function, and a time. You seem to be passing it only one: the ID of an already-running timer, which will do nothing except show an error.