home *** CD-ROM | disk | FTP | other *** search
/ Looney Tunes Photo Fun / LooneyTunesPhotoFun.iso / data1.cab / Scripts / MainApplication.msa < prev    next >
Text File  |  2000-03-21  |  5KB  |  249 lines

  1. ; REVISED ON 10/10
  2. ; ---------------------------
  3. ; - Main Application Script -
  4. ; ---------------------------
  5. ;
  6. ; This script is the general script for EWB
  7. ; It defines the default response to events, that workshops can overload 
  8. ;
  9.  
  10. ;---------------------------------------------------------------------------
  11. ; Application startup and end
  12.  
  13. On InitApplication
  14. ;
  15. Leo:        Load            ; Load agents in memory
  16. Daffy:        Load
  17. Bugs:        Load
  18. Leo:        Click            ; Initialize code to click on the agents or drag them
  19. Leo:        DoubleClick
  20. Leo:        DragStart
  21. Leo:        DragComplete
  22. Daffy:        Click
  23. Daffy:        DoubleClick
  24. Daffy:        DragStart
  25. Daffy:        DragComplete
  26. Bugs:        Click
  27. Bugs:        DoubleClick
  28. Bugs:        DragStart
  29. Bugs:        DragComplete
  30.  
  31. On CloseApplication  ; NOT ENOUGH TIME TO PLAY SOMETHING!!!
  32. ;
  33. Leo:        StopAll
  34. Daffy:        StopAll
  35. Bugs:         StopAll
  36. Leo:        Hide
  37. Daffy:        Hide
  38. Bugs:        Hide
  39.  
  40. ;---------------------------------------------------------------------------
  41. On First Leave Workshop
  42. ;
  43. Leo:    StopAll
  44. Daffy:    StopAll
  45. Bugs:    StopAll
  46. Leo:    MoveTo Leo default position speed 0       
  47. Leo:    Show
  48. Daffy:    Hide
  49. Bugs:    Hide
  50.  
  51. On Subsequent Leave Workshop
  52. ;
  53. Leo:    StopAll
  54. Daffy:    StopAll
  55. Bugs:    StopAll
  56. Leo:    MoveTo Leo default position speed 0       
  57. Leo:    Show
  58. Daffy:    Hide
  59. Bugs:    Hide
  60.  
  61. ;---------------------------------------------------------------------------
  62. On Error
  63. ;
  64. Leo: StopAll
  65. Daffy:    StopAll
  66. Bugs:    StopAll
  67. Daffy:    Hide
  68. Bugs:    Hide
  69. Leo: Show
  70. Leo: ChangeColorRed
  71. Leo: "EVENT MESSAGE"
  72. Leo: MoveTo Leo default position speed 0               
  73.  
  74. On vocal message
  75. ;
  76. Leo: StopAll
  77. Daffy:    StopAll
  78. Bugs:    StopAll
  79. Daffy:    Hide
  80. Bugs:    Hide
  81. Leo: Show
  82. Leo: Announce
  83. Leo: "EVENT MESSAGE"
  84. Leo: MoveTo Leo default position speed 0
  85. Leo: Restpose
  86.  
  87. On written message
  88. ;
  89. Leo: StopAll
  90. Daffy:    StopAll
  91. Bugs:    StopAll
  92. Daffy:    Hide
  93. Bugs:    Hide
  94. Leo: Show
  95. Leo: Explain
  96. Leo: "EVENT MESSAGE"
  97. Leo: MoveTo Leo default position speed 0               
  98. Leo: Restpose
  99.  
  100. ;---------------------------------------------------------------------------
  101. ; If the user tries to select an object in a workshop that does not support this feature
  102.  
  103. On Changing selection not allowed Warning
  104. ;
  105. Leo: StopAll
  106. Daffy:    StopAll
  107. Bugs:    StopAll
  108. Daffy:    Hide
  109. Bugs:    Hide
  110. Leo: Show
  111. Leo: Explain
  112. Leo: "Sorry. You cannot select an object in this screen. Please go to the Fun Lab workshop first."
  113. Leo: MoveTo Leo default position speed 0               
  114. Leo: Restpose
  115.  
  116. ;---------------------------------------------------------------------------
  117. On Escape Key
  118. ;
  119. Bugs:        StopAll
  120. Daffy:        StopAll
  121. Leo:        StopAll
  122. Leo:        MoveTo Leo default position speed 0
  123. Bugs:        Hide
  124. Daffy:        Hide
  125.  
  126. ;---------------------------------------------------------------------------
  127. ; View/Show LT characters menu item
  128. On Enable Agents
  129. ;
  130. Bugs:        Load
  131. Daffy:        Load
  132.  
  133. ; View/Hide LT characters menu item
  134. On Disable Agents
  135. ;
  136. Bugs:        StopAll
  137. Daffy:        StopAll
  138. Bugs:        Hide
  139. Daffy:        Hide
  140. Bugs:        UnLoad
  141. Daffy:        UnLoad
  142.  
  143. ;---------------------------------------------------------------------------
  144. On Leo Click
  145. ;
  146. Bugs:        StopAll
  147. Daffy:        StopAll
  148. Leo:        StopAll
  149. Leo:        "Hey you tickled me!"
  150.  
  151. ;
  152. On Leo DragStart
  153. ;
  154. Bugs:        StopAll
  155. Daffy:        StopAll
  156. Leo:        StopAll
  157. Leo:        "Woooooooo!"
  158.  
  159. ;
  160. On Leo DragComplete
  161. ;
  162. Leo:        Surprised
  163. Leo:        "This is cool!"
  164. Leo:        Restpose
  165.  
  166. ;---------------------------------------------------------------------------
  167. On Bugs Click
  168. ;
  169. Bugs:        StopAll
  170. Daffy:        StopAll
  171. Leo:        StopAll
  172. Bugs:        PlayFile "Sounds\Main\Main-BB DidSomeoneKnock.wav"
  173. Bugs:        Restpose
  174.  
  175. ;
  176. On Bugs DragStart
  177. ;
  178. Bugs:        StopAll
  179. Daffy:        StopAll
  180. Leo:        StopAll
  181. Bugs:        PlayFile "Sounds\Main\Main-BB HeyWhatsGoingOn.wav"
  182.  
  183.  
  184. ;
  185. On Bugs DragComplete
  186. ;
  187. Bugs:        Surprised
  188. Bugs:        PlayFile "Sounds\Main\Main-BB IKnewIshouldHaveTaken.wav"
  189. Bugs:        Restpose
  190.  
  191. ;---------------------------------------------------------------------------
  192.  
  193. On Daffy Click
  194. ;
  195. Bugs:        StopAll
  196. Daffy:        StopAll
  197. Leo:        StopAll
  198. Daffy:        Threaten
  199. Daffy:        PlayFile "Sounds\Main\Main-DD ListenMac32Teeth.wav"
  200. Daffy:        Restpose
  201.  
  202. ;
  203. On Daffy DragStart
  204. ;
  205. Bugs:        StopAll
  206. Daffy:        StopAll
  207. Leo:        StopAll
  208. Daffy:        Suspicious
  209. Daffy:        PlayFile "Sounds\Main\Main-DD WellWhatDoYouCallThat.wav"
  210.  
  211. ;
  212. On Daffy DragComplete
  213. ;
  214. Daffy:        Angry
  215. Daffy:        PlayFile "Sounds\Main\Main-DD WhereAmI.wav"
  216. Daffy:        Restpose
  217.  
  218. ;---------------------------------------------------------------------------
  219. ; When application moves to back or front
  220. ; LS 12/22/99: Rename "[In]Inactivate Window" as "[In]Inactivate Application"
  221.  
  222. On Inactivate Application
  223. ;
  224. Bugs:        StopAll
  225. Daffy:        StopAll
  226. Leo:        StopAll
  227. Bugs:        Hide
  228. Daffy:        Hide
  229. Leo:        Hide
  230.  
  231. ;
  232. On Activate Application
  233. ;
  234. Leo:        MoveTo Leo default position speed 0       
  235. Leo:        Show
  236.  
  237. ;---------------------------------------------------------------------------
  238. ; When the application whishes to stop the agents
  239.  
  240. On Stop Agent Action
  241. ;
  242. Bugs:        StopAll
  243. Daffy:        StopAll
  244. Leo:        StopAll
  245. Bugs:        Hide
  246. Daffy:        Hide
  247. Leo:        MoveTo Leo default position speed 0
  248.  
  249.