Ok
I though that this would work, but it hasn't so far.
I'm trying to make it so that if the player has set a mouse trap in this room, and then stepped on said trap, then death...but so far death has not come.
for the control I have a double wide grey line passed which ego has to walk to get to where the trap is
(method (doit)
(var dyingScript)
(super:doit())
(if(== (send gEgo:onControl()) ctlRED)(send gRoom:newRoom(1)))
(if(== (send gEgo:onControl()) ctlGREY)
(if(==(TRAP_SET 3))
(send gEgo:hide())
(trapSet:loop(1)setCycle(End))
= dyingScript ScriptID(DYING_SCRIPT)
(send dyingScript:caller(902)
register("Maybe next time Echo you will be smart enough not to step on the trap you set! "))
(send gGame:setScript(dyingScript))
)
)
)
Anybody have any suggestions?