ok I'm trying to use local variables butit's not quite working like I thought is there a step that I am missing?
I've got this- under the (use)'s:
(local
TRAP_IN_CABINET
)
I've got this with my (init)'s:
=TRAP_IN_CABINET TRUE
(if(TRAP_IN_CABINET)(theTrap:init()setPri(1)))
I've got this mith my (said)'s
(if(Said('take/trap'))
(if(TRAP_IN_CABINET)
(if(== (send gEgo:onControl()) ctlLIME)
(eDoor:setCycle(End))
(send gGame:changeScore(3))
(send gTheMusic:number(2)loop(1)priority(-1)play())
Print("The trap has been taken!")
(send gEgo:get(INV_TRAP))
(theTrap:hide())
=TRAP_IN_CABINET FALSE
)(else Print("Try standing closer!"))
)(else Print("I already have it!"))
)
when I am in the room it works fine, but if I return to the room the trap has been replaced, and you are able to get it again, I assume that something needs to go in global but I don't know what?