I found a bug that appears in scripting when speed potions are used.
Here's the setup:
First character sets Tmp variable to zero. Then it does an if move check. The check is a free action. (The character is either unable to move, or as in this example, is not ordered to move at all) Finally the character will turn clockwise if Tmp is zero, and counter-clockwise if it's not.
The second character sets Tmp to one, then waits one turn.
Under normal conditions, as it's expected, the first character will rotate clockwise.
However if a speed potion is used, the character will start rotating counter-clockwise.
I'm unsure what happens exactly. But I guess the problem lies somewhere with the move check.
I've included a hold to demonstrate the bug.
Character #1
Click here to view the secret text
×
Wait 0
Label start
Set var "Tmp" = 0
If ...
Move 0,0,0,0
If End
If ...
Wait until var "Tmp" = 0
Face direction clockwise
Else
Face direction counter-clockwise
If End
Go to start
Character #2
Click here to view the secret text
×
Wait 0
Label start
Set var "Tmp" = 1
Wait 1
Go to start
Edit:
Forgot to mention.
Running DROD TCB 3.2.1.89
[Last edited by RuAdam at 02-19-2011 07:17 PM]