Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: Sp4hn on December 31, 2002, 12:47:08 PM

Title: Won't Compile?!?!
Post by: Sp4hn on December 31, 2002, 12:47:08 PM
(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.")
            )
          )
        )
    )
)
Title: Re:Won't Compile?!?!
Post by: Sp4hn on December 31, 2002, 12:59:18 PM
nevermind, i got it