On a related note, I'm trying to do a script where Beethro is wandering through wraithwing fields. If he enters from a certain path, the wraithwings will continue along their merry way (going back and forth). But once he crosses past a force arrow from an alternate entrace, the wraithwings will end the script on room exit and turn into a monster. This has to be done like thus:
Appear at (9,9)
Label "Begin"
Face southeast
Move to (10,10) Forbid Turning
If go to "Attack"
Wait for player at (5,2)-(5,2)
Move to (11,11) Forbid Turning
If go to "Attack"
Wait for player at (5,2)-(5,2)
Move to (12,12) Forbid Turning
If go to "Attack"
Wait for player at (5,2)-(5,2)
... and likewise ... this is getting a little boring ...
Go to "Begin"
Label "Attack"
End on room exit
Turn into monster
This could be simplified down to:
Appear at (9,9)
Label "Begin"
Face southeast
Loop 10 times [or likewise command, using variables if you want]
Move southeast forbid turning
If go to "Attack"
Wait for player at (5,2)-(5,2)
Go to Loop
Face northwest
Loop 10 times
Move northwest forbid turning
If go to "Attack"
Wait for player at (5,2)-(5,2)
Go to Loop
Go to "Begin"
Label "Attack"
End on room exit
Turn into monster
This may seem the same length, but it really isn't (as I've omitted at least 45 lines from the top script). I echo Doom: this is really complicated! Or at least tedious.
____________________________
"
Write a wise saying and your name will live forever."
-Anonymous