|
on (mouse)   showinfo (text ; true) on (click)   walkto (self ; 12 ; 21 ; 3) |
|
on (mouse)   instobj (button1 ; 2) on (click)   {     setobj (button1 ; 3) "Optional"     command (look)   } |
|
on (look)   speech (self ; Add here the "look"-description of the object ; speechsample) |
|
on (pickup)   if_obj (key ; 1)   {     setobj (key ; 0)     pickup (self)     playsound (pickupeffect)     additem (self ; key)   } |
|
on (cantpickup)   speech (self ; I cannot pick that up. ; speech_cantpickup) |
|
on (cantall)   speech (self ; That doesn't work. ; speech_cant) |
|
on (pickup)   break() |
|
on (mouse)   showinfo (door ; false) on (click)   {     walkto (self; 8; 16; 4)     if_obj (door ; 2)       if_command ()         walkto(self; 5 ; 15)   } |
|
on (open)   if_obj (door ; 1)     {       playsound (opendoor)       setobj (door ; 2)     } on (close)   if_obj (door ; 2)     {       setobj (door ; 1)       playsound (closedoor)     } |
|
on (use)   link (key) |
|
on (link)   {     if_link (key)       {         *Enter here the things that happens when combining these two things.*         break()       }     speech (self ; I cannot use this with that thing. ; speech_cantuse)   } |
|
on (link)   {     if_link (key)       {         if_bool (doorlocked ; true)           playsound (usekey)         setbool (doorlocked ; false)         break()       }     speech (self ; I cannot use this with that thing.. ; speech_cantuse)   } |
|
on (open)   {   if_bool (doorlocked; false)     {       if_obj (door ; 1)         {           playsound (opendoor)           setobj (door ; 2)         }       break ()     }   speech (self ; The door is locked. ; speech_doorlocked)   } |
|
on (give)   givelink () |
|
on (givelink)   {     delitem (self ; givelink)     additem (char2 ; givelink)     lookto (char2 ; self)     playsound (pickup)     pickup (self)     pickup (char2)   } |
|
level ( )   {     row (1 ; ; true)       {       }     row (2 ; ; true)       {       }     row (3 ; ; true)       {       }   } |
|
activate (textscene3 ; 2 ; 5) deactivate (self ; 1 ; 3) |