cloudee1 |
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? :-\ |
Robin_Gravel |
Hi Cloudee1 I thought either Brian or Lars will help since they know better in sci than me. Too bad. None of them had help you, Your code begins to be more completed. I'll take a look at it. Robin Gravel |
Nychold | This may be a dumb question, but are you sure TRAP_SET equals 3 at the time you're running it? |
cloudee1 |
Actually Nychold I am, I have changed the size of ego and in doing so I have had real problems pin-pointing when the ego hotspot touched the gray line. But that problem in this instance has been alleviated and the script works just as it should. Robin, Nychold thax for taking time to look though. ;) So it seems that this script has been good the whole time, it's just me that's screwed up. So if anyone needs a way to set something in a room and then if something should touch that something, then this script is one you may want to peek at. |