Sp4hn |
(instance RoomScript of Script (properties) (method (handleEvent pEvent) (super:handleEvent(pEvent)) /***************************************** * Handle the possible said phrases here * *****************************************/ (if(Said('look')) Print("You are in an empty room") ) (if(Said('take/key')) (if(send gEgo:has(INV_KEY)) Print("You alread have it!") )(else (if(send gEgo:inRect(150 150 170 170)) Print("Okay.") (send gEgo:get(INV_KEY)) (theKey:hide()) )(else Print("You're not close enough.") ) ) ) ) ) |
Sp4hn | nevermind, i got it |