So I have an NPC:
Click here to view the secret text
×
Label Move Loop
Set var "_MyScriptX" = _MyX
Set var "_MyScriptY" = _MyY
If ...
Wait for item Force arrow (northwest),0,0,0,0
Set var "_MyO" = 0
Else If
Wait for item Force arrow (north),0,0,0,0
Set var "_MyO" = 1
Else If
Wait for item Force arrow (northeast),0,0,0,0
Set var "_MyO" = 2
Else If
Wait for item Force arrow (west),0,0,0,0
Set var "_MyO" = 3
Else If
Wait for item Force arrow (east),0,0,0,0
Set var "_MyO" = 5
Else If
Wait for item Force arrow (southwest),0,0,0,0
Set var "_MyO" = 6
Else If
Wait for item Force arrow (south),0,0,0,0
Set var "_MyO" = 7
Else If
Wait for item Force arrow (southeast),0,0,0,0
Set var "_MyO" = 8
If End
Set var "_MyScriptX" = _MyO
Set var "_MyScriptY" = -9999
If ...
Wait for open move northwest
Set var "_MyScriptX" = (_MyO % 3) - 1
Set var "_MyScriptY" = (_MyO / 3) - 1
Move 0,0,0,0
Else
Set var "_MyScriptX" = -9999
Set var "_MyScriptY" = -9999
Wait 0
If End
Go to Move Loop
Sometimes, it works. Sometimes, however, it doesn't. I can't seem to find any consistent pattern as to why.
All sorts of things make it not work - starting the room via F5 in the editor, restarting, using the special command key.
So I am I missing something, or I have I somehow broken DRODscript?
____________________________
[Insert witty comment here]
Qzvlkx?