home *** CD-ROM | disk | FTP | other *** search
- ; REVISED ON 10/10
- ; ---------------------------
- ; - Main Application Script -
- ; ---------------------------
- ;
- ; This script is the general script for EWB
- ; It defines the default response to events, that workshops can overload
- ;
-
- ;---------------------------------------------------------------------------
- ; Application startup and end
-
- On InitApplication
- ;
- Leo: Load ; Load agents in memory
- Daffy: Load
- Bugs: Load
- Leo: Click ; Initialize code to click on the agents or drag them
- Leo: DoubleClick
- Leo: DragStart
- Leo: DragComplete
- Daffy: Click
- Daffy: DoubleClick
- Daffy: DragStart
- Daffy: DragComplete
- Bugs: Click
- Bugs: DoubleClick
- Bugs: DragStart
- Bugs: DragComplete
-
- On CloseApplication ; NOT ENOUGH TIME TO PLAY SOMETHING!!!
- ;
- Leo: StopAll
- Daffy: StopAll
- Bugs: StopAll
- Leo: Hide
- Daffy: Hide
- Bugs: Hide
-
- ;---------------------------------------------------------------------------
- On First Leave Workshop
- ;
- Leo: StopAll
- Daffy: StopAll
- Bugs: StopAll
- Leo: MoveTo Leo default position speed 0
- Leo: Show
- Daffy: Hide
- Bugs: Hide
-
- On Subsequent Leave Workshop
- ;
- Leo: StopAll
- Daffy: StopAll
- Bugs: StopAll
- Leo: MoveTo Leo default position speed 0
- Leo: Show
- Daffy: Hide
- Bugs: Hide
-
- ;---------------------------------------------------------------------------
- On Error
- ;
- Leo: StopAll
- Daffy: StopAll
- Bugs: StopAll
- Daffy: Hide
- Bugs: Hide
- Leo: Show
- Leo: ChangeColorRed
- Leo: "EVENT MESSAGE"
- Leo: MoveTo Leo default position speed 0
-
- On vocal message
- ;
- Leo: StopAll
- Daffy: StopAll
- Bugs: StopAll
- Daffy: Hide
- Bugs: Hide
- Leo: Show
- Leo: Announce
- Leo: "EVENT MESSAGE"
- Leo: MoveTo Leo default position speed 0
- Leo: Restpose
-
- On written message
- ;
- Leo: StopAll
- Daffy: StopAll
- Bugs: StopAll
- Daffy: Hide
- Bugs: Hide
- Leo: Show
- Leo: Explain
- Leo: "EVENT MESSAGE"
- Leo: MoveTo Leo default position speed 0
- Leo: Restpose
-
- ;---------------------------------------------------------------------------
- ; If the user tries to select an object in a workshop that does not support this feature
-
- On Changing selection not allowed Warning
- ;
- Leo: StopAll
- Daffy: StopAll
- Bugs: StopAll
- Daffy: Hide
- Bugs: Hide
- Leo: Show
- Leo: Explain
- Leo: "Sorry. You cannot select an object in this screen. Please go to the Fun Lab workshop first."
- Leo: MoveTo Leo default position speed 0
- Leo: Restpose
-
- ;---------------------------------------------------------------------------
- On Escape Key
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Leo: MoveTo Leo default position speed 0
- Bugs: Hide
- Daffy: Hide
-
- ;---------------------------------------------------------------------------
- ; View/Show LT characters menu item
- On Enable Agents
- ;
- Bugs: Load
- Daffy: Load
-
- ; View/Hide LT characters menu item
- On Disable Agents
- ;
- Bugs: StopAll
- Daffy: StopAll
- Bugs: Hide
- Daffy: Hide
- Bugs: UnLoad
- Daffy: UnLoad
-
- ;---------------------------------------------------------------------------
- On Leo Click
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Leo: "Hey you tickled me!"
-
- ;
- On Leo DragStart
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Leo: "Woooooooo!"
-
- ;
- On Leo DragComplete
- ;
- Leo: Surprised
- Leo: "This is cool!"
- Leo: Restpose
-
- ;---------------------------------------------------------------------------
- On Bugs Click
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Bugs: PlayFile "Sounds\Main\Main-BB DidSomeoneKnock.wav"
- Bugs: Restpose
-
- ;
- On Bugs DragStart
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Bugs: PlayFile "Sounds\Main\Main-BB HeyWhatsGoingOn.wav"
-
-
- ;
- On Bugs DragComplete
- ;
- Bugs: Surprised
- Bugs: PlayFile "Sounds\Main\Main-BB IKnewIshouldHaveTaken.wav"
- Bugs: Restpose
-
- ;---------------------------------------------------------------------------
-
- On Daffy Click
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Daffy: Threaten
- Daffy: PlayFile "Sounds\Main\Main-DD ListenMac32Teeth.wav"
- Daffy: Restpose
-
- ;
- On Daffy DragStart
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Daffy: Suspicious
- Daffy: PlayFile "Sounds\Main\Main-DD WellWhatDoYouCallThat.wav"
-
- ;
- On Daffy DragComplete
- ;
- Daffy: Angry
- Daffy: PlayFile "Sounds\Main\Main-DD WhereAmI.wav"
- Daffy: Restpose
-
- ;---------------------------------------------------------------------------
- ; When application moves to back or front
- ; LS 12/22/99: Rename "[In]Inactivate Window" as "[In]Inactivate Application"
-
- On Inactivate Application
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Bugs: Hide
- Daffy: Hide
- Leo: Hide
-
- ;
- On Activate Application
- ;
- Leo: MoveTo Leo default position speed 0
- Leo: Show
-
- ;---------------------------------------------------------------------------
- ; When the application whishes to stop the agents
-
- On Stop Agent Action
- ;
- Bugs: StopAll
- Daffy: StopAll
- Leo: StopAll
- Bugs: Hide
- Daffy: Hide
- Leo: MoveTo Leo default position speed 0
-
-