Author Topic: Won't Compile?!?!  (Read 2478 times)

0 Members and 1 Guest are viewing this topic.

Offline Sp4hn

Won't Compile?!?!
« 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.")
            )
          )
        )
    )
)



Offline Sp4hn

Re:Won't Compile?!?!
« Reply #1 on: December 31, 2002, 12:59:18 PM »
nevermind, i got it


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.019 seconds with 16 queries.