home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 April / Gamestar_83_2006-04_dvd.iso / Dema / keepsake_demo_en.exe / res / scripts / optionnalConversation.tcl < prev    next >
Text File  |  2005-11-03  |  86KB  |  3,029 lines

  1. ################################################################################
  2. #                                                                             ##
  3. #    file   optionnalConversation.tcl                                         ##
  4. #    brief  Events for the Optionnal Conversations.                           ##
  5. #                                                                             ##
  6. ################################################################################
  7.  
  8. # TAKE NOTE THAT THE SECTION TITLES ARE DIFFERENT HERE THEN ANY OTHER TCL FILE
  9.  
  10. # NOTE HERE IS THE RANDOM CHECKTIME COMMENT: eventState [checkTime [expr 60000 + [random 120000]]]
  11.  
  12.  
  13. ## ===================================================== ##
  14. ##   Initialization                                      ##
  15. ## ===================================================== ##
  16.  
  17. event "init" {
  18. }
  19.  
  20.  
  21. ## ===================================================== ##
  22. ##   Zak position check proc                             ##
  23. ## ===================================================== ##
  24.  
  25. proc calcPos {p q d} {
  26.     set a "0.1 0 0.1"
  27.     set q [vector::vexpr {$q + $a}]
  28.     return [vector::vexpr {$p + (normalize( $q - $p ) * $d)}]
  29. }
  30.  
  31.  
  32.  
  33. ################################################################################
  34. ## ========================================================================== ##
  35. ##   PROC STRUCTURE                                                           ##
  36. ## ========================================================================== ##
  37. ################################################################################
  38.  
  39.  
  40. ## ===================================================== ##
  41. ##   Optionnal Conversation                              ##
  42. ## ===================================================== ##
  43.  
  44. event "optionnalConversation" {
  45.   if ![canZakTalk] {eventState queue}
  46.   eventState [checkEventPriority]
  47.   chainCallEvent "optionnalConversation"
  48. }
  49.  
  50.  
  51. ################################################################################
  52. ## ========================================================================== ##
  53. ##   EMERGENCY                                                                ##
  54. ## ========================================================================== ##
  55. ################################################################################
  56.  
  57.  
  58. ## ===================================================== ##
  59. ##   First Search of Lydia                               ##
  60. ## ===================================================== ##
  61. # Lydia is alone searching in the academy
  62. # START IN ---> Event dragonvaleAcademy.firstKnock
  63. # STOP WHEN --> Event millStoreRoom.zakFree
  64. # FORCED    --> Never
  65.  
  66. event "firstSearch" {
  67.   if { [ozGet "sysScene"] == "dragonvaleAcademy" || [ozGet "sysScene"] == "elvandarPathway" || [ozGet "sysScene"] == "millWalkway" || [ozGet "sysScene"] == "millStoreRoom" } {
  68.     eventState queue
  69.  
  70.   } else {
  71.   
  72.     wizqTalkOpen
  73.     wizqTalkSay Lydia $::lng::firstSearchL1   "sound/vo/$::LNG/scenes/optionnalConversation/firstSearchL1.ogg"
  74.     wizqTalkClose
  75.   
  76.     if { [ozGet "firstSearch"] == "initiated" } {
  77.       setEventPriority optionnalConversation.firstSearch short
  78.       ozSet "firstSearch" "repeat"
  79.  
  80.     } else {
  81.       ozSet "firstSearch" "discussed"
  82.     }
  83.   }
  84. }
  85.  
  86.  
  87. ## ===================================================== ##
  88. ##   Second Search of Lydia                              ##
  89. ## ===================================================== ##
  90. # Lydia is alone searching in the academy
  91. # START IN ---> Event dragonvaleAcademy.firstKnock
  92. # STOP WHEN --> Event millStoreRoom.zakFree
  93. # FORCED    --> Never
  94.  
  95. event "secondSearch" {
  96.   if { [ozGet "sysScene"] == "dragonvaleAcademy" || [ozGet "sysScene"] == "elvandarPathway" || [ozGet "sysScene"] == "millWalkway" || [ozGet "sysScene"] == "millStoreRoom" } {
  97.     eventState queue
  98.  
  99.   } else {
  100.  
  101.     ozSet "secondSearch" "discussed"
  102.   
  103.     wizqTalkOpen
  104.     wizqTalkSay Lydia $::lng::secondSearchL1   "sound/vo/$::LNG/scenes/optionnalConversation/secondSearchL1.ogg"
  105.     wizqTalkSay Lydia $::lng::secondSearchL2   "sound/vo/$::LNG/scenes/optionnalConversation/secondSearchL2.ogg"
  106.     wizqTalkClose
  107.   }
  108. }
  109.  
  110.  
  111. ## ===================================================== ##
  112. ##   Third Search of Lydia                               ##
  113. ## ===================================================== ##
  114. # Lydia is alone searching in the academy
  115. # START IN ---> Event dragonvaleAcademy.firstKnock
  116. # STOP WHEN --> Event millStoreRoom.zakFree
  117. # FORCED    --> Never
  118.  
  119. event "thirdSearch" {
  120.   if { [ozGet "sysScene"] == "dragonvaleAcademy" || [ozGet "sysScene"] == "elvandarPathway" || [ozGet "sysScene"] == "millWalkway" || [ozGet "sysScene"] == "millStoreRoom" } {
  121.     eventState queue
  122.  
  123.   } else {
  124.  
  125.     ozSet "thirdSearch" "discussed"
  126.   
  127.     wizqTalkOpen
  128.     wizqTalkSay Lydia $::lng::thirdSearchL1   "sound/vo/$::LNG/scenes/optionnalConversation/thirdSearchL1.ogg"
  129.     wizqTalkSay Lydia $::lng::thirdSearchL2   "sound/vo/$::LNG/scenes/optionnalConversation/thirdSearchL2.ogg"
  130.     wizqTalkClose
  131.   }
  132. }
  133.  
  134.  
  135. ## ===================================================== ##
  136. ##   Fourth Search of Lydia                              ##
  137. ## ===================================================== ##
  138. # Lydia is alone searching in the academy
  139. # START IN ---> Event dragonvaleAcademy.firstKnock
  140. # STOP WHEN --> Event millStoreRoom.zakFree
  141. # FORCED    --> Never
  142.  
  143. event "fourthSearch" {
  144.   if { [ozGet "sysScene"] == "dragonvaleAcademy" || [ozGet "sysScene"] == "elvandarPathway" || [ozGet "sysScene"] == "millWalkway" || [ozGet "sysScene"] == "millStoreRoom" } {
  145.     eventState queue
  146.  
  147.   } else {
  148.  
  149.     wizqTalkOpen
  150.     wizqTalkSay Lydia $::lng::fourthSearchL1   "sound/vo/$::LNG/scenes/optionnalConversation/fourthSearchL1.ogg"
  151.     wizqTalkClose
  152.  
  153.     if { [ozGet "fourthSearch"] == "initiated" } {
  154.       setEventPriority optionnalConversation.fourthSearch short
  155.       ozSet "fourthSearch" "repeat"
  156.  
  157.     } else {
  158.       ozSet "fourthSearch" "discussed"
  159.     }
  160.   }
  161. }
  162.  
  163.  
  164. ## ===================================================== ##
  165. ##   Fifth Search of Lydia                               ##
  166. ## ===================================================== ##
  167. # Lydia is alone searching in the academy
  168. # START IN ---> Event dragonvaleAcademy.firstKnock
  169. # STOP WHEN --> Event millStoreRoom.zakFree
  170. # FORCED    --> Never
  171.  
  172. event "fifthSearch" {
  173.   if { [ozGet "sysScene"] == "dragonvaleAcademy" || [ozGet "sysScene"] == "elvandarPathway" || [ozGet "sysScene"] == "millWalkway" || [ozGet "sysScene"] == "millStoreRoom" } {
  174.     eventState queue
  175.  
  176.   } else {
  177.  
  178.     ozSet "fifthSearch" "discussed"
  179.   
  180.     wizqTalkOpen
  181.     wizqTalkSay Lydia $::lng::fifthSearchL1   "sound/vo/$::LNG/scenes/optionnalConversation/fifthSearchL1.ogg"
  182.     wizqTalkSay Lydia $::lng::fifthSearchL2   "sound/vo/$::LNG/scenes/optionnalConversation/fifthSearchL2.ogg"
  183.     wizqTalkSay Lydia $::lng::fifthSearchL3   "sound/vo/$::LNG/scenes/optionnalConversation/fifthSearchL3.ogg"
  184.     wizqTalkClose
  185.   }
  186. }
  187.  
  188.  
  189. ## ===================================================== ##
  190. ##   Why walk here                                       ##
  191. ## ===================================================== ##
  192. ## SCENE SET UP: After Lydia had her first vision, she don't understand her sleepwalking
  193. # START IN ---> vision.dollEffectOne
  194. # STOP WHEN --> vision.dollEffectTwo
  195. # FORCED    --> Never
  196.  
  197. event "whyWalkHere" {
  198.   chainEvent {
  199.     freezePlayer
  200.     wizDisableMouse
  201.     wizEntityStopFollow Zak
  202.   }
  203.   ozSet "whyWalkHere" "discussed"
  204.  
  205.   chainEvent {
  206.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  207.   }
  208.  
  209.   # Block 1
  210.   wizqQueue 1 {
  211.     chainEvent { delay 500 }
  212.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  213.     chainEvent { delay 500 }
  214.     wizqEntityAction Lydia standDisbelief "wait"
  215.   }
  216.  
  217.   # Block 1-B
  218.   wizqQueue 2 {
  219.     chainEvent { delay 1000 }
  220.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  221.   }
  222.   
  223.   wizqTalkOpen
  224.   wizqTalkSay Lydia $::lng::whyWalkHereL1   "sound/vo/$::LNG/scenes/optionnalConversation/whyWalkHereL1.ogg"
  225.  
  226.   # Wait for Block 1 & 1-B
  227.   wizqWaitQueue 1
  228.   wizqWaitQueue 2
  229.  
  230.   # Block 2
  231.   wizqQueue 1 {
  232.     wizqEntityAction Lydia standHandOnChin "wait"
  233.   }
  234.  
  235.   wizqTalkSay Lydia $::lng::whyWalkHereL2   "sound/vo/$::LNG/scenes/optionnalConversation/whyWalkHereL2.ogg"
  236.  
  237.   # Block 2-B
  238.   wizqQueue 2 {
  239.     wizqEntityAction Zak standNo "wait"
  240.   }
  241.  
  242.   wizqTalkSay Zak $::lng::whyWalkHereZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whyWalkHereZ1.ogg"
  243.  
  244.   # Wait for Block 2 & 2-B
  245.   wizqWaitQueue 1
  246.   wizqWaitQueue 2
  247.  
  248.   # Block 3
  249.   wizqQueue 1 {
  250.     wizqEntityAction Lydia standNo "wait"
  251.     wizqEntityAction Lydia standTalkHandHip "wait"
  252.   }
  253.   
  254.   wizqTalkSay Lydia $::lng::whyWalkHereL3   "sound/vo/$::LNG/scenes/optionnalConversation/whyWalkHereL3.ogg"
  255.   wizqTalkClose
  256.  
  257.   # Wait for Block 3
  258.   wizqWaitQueue 1
  259.   
  260.   chainEvent {
  261.     unfreezePlayer
  262.     wizEnableMouse
  263.     wizEntityResumeFollow Zak
  264.   }
  265. }
  266.  
  267.  
  268. ## ===================================================== ##
  269. ##   Empty with Zak                                      ##
  270. ## ===================================================== ##
  271. ## SCENE SET UP: Lydia and Zak are moving in the empty school and Zak still doubt it's empty.
  272. # START IN ---> Grand Hall Init
  273. # STOP WHEN --> grandHall.nightingaleStudy camera and dinnerHall.init
  274. # FORCED    --> Never
  275.  
  276. event "emptyZak" {
  277.   if { [ozGet "sysScene"] == "dragonvaleAcademy" || [ozGet "sysScene"] == "millStoreRoom" || [ozGet "sysScene"] == "millWalkway" || [ozGet "sysScene"] == "elvandarPathway" } {
  278.     eventState queue
  279.  
  280.   } else {
  281.     chainEvent {
  282.       freezePlayer
  283.       wizDisableMouse
  284.       wizEntityStopFollow Zak
  285.     }
  286.     ozSet "emptyZak" "discussed"
  287.  
  288.     chainEvent {
  289.       wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  290.     }
  291.   
  292.     # Block 1
  293.     wizqQueue 1 {
  294.       wizqEntityAction Zak standTurnLeftHoldShort "wait"
  295.       wizqEntityAction Zak standTurnRightHoldShort "wait"
  296.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  297.     }
  298.  
  299.     # Block 1-B
  300.     wizqQueue 2 {
  301.       chainEvent { delay 1000 }
  302.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  303.     }
  304.  
  305.     wizqTalkOpen
  306.     wizqTalkSay Zak $::lng::emptyZakZ1   "sound/vo/$::LNG/scenes/optionnalConversation/emptyZakZ1.ogg"
  307.  
  308.     # Wait for Block 1-B
  309.     wizqWaitQueue 2
  310.  
  311.     # Block 2-B
  312.     wizqQueue 2 {
  313.       wizqEntityAction Lydia standTalkTwoHands "wait"
  314.     }
  315.     
  316.     wizqTalkSay Lydia $::lng::emptyZakL1   "sound/vo/$::LNG/scenes/optionnalConversation/emptyZakL1.ogg"
  317.  
  318.     # Wait for Block 1 & 2-B
  319.     wizqWaitQueue 1
  320.     wizqWaitQueue 2
  321.  
  322.     # Block 3
  323.     wizqQueue 1 {
  324.       chainEvent { delay 1000 }
  325.       wizqEntityAction Lydia standArmCross "wait"
  326.       chainEvent { delay 1000 }
  327.       wizqEntityAction Lydia standHandOnChin "wait"
  328.     }
  329.  
  330.     wizqTalkSay Zak $::lng::emptyZakZ2   "sound/vo/$::LNG/scenes/optionnalConversation/emptyZakZ2.ogg"
  331.  
  332.     # Block 3-B
  333.     wizqQueue 2 {
  334.       chainEvent { delay 2000 }
  335.       wizqEntityAction Zak standYes "wait"
  336.     }
  337.     
  338.     wizqTalkSay Zak $::lng::emptyZakZ3   "sound/vo/$::LNG/scenes/optionnalConversation/emptyZakZ3.ogg"
  339.     wizqTalkClose
  340.  
  341.     # Wait for Block 3 & 3-B
  342.     wizqWaitQueue 1
  343.     wizqWaitQueue 2
  344.     
  345.     chainEvent {
  346.       unfreezePlayer
  347.       wizEnableMouse
  348.       wizEntityResumeFollow Zak
  349.     }
  350.   }
  351. }
  352.  
  353.  
  354. ## ===================================================== ##
  355. ##   Wing Flapping                                       ##
  356. ## ===================================================== ##
  357. ## SCENE SET UP: When they pass in the Grand Hall after the second vision has been viewed
  358. # START IN ---> After they visit the caretaker office
  359. # STOP WHEN --> When the discussion has been said
  360. # FORCED    --> When they come out of the caretaker's office
  361.  
  362. event "wingFlapping" {
  363.   chainEvent {
  364.     freezePlayer
  365.     wizDisableMouse
  366.     wizEntityStopFollow Zak
  367.   }
  368.   ozSet "wingFlapping" "discussed"
  369.   
  370.   wizqEntityWalk Lydia "351.3 72.2 168.2" "wait"
  371.  
  372.   Play3DSound "sfx/owlFlight"
  373.  
  374.   # Block 1
  375.   wizqQueue 1 {
  376.     chainEvent { delay 500 }
  377.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  378.   }
  379.  
  380.   # Block 1-B
  381.   wizqQueue 2 {
  382.     wizqEntityAction Lydia standSurprise "wait"
  383.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  384.   }
  385.  
  386.   chainEvent { delay 500 }
  387.   
  388.   wizqTalkOpen
  389.   wizqTalkSay Zak $::lng::wingFlappingZ1   "sound/vo/$::LNG/scenes/optionnalConversation/wingFlappingZ1.ogg" fastout
  390.  
  391.   # Wait for Block 1 & 1-B
  392.   wizqWaitQueue 1
  393.   wizqWaitQueue 2
  394.  
  395.   # Block 2
  396.   wizqQueue 1 {
  397.     wizqEntityAction Lydia standYes "wait"
  398.   }
  399.   
  400.   wizqTalkSay Lydia $::lng::wingFlappingL1   "sound/vo/$::LNG/scenes/optionnalConversation/wingFlappingL1.ogg" fastin
  401.  
  402.   # Wait for Block 2
  403.   wizqWaitQueue 1
  404.  
  405.   # Block 3
  406.   wizqQueue 1 {
  407.     wizqEntityAction Zak standNo "wait"
  408.   }
  409.  
  410.   wizqTalkSay Zak $::lng::wingFlappingZ2   "sound/vo/$::LNG/scenes/optionnalConversation/wingFlappingZ2.ogg"
  411.  
  412.   # Block 3-B
  413.   wizqQueue 2 {
  414.     wizqEntityAction Lydia standTurnLeft "wait"
  415.     wizqEntityAction Lydia standTurnRight "wait"
  416.   }
  417.  
  418.   wizqTalkSay Lydia $::lng::wingFlappingL2   "sound/vo/$::LNG/scenes/optionnalConversation/wingFlappingL2.ogg"
  419.   wizqTalkClose
  420.  
  421.   # Wait for Block 3 & 3-B
  422.   wizqWaitQueue 1
  423.   wizqWaitQueue 2
  424.  
  425.   if { [getVar "whoCaretaker"] == "" } {
  426.     setEventPriority optionnalConversation.whoCaretakerBehavior medium
  427.     ozSet "whoCaretaker" "initiated"
  428.   }
  429.   
  430.   chainEvent {
  431.     unfreezePlayer
  432.     wizEnableMouse
  433.     wizEntityResumeFollow Zak
  434.   }
  435. }
  436.  
  437.  
  438. ## ===================================================== ##
  439. ##   Owl Noise                                           ##
  440. ## ===================================================== ##
  441. ## SCENE SET UP: They hear a weird owl noise
  442. # START IN ---> Aqueduct Init
  443. # STOP WHEN --> When the discussion has been said
  444. # FORCED    --> In camera "stairsG" in the whispering stairway after the third trial is over
  445.  
  446. event "owlNoise" {
  447.   chainEvent {
  448.     freezePlayer
  449.     wizDisableMouse
  450.     wizEntityStopFollow Zak
  451.   }
  452.   ozSet "owlNoise" "discussed"
  453.   deleteEventPriority optionnalConversation.owlNoise emergency
  454.   deleteEventPriority optionnalConversation.owlNoise short
  455.   deleteEventPriority optionnalConversation.owlNoise medium
  456.   deleteEventPriority optionnalConversation.owlNoise long
  457.  
  458.   chainEvent {
  459.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  460.   }
  461.  
  462.   Play3DSound "sfx/owlNoise1"
  463.  
  464.   # Block 1
  465.   wizqQueue 1 {
  466.     chainEvent { delay 1000 }
  467.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  468.   }
  469.   
  470.   # Block 1-B
  471.   wizqQueue 2 {
  472.     wizqEntityAction Zak standTurnLeft "wait"
  473.     wizqEntityAction Zak standTurnRight "wait"
  474.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  475.   }
  476.  
  477.   wizqTalkOpen
  478.   wizqTalkSay Lydia $::lng::owlNoiseL1   "sound/vo/$::LNG/scenes/optionnalConversation/owlNoiseL1.ogg"
  479.   wizqTalkSay Zak $::lng::owlNoiseZ1   "sound/vo/$::LNG/scenes/optionnalConversation/owlNoiseZ1.ogg"
  480.  
  481.   # Block 1-C
  482.   wizqQueue 3 {
  483.     ozqSound::NewFX  "sound/sfx/owlNoise2.ogg"
  484.   }
  485.  
  486.   wizqTalkSay Lydia $::lng::owlNoiseL2   "sound/vo/$::LNG/scenes/optionnalConversation/owlNoiseL2.ogg"
  487.  
  488.   # Wait for Block 1
  489.   wizqWaitQueue 1
  490.   
  491.   # Block 2
  492.   wizqQueue 1 {
  493.     chainEvent { delay 1000 }
  494.     wizqEntityAction Lydia standArmCross "wait"
  495.   }
  496.   
  497.   wizqTalkSay Zak $::lng::owlNoiseZ2   "sound/vo/$::LNG/scenes/optionnalConversation/owlNoiseZ2.ogg"
  498.   wizqTalkClose
  499.  
  500.   # Wait for Block 2 & 1-B & 1-C
  501.   wizqWaitQueue 1
  502.   wizqWaitQueue 2
  503.   wizqWaitQueue 3
  504.   
  505.   chainEvent {
  506.     unfreezePlayer
  507.     wizEnableMouse
  508.     wizEntityResumeFollow Zak
  509.   }
  510. }
  511.  
  512.  
  513. ## ===================================================== ##
  514. ##   Potion Please                                       ##
  515. ## ===================================================== ##
  516. ## SCENE SET UP: They have the notebook and they found the circlet. Zak want Lydia to try to make him the potion
  517. # START IN ---> enchantedHallway.myasBook & enchantedHallway.bookCornerBehavior && grandHall.useCircletGet
  518. # STOP WHEN --> trialRoom.needBrokenWindow && trialRoom.windowView && dinnerHall.potionBrewing
  519. # FORCED    --> Never
  520.  
  521. event "potionPlease" {
  522.   chainEvent {
  523.     freezePlayer
  524.     wizDisableMouse
  525.     wizEntityStopFollow Zak
  526.   }
  527.   ozSet "potionPlease" "discussed"
  528.   deleteEventPriority optionnalConversation.whichPotionBehavior emergency
  529.   deleteEventPriority optionnalConversation.whichPotionBehavior short
  530.   deleteEventPriority optionnalConversation.whichPotionBehavior medium
  531.   deleteEventPriority optionnalConversation.whichPotionBehavior long
  532.     
  533.   chainEvent {
  534.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  535.   }
  536.   
  537.   # Block 1
  538.   wizqQueue 1 {
  539.     chainEvent { delay 500 }
  540.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  541.     chainEvent { delay 1500 }
  542.     wizqEntityAction Zak standRelax "wait"
  543.   }
  544.  
  545.   # Block 1-B
  546.   wizqQueue 2 {
  547.     chainEvent { delay 1000 }
  548.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  549.   }
  550.  
  551.   wizqTalkOpen
  552.   wizqTalkSay Zak $::lng::potionPleaseZ1   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseZ1.ogg"
  553.  
  554.   # Wait for Block 1-B
  555.   wizqWaitQueue 2
  556.  
  557.   # Block 2-B
  558.   wizqQueue 2 {
  559.     chainEvent { delay 1000 }
  560.     wizqEntityAction Lydia standArmCross "wait"
  561.   }
  562.  
  563.   wizqTalkSay Zak $::lng::potionPleaseZ2   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseZ2.ogg"
  564.  
  565.   # Wait for Block 1
  566.   wizqWaitQueue 1
  567.  
  568.   # Block 2
  569.   wizqQueue 1 {
  570.     chainEvent { delay 1000 }
  571.     wizqEntityAction Zak standYes "wait"
  572.   }
  573.   
  574.   wizqTalkSay Zak $::lng::potionPleaseZ3   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseZ3.ogg"
  575.  
  576.   # Wait for Block 2 & 2-B
  577.   wizqWaitQueue 1
  578.   wizqWaitQueue 2
  579.  
  580.   # Block 3
  581.   wizqQueue 1 {
  582.     wizqEntityAction Zak standConfusedRight "wait"
  583.   }
  584.  
  585.   wizqTalkSay Zak $::lng::potionPleaseZ4   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseZ4.ogg"
  586.  
  587.   # Block 3-B
  588.   wizqQueue 2 {
  589.     wizqEntityAction Lydia standTalkHandHip "wait"
  590.   }
  591.  
  592.   wizqTalkSay Lydia $::lng::potionPleaseL1   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseL1.ogg"
  593.  
  594.   # Wait for Block 3 & 3-B
  595.   wizqWaitQueue 1
  596.   wizqWaitQueue 2
  597.  
  598.   # Block 4
  599.   wizqQueue 1 {
  600.     wizqEntityAction Zak standNo "wait"
  601.   }
  602.   
  603.   wizqTalkSay Zak $::lng::potionPleaseZ5   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseZ5.ogg"
  604.  
  605.   # Block 4-B
  606.   wizqQueue 2 {
  607.     wizqEntityAction Lydia standTalkTwoHands "wait"
  608.     wizqEntityAction Lydia standNo "wait"
  609.   }
  610.   
  611.   wizqTalkSay Lydia $::lng::potionPleaseL2   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseL2.ogg"
  612.  
  613.   # Wait for Block 4 & 4-B
  614.   wizqWaitQueue 1
  615.   wizqWaitQueue 2
  616.  
  617.   # Block 5
  618.   wizqQueue 1 {
  619.     wizqEntityAction Lydia standArmCross "wait"
  620.     chainEvent { delay 2000 }
  621.     wizqEntityAction Lydia standTalkHandHip "wait"
  622.   }
  623.  
  624.   wizqTalkSay Zak $::lng::potionPleaseZ6   "sound/vo/$::LNG/scenes//optionnalConversation/potionPleaseZ6.ogg" fastout
  625.  
  626.   # Block 5-B
  627.   wizqQueue 2 {
  628.     chainEvent { delay 2000 }
  629.     wizqEntityAction Zak standLoseHope "wait"
  630.   }
  631.   
  632.   wizqTalkSay Lydia $::lng::potionPleaseL3   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseL3.ogg" fastin
  633.  
  634.   # Wait for Block 5 & 5-B
  635.   wizqWaitQueue 1
  636.   wizqWaitQueue 2
  637.   
  638.   wizqTalkSay Zak $::lng::potionPleaseZ7   "sound/vo/$::LNG/scenes/optionnalConversation/potionPleaseZ7.ogg"
  639.   wizqTalkClose
  640.  
  641.   chainEvent {
  642.     unfreezePlayer
  643.     wizEnableMouse
  644.     wizEntityResumeFollow Zak
  645.   }
  646. }
  647.  
  648.  
  649. ## ===================================================== ##
  650. ##   lydiaDeception                                      ##
  651. ## ===================================================== ##
  652. ## SCENE SET UP: After moving through a lot of the room only to find no one, she start getting depressed
  653. # START IN ---> grandHall.sadThoughts
  654. # STOP WHEN --> sanctuaryExterior.circletRediscover
  655. # FORCED    --> Never
  656.  
  657. event "lydiaDeception" {
  658.   chainEvent {
  659.     freezePlayer
  660.     wizDisableMouse
  661.     wizEntityStopFollow Zak
  662.   }
  663.   ozSet "lydiaDeception" "discussed"
  664.  
  665.   chainEvent {
  666.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  667.   }
  668.   
  669.   # Block 1
  670.   wizqQueue 1 {
  671.     chainEvent { delay 500 }
  672.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  673.     chainEvent { delay 1500 }
  674.     wizqEntityAction Lydia standTalkHandHip "wait"
  675.   }
  676.  
  677.   # Block 1-B
  678.   wizqQueue 2 {
  679.     chainEvent { delay 1000 }
  680.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  681.   }
  682.  
  683.   wizqTalkOpen
  684.   wizqTalkSay Lydia $::lng::lydiaDeceptionL1   "sound/vo/$::LNG/scenes/optionnalConversation/lydiaDeceptionL1.ogg"
  685.  
  686.   # Wait for Block 1 & 1-B
  687.   wizqWaitQueue 1
  688.   wizqWaitQueue 2
  689.  
  690.   # Block 2
  691.   wizqQueue 1 {
  692.     wizqEntityAction Zak standNo "wait"
  693.     chainEvent { delay 1000 }
  694.     wizqEntityAction Zak standYes "wait"
  695.   }
  696.  
  697.   wizqTalkSay Zak $::lng::lydiaDeceptionZ1   "sound/vo/$::LNG/scenes/optionnalConversation/lydiaDeceptionZ1.ogg"
  698.  
  699.   # Wait for Block 2
  700.   wizqWaitQueue 1
  701.  
  702.   # Block 3
  703.   wizqQueue 1 {
  704.     wizqEntityAction Zak standTurnLeft "wait"
  705.     wizqEntityAction Zak standTurnRight "wait"
  706.   }
  707.   
  708.   wizqTalkSay Zak $::lng::lydiaDeceptionZ2   "sound/vo/$::LNG/scenes/optionnalConversation/lydiaDeceptionZ2.ogg"
  709.  
  710.   # Block 3-B
  711.   wizqQueue 2 {
  712.     chainEvent { delay 1000 }
  713.     wizqEntityAction Lydia standTalkTwoHands "wait"
  714.     chainEvent { delay 500 }
  715.     wizqEntityAction Lydia standLoseHope "wait"
  716.   }
  717.  
  718.   wizqTalkSay Lydia $::lng::lydiaDeceptionL2   "sound/vo/$::LNG/scenes/optionnalConversation/lydiaDeceptionL2.ogg"
  719.  
  720.   # Wait for Block 3
  721.   wizqWaitQueue 1
  722.  
  723.   # Block 4
  724.   wizqQueue 1 {
  725.     chainEvent { delay 2000 }
  726.     wizqEntityAction Zak standLoseHope "wait"
  727.   }
  728.   
  729.   wizqTalkSay Zak $::lng::lydiaDeceptionZ3   "sound/vo/$::LNG/scenes/optionnalConversation/lydiaDeceptionZ3.ogg"
  730.  
  731.   # Wait for Block 3-B
  732.   wizqWaitQueue 2
  733.   
  734.   # Block 4-B
  735.   wizqQueue 2 {
  736.     wizqEntityAction Lydia standDisbelief "wait"
  737.   }
  738.  
  739.   wizqTalkSay Lydia $::lng::lydiaDeceptionL3   "sound/vo/$::LNG/scenes/optionnalConversation/lydiaDeceptionL3.ogg"
  740.   wizqTalkClose
  741.  
  742.   # Wait for Block 4 & 4-B
  743.   wizqWaitQueue 1
  744.   wizqWaitQueue 2
  745.  
  746.   chainEvent {
  747.     unfreezePlayer
  748.     wizEnableMouse
  749.     wizEntityResumeFollow Zak
  750.   }
  751. }
  752.  
  753.  
  754. ## ===================================================== ##
  755. ##   Zak and the Headen Flower                           ##
  756. ## ===================================================== ##
  757. ## SCENE SET UP: Lydia got the Headen flower from elvandar and explain a student came looking for it a few days ago (it was actually zak in his human form)
  758. # START IN ---> elvandarPathway.zakHeadenFlower
  759. # STOP WHEN --> celesteRoom.roomSearching
  760. # FORCED    --> Never
  761.  
  762. event "guiltyStudent" {
  763.   chainEvent {
  764.     freezePlayer
  765.     wizDisableMouse
  766.     wizEntityStopFollow Zak
  767.   }
  768.   ozSet "guiltyStudent" "discussed"
  769.  
  770.   chainEvent {
  771.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  772.   }
  773.   
  774.   # Block 1
  775.   wizqQueue 1 {
  776.     chainEvent { delay 500 }
  777.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  778.     chainEvent { delay 1000 }
  779.     wizqEntityAction Lydia standTalkTwoHands "wait"
  780.   }
  781.  
  782.   # Block 1-B
  783.   wizqQueue 2 {
  784.     chainEvent { delay 1000 }
  785.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  786.   }
  787.  
  788.   wizqTalkOpen
  789.   wizqTalkSay Lydia $::lng::guiltyStudentL1   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentL1.ogg"
  790.  
  791.   # Wait for Block 1 & 1-B
  792.   wizqWaitQueue 1
  793.   wizqWaitQueue 2
  794.  
  795.   # Block 2
  796.   wizqQueue 1 {
  797.     wizqEntityAction Lydia standArmCross "wait"
  798.   }
  799.  
  800.   wizqTalkSay Zak $::lng::guiltyStudentZ1   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentZ1.ogg"
  801.  
  802.   # Wait for Block 2
  803.   wizqWaitQueue 1
  804.  
  805.   # Block 3
  806.   wizqQueue 1 {
  807.     wizqEntityAction Lydia standYes "wait"
  808.     wizqEntityAction Lydia standTalkTwoHands "wait"
  809.     chainEvent { delay 2000 }
  810.     wizqEntityAction Lydia standTalkHandHip "wait"
  811.   }
  812.   
  813.   wizqTalkSay Lydia $::lng::guiltyStudentL2   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentL2.ogg"
  814.   wizqTalkSay Lydia $::lng::guiltyStudentL3   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentL3.ogg"
  815.  
  816.   # Wait for Block 3
  817.   wizqWaitQueue 1
  818.  
  819.   # Block 4
  820.   wizqQueue 1 {
  821.     chainEvent { delay 1000 }
  822.     wizqEntityAction Lydia standHandOnChin "wait"
  823.   }
  824.  
  825.   wizqTalkSay Lydia $::lng::guiltyStudentL4   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentL4.ogg" fastout
  826.  
  827.   # Wait for Block 4
  828.   wizqWaitQueue 1
  829.  
  830.   # Block 5
  831.   wizqQueue 1 {
  832.     chainEvent { delay 1000 }
  833.     wizqEntityAction Zak standNo "wait"
  834.   }
  835.  
  836.   wizqTalkSay Zak $::lng::guiltyStudentZ2   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentZ2.ogg" fastin
  837.  
  838.   # Wait for Block 5
  839.   wizqWaitQueue 1
  840.  
  841.   # Block 6
  842.   wizqQueue 1 {
  843.     chainEvent { delay 2000 }
  844.     wizqEntityAction Lydia standArmCross "wait"
  845.   }
  846.   
  847.   wizqTalkSay Zak $::lng::guiltyStudentZ3   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentZ3.ogg"
  848.  
  849.   # Wait for Block 6
  850.   wizqWaitQueue 1
  851.  
  852.   # Block 7
  853.   wizqQueue 1 {
  854.     chainEvent { delay 1000 }
  855.     wizqEntityAction Lydia standYes "wait"
  856.   }
  857.   
  858.   wizqTalkSay Lydia $::lng::guiltyStudentL5   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentL5.ogg"
  859.  
  860.   # Wait for Block 7
  861.   wizqWaitQueue 1
  862.  
  863.   # Block 8
  864.   wizqQueue 1 {
  865.     wizqEntityAction Lydia standTalkHandHip "wait"
  866.     chainEvent { delay 1000 }
  867.     wizqEntityAction Lydia standYes "wait"
  868.   }
  869.  
  870.   wizqTalkSay Lydia $::lng::guiltyStudentL6   "sound/vo/$::LNG/scenes/optionnalConversation/guiltyStudentL6.ogg"
  871.   wizqTalkClose
  872.  
  873.   # Wait for Block 8
  874.   wizqWaitQueue 1
  875.   
  876.   chainEvent {
  877.     unfreezePlayer
  878.     wizEnableMouse
  879.     wizEntityResumeFollow Zak
  880.   }
  881. }
  882.  
  883.  
  884. ################################################################################
  885. ## ========================================================================== ##
  886. ##   CHARACTERS BACKGROUND AND INFORMATION                                    ##
  887. ## ========================================================================== ##
  888. ################################################################################
  889.  
  890.  
  891. ## ===================================================== ##
  892. ##   Who is Celeste Behavior                             ##
  893. ## ===================================================== ##
  894. ## SCENE SET UP: Zak want to know more exactly who is Celeste for Lydia
  895. # START IN ---> vision.dollEffectOne
  896. # STOP WHEN --> in the event "zakAndCelesteBehavior" further down
  897. # FORCED    --> Never
  898.  
  899. event "whoIsCelesteBehavior" {
  900.   chainEvent {
  901.     freezePlayer
  902.     wizDisableMouse
  903.     wizEntityStopFollow Zak
  904.   }
  905.   ozSet "whoIsCeleste" "discussed"
  906.  
  907.   chainEvent {
  908.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  909.   }
  910.   
  911.   # Block 1
  912.   wizqQueue 1 {
  913.     chainEvent { delay 500 }
  914.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  915.   }
  916.  
  917.   # Block 1-B
  918.   wizqQueue 2 {
  919.     chainEvent { delay 1000 }
  920.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  921.   }
  922.   
  923.   wizqTalkOpen
  924.   wizqTalkSay Zak $::lng::whoIsCelesteBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteBehaviorZ1.ogg"
  925.  
  926.   # Wait for Block 1 & 1-B
  927.   wizqWaitQueue 1
  928.   wizqWaitQueue 2
  929.  
  930.   # Block 2
  931.   wizqQueue 1 {
  932.     chainEvent { delay 500 }
  933.     wizqEntityAction Lydia standTalkTwoHands "wait"
  934.   }
  935.   
  936.   wizqTalkSay Lydia $::lng::whoIsCelesteL1   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteL1.ogg"
  937.  
  938.   # Wait for Block 2
  939.   wizqWaitQueue 1
  940.  
  941.   # Block 3
  942.   wizqQueue 1 {
  943.     chainEvent { delay 500 }
  944.     wizqEntityAction Lydia standTalkHandHip "wait"
  945.   }
  946.  
  947.   wizqTalkSay Lydia $::lng::whoIsCelesteL2   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteL2.ogg"
  948.  
  949.   # Wait for Block 3
  950.   wizqWaitQueue 1
  951.  
  952.   # Block 4
  953.   wizqQueue 1 {
  954.     chainEvent { delay 500 }
  955.     wizqEntityAction Lydia standTalkTwoHands "wait"
  956.     chainEvent { delay 500 }
  957.     wizqEntityAction Lydia standDisbelief "wait"
  958.   }
  959.  
  960.   wizqTalkSay Lydia $::lng::whoIsCelesteL3   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteL3.ogg"
  961.  
  962.   # Wait for Block 4
  963.   wizqWaitQueue 1
  964.  
  965.   # Block 5
  966.   wizqQueue 1 {
  967.     chainEvent { delay 500 }
  968.     wizqEntityAction Lydia standTalkTwoHands "wait"
  969.     chainEvent { delay 500 }
  970.     wizqEntityAction Lydia standYes "wait"
  971.   }
  972.  
  973.   # Block 5-B
  974.   wizqQueue 2 {
  975.     chainEvent { delay 1000 }
  976.     wizqEntityAction Zak standConfusedRight "wait"
  977.   }
  978.   
  979.   wizqTalkSay Lydia $::lng::whoIsCelesteL4   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteL4.ogg"
  980.  
  981.   # Wait for Block 5 & 5-B
  982.   wizqWaitQueue 1
  983.   wizqWaitQueue 2
  984.  
  985.   # Block 6
  986.   wizqQueue 1 {
  987.     chainEvent { delay 500 }
  988.     wizqEntityAction Lydia standDisbelief "wait"
  989.     chainEvent { delay 500 }
  990.     wizqEntityAction Lydia standLoseHope "wait"
  991.   }
  992.  
  993.   wizqTalkSay Lydia $::lng::whoIsCelesteL5   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteL5.ogg"
  994.  
  995.   # Wait for Block 6
  996.   wizqWaitQueue 1
  997.  
  998.   # Block 7
  999.   wizqQueue 1 {
  1000.     wizqEntityAction Zak standYes "wait"
  1001.   }
  1002.  
  1003.   wizqTalkSay Zak $::lng::whoIsCelesteZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteZ1.ogg"
  1004.  
  1005.   # Block 7-B
  1006.   wizqQueue 2 {
  1007.     wizqEntityAction Lydia standHandOnChin "wait"
  1008.   }
  1009.   
  1010.   wizqTalkSay Zak $::lng::whoIsCelesteZ2   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsCelesteZ2.ogg"
  1011.   wizqTalkClose
  1012.  
  1013.   # Wait for Block 7 & 7-B
  1014.   wizqWaitQueue 1
  1015.   wizqWaitQueue 2
  1016.   
  1017.   if { [getVar "whoIsNathaniel"] == "" } {
  1018.     setEventPriority optionnalConversation.whoIsNathanielBehavior long
  1019.     ozSet "whoIsNathaniel" "initiated"
  1020.   }
  1021.   
  1022.   chainEvent {
  1023.     unfreezePlayer
  1024.     wizEnableMouse
  1025.     wizEntityResumeFollow Zak
  1026.   }
  1027. }
  1028.  
  1029.  
  1030. ## ===================================================== ##
  1031. ##   Who is Nathaniel Behavior                           ##
  1032. ## ===================================================== ##
  1033. ## SCENE SET UP: Zak want to know if Lydia is speaking of the same Nathaniel he knows
  1034. # START IN ---> optionnalConversation.whoIsCeleste & vision.dollEffectTwo
  1035. # STOP WHEN --> When the discussion has been said
  1036. # FORCED    --> Never
  1037.  
  1038. event "whoIsNathanielBehavior" {
  1039.   chainEvent {
  1040.     freezePlayer
  1041.     wizDisableMouse
  1042.     wizEntityStopFollow Zak
  1043.   }
  1044.   ozSet "whoIsNathaniel" "discussed"
  1045.  
  1046.   chainEvent {
  1047.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1048.   }
  1049.   
  1050.   # Block 1
  1051.   wizqQueue 1 {
  1052.     chainEvent { delay 500 }
  1053.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1054.  
  1055.     if { [ozGet "wherePrincipalOffice"] == "" } {
  1056.       chainEvent { delay 1000 }
  1057.       wizqEntityAction Zak standYes "wait"
  1058.     }
  1059.   }
  1060.  
  1061.   # Block 1-B
  1062.   wizqQueue 2 {
  1063.     chainEvent { delay 1000 }
  1064.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1065.   }
  1066.  
  1067.   if { [ozGet "wherePrincipalOffice"] == "" } {
  1068.     wizqTalkOpen
  1069.     wizqTalkSay Zak $::lng::whoIsNathanielBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielBehaviorZ1.ogg"
  1070.   }
  1071.  
  1072.   # Wait for Block 1 & 1-B
  1073.   wizqWaitQueue 1
  1074.   wizqWaitQueue 2
  1075.  
  1076.   if { [ozGet "wherePrincipalOffice"] == "discussed" } {
  1077.     wizqTalkOpen
  1078.   }
  1079.   
  1080.   # Block 2
  1081.   wizqQueue 1 {
  1082.     chainEvent { delay 500 }
  1083.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1084.   }
  1085.  
  1086.   wizqTalkSay Lydia $::lng::whoIsNathanielL1   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL1.ogg"
  1087.  
  1088.   # Wait for Block 2
  1089.   wizqWaitQueue 1
  1090.  
  1091.   # Block 3
  1092.   wizqQueue 1 {
  1093.     chainEvent { delay 500 }
  1094.     wizqEntityAction Lydia standDisbelief "wait"
  1095.     chainEvent { delay 1500 }
  1096.     wizqEntityAction Lydia standTalkHandHip "wait"
  1097.   }
  1098.  
  1099.   wizqTalkSay Lydia $::lng::whoIsNathanielL2   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL2.ogg"
  1100.   wizqTalkSay Lydia $::lng::whoIsNathanielL3   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL3.ogg"
  1101.  
  1102.   # Wait for Block 3
  1103.   wizqWaitQueue 1
  1104.  
  1105.   # Block 4
  1106.   wizqQueue 1 {
  1107.     wizqEntityAction Lydia standNo "wait"
  1108.     chainEvent { delay 500 }
  1109.     wizqEntityAction Lydia standDisbelief "wait"
  1110.   }
  1111.  
  1112.   wizqTalkSay Lydia $::lng::whoIsNathanielL4   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL4.ogg"
  1113.  
  1114.   # Wait for Block 4
  1115.   wizqWaitQueue 1
  1116.  
  1117.   # Block 5
  1118.   wizqQueue 1 {
  1119.     wizqEntityAction Zak standConfusedRight "wait"
  1120.   }
  1121.  
  1122.   wizqTalkSay Zak $::lng::whoIsNathanielZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielZ1.ogg"
  1123.  
  1124.   # Block 5-B
  1125.   wizqQueue 2 {
  1126.     wizqEntityAction Lydia standTalkHandHip "wait"
  1127.   }
  1128.   
  1129.   wizqTalkSay Lydia $::lng::whoIsNathanielL5   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL5.ogg"
  1130.  
  1131.   # Wait for Block 5 & 5-B
  1132.   wizqWaitQueue 1
  1133.   wizqWaitQueue 2
  1134.  
  1135.   # Block 6
  1136.   wizqQueue 1 {
  1137.     chainEvent { delay 500 }
  1138.     wizqEntityAction Lydia standYes "wait"
  1139.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1140.   }
  1141.  
  1142.   wizqTalkSay Lydia $::lng::whoIsNathanielL6   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL6.ogg"
  1143.  
  1144.   # Wait for Block 6
  1145.   wizqWaitQueue 1
  1146.  
  1147.   # Block 7
  1148.   wizqQueue 1 {
  1149.     wizqEntityAction Lydia standTalkHandHip "wait"
  1150.   }
  1151.   
  1152.   wizqTalkSay Lydia $::lng::whoIsNathanielL7   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL7.ogg"
  1153.  
  1154.   # Block 7-B
  1155.   wizqQueue 2 {
  1156.     wizqEntityAction Zak standNo "wait"
  1157.   }
  1158.   
  1159.   wizqTalkSay Zak $::lng::whoIsNathanielZ2   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielZ2.ogg"
  1160.  
  1161.   # Wait for Block 7 & 7-B
  1162.   wizqWaitQueue 1
  1163.   wizqWaitQueue 2
  1164.  
  1165.   # Block 8
  1166.   wizqQueue 1 {
  1167.     wizqEntityAction Lydia standYes "wait"
  1168.     wizqEntityAction Lydia standHandOnChin "wait"
  1169.   }
  1170.   
  1171.   wizqTalkSay Lydia $::lng::whoIsNathanielL8   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL8.ogg"
  1172.  
  1173.   # Block 8-B
  1174.   wizqQueue 2 {
  1175.     wizqEntityAction Zak standNo "wait"
  1176.   }
  1177.   
  1178.   wizqTalkSay Zak $::lng::whoIsNathanielZ3   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielZ3.ogg"
  1179.  
  1180.   # Wait for Block 8 & 8-B
  1181.   wizqWaitQueue 1
  1182.   wizqWaitQueue 2
  1183.  
  1184.   # Block 9
  1185.   wizqQueue 1 {
  1186.     wizqEntityAction Lydia standNo "wait"
  1187.     chainEvent { delay 500 }
  1188.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1189.   }
  1190.   
  1191.   wizqTalkSay Lydia $::lng::whoIsNathanielL9   "sound/vo/$::LNG/scenes/optionnalConversation/whoIsNathanielL9.ogg"
  1192.   wizqTalkClose
  1193.  
  1194.   # Wait for Block 9
  1195.   wizqWaitQueue 1
  1196.   
  1197.   chainEvent {
  1198.     unfreezePlayer
  1199.     wizEnableMouse
  1200.     wizEntityResumeFollow Zak
  1201.   }
  1202. }
  1203.  
  1204.  
  1205. ## ===================================================== ##
  1206. ##   What is the Doll Behavior                           ##
  1207. ## ===================================================== ##
  1208. ## SCENE SET UP: Zak want to know what's the deal with the doll they found
  1209. # START IN ---> vision.dollEffectOne
  1210. # STOP WHEN --> When the discussion has been said
  1211. # FORCED    --> Never
  1212.  
  1213. event "dollAsKeepsakeBehavior" {
  1214.   chainEvent {
  1215.     freezePlayer
  1216.     wizDisableMouse
  1217.     wizEntityStopFollow Zak
  1218.   }
  1219.   ozSet "dollAsKeepsake" "discussed"
  1220.  
  1221.   chainEvent {
  1222.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1223.   }
  1224.   
  1225.   # Block 1
  1226.   wizqQueue 1 {
  1227.     chainEvent { delay 500 }
  1228.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1229.     chainEvent { delay 500 }
  1230.     wizqEntityAction Zak standConfusedRight "wait"
  1231.   }
  1232.  
  1233.   # Block 1-B
  1234.   wizqQueue 2 {
  1235.     chainEvent { delay 1000 }
  1236.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1237.   }
  1238.   
  1239.   wizqTalkOpen
  1240.   wizqTalkSay Zak $::lng::dollAsKeepsakeBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/dollAsKeepsakeBehaviorZ1.ogg"
  1241.  
  1242.   # Wait for Block 1 & 1-B
  1243.   wizqWaitQueue 1
  1244.   wizqWaitQueue 2
  1245.  
  1246.   # Block 2
  1247.   wizqQueue 1 {
  1248.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1249.   }
  1250.   
  1251.   wizqTalkSay Lydia $::lng::dollAsKeepsakeL1   "sound/vo/$::LNG/scenes/optionnalConversation/dollAsKeepsakeL1.ogg"
  1252.  
  1253.   # Block 2-B
  1254.   wizqQueue 2 {
  1255.     wizqEntityAction Zak standRelax "wait"
  1256.   }
  1257.  
  1258.   wizqTalkSay Zak $::lng::dollAsKeepsakeZ1   "sound/vo/$::LNG/scenes/optionnalConversation/dollAsKeepsakeZ1.ogg"
  1259.  
  1260.   # Wait for Block 2 & 2-B
  1261.   wizqWaitQueue 1
  1262.   wizqWaitQueue 2
  1263.  
  1264.   # Block 3
  1265.   wizqQueue 1 {
  1266.     wizqEntityAction Lydia standDisbelief "wait"
  1267.   }
  1268.   
  1269.   wizqTalkSay Lydia $::lng::dollAsKeepsakeL2   "sound/vo/$::LNG/scenes/optionnalConversation/dollAsKeepsakeL2.ogg"
  1270.  
  1271.   # Wait for Block 3
  1272.   wizqWaitQueue 1
  1273.  
  1274.   # Block 4
  1275.   wizqQueue 1 {
  1276.     wizqEntityAction Lydia standTalkHandHip "wait"
  1277.   }
  1278.   
  1279.   wizqTalkSay Lydia $::lng::dollAsKeepsakeL3   "sound/vo/$::LNG/scenes/optionnalConversation/dollAsKeepsakeL3.ogg"
  1280.  
  1281.   # Wait for Block 4
  1282.   wizqWaitQueue 1
  1283.  
  1284.   # Block 5
  1285.   wizqQueue 1 {
  1286.     chainEvent { delay 500 }
  1287.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1288.     chainEvent { delay 1000 }
  1289.     wizqEntityAction Lydia standYes "wait"
  1290.   }
  1291.   
  1292.   wizqTalkSay Lydia $::lng::dollAsKeepsakeL4   "sound/vo/$::LNG/scenes/optionnalConversation/dollAsKeepsakeL4.ogg"
  1293.  
  1294.   # Wait for Block 5
  1295.   wizqWaitQueue 1
  1296.  
  1297.   # Block 6
  1298.   wizqQueue 1 {
  1299.     chainEvent { delay 500 }
  1300.     wizqEntityAction Lydia standNo "wait"
  1301.     wizqEntityAction Lydia standHandOnChin "wait"
  1302.   }
  1303.   
  1304.   wizqTalkSay Lydia $::lng::dollAsKeepsakeL5   "sound/vo/$::LNG/scenes/optionnalConversation/dollAsKeepsakeL5.ogg"
  1305.   wizqTalkClose
  1306.  
  1307.   # Wait for Block 6
  1308.   wizqWaitQueue 1
  1309.   
  1310.   chainEvent {
  1311.     unfreezePlayer
  1312.     wizEnableMouse
  1313.     wizEntityResumeFollow Zak
  1314.   }
  1315. }
  1316.  
  1317.  
  1318. ## ===================================================== ##
  1319. ##   What happened to Celeste's mother Behavior          ##
  1320. ## ===================================================== ##
  1321. ## SCENE SET UP: Zak is curious to know what's the story of Celeste's mother
  1322. # START IN ---> optionnalConversation.specialPendant
  1323. # STOP WHEN --> When the discussion has been said
  1324. # FORCED    --> None
  1325.  
  1326. event "celestesMotherDiscussionBehavior" {
  1327.   chainEvent {
  1328.     freezePlayer
  1329.     wizDisableMouse
  1330.     wizEntityStopFollow Zak
  1331.   }
  1332.   ozSet "celestesMother" "discussed"
  1333.  
  1334.   chainEvent {
  1335.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1336.   }
  1337.   
  1338.   # Block 1
  1339.   wizqQueue 1 {
  1340.     chainEvent { delay 500 }
  1341.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1342.     chainEvent { delay 500 }
  1343.     wizqEntityAction Zak standConfusedLeft "wait"
  1344.   }
  1345.  
  1346.   # Block 1-B
  1347.   wizqQueue 2 {
  1348.     chainEvent { delay 1000 }
  1349.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1350.   }
  1351.   
  1352.   wizqTalkOpen
  1353.   wizqTalkSay Zak $::lng::celestesMotherDiscussionBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionBehaviorZ1.ogg"
  1354.  
  1355.   # Wait for Block 1 & 1-B
  1356.   wizqWaitQueue 1
  1357.   wizqWaitQueue 2
  1358.  
  1359.   # Block 2
  1360.   wizqQueue 1 {
  1361.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1362.     chainEvent { delay 500 }
  1363.     wizqEntityAction Lydia standYes "wait"
  1364.   }
  1365.   
  1366.   wizqTalkSay Lydia $::lng::celestesMotherDiscussionL1   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionL1.ogg"
  1367.  
  1368.   # Wait for Block 2
  1369.   wizqWaitQueue 1
  1370.  
  1371.   # Block 3
  1372.   wizqQueue 1 {
  1373.     chainEvent { delay 500 }
  1374.     wizqEntityAction Lydia standTalkHandHip "wait"
  1375.   }
  1376.   
  1377.   wizqTalkSay Lydia $::lng::celestesMotherDiscussionL2   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionL2.ogg"
  1378.  
  1379.   # Block 3-B
  1380.   wizqQueue 2 {
  1381.     chainEvent { delay 500 }
  1382.     wizqEntityAction Zak standYes "wait"
  1383.   }
  1384.   
  1385.   wizqTalkSay Zak $::lng::celestesMotherDiscussionZ1   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionZ1.ogg"
  1386.  
  1387.   # Wait for Block 3 & 3-B
  1388.   wizqWaitQueue 1
  1389.   wizqWaitQueue 2
  1390.  
  1391.   # Block 4
  1392.   wizqQueue 1 {
  1393.     wizqEntityAction Lydia standYes "wait"
  1394.     wizqEntityAction Lydia standDisbelief "wait"
  1395.   }
  1396.   
  1397.   wizqTalkSay Lydia $::lng::celestesMotherDiscussionL3   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionL3.ogg"
  1398.  
  1399.   # Block 4-B
  1400.   wizqQueue 2 {
  1401.     wizqEntityAction Zak standConfusedRight "wait"
  1402.   }
  1403.  
  1404.   wizqTalkSay Zak $::lng::celestesMotherDiscussionZ2   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionZ2.ogg"
  1405.  
  1406.   # Wait for Block 4
  1407.   wizqWaitQueue 1
  1408.  
  1409.   # Block 5
  1410.   wizqQueue 1 {
  1411.     chainEvent { delay 500 }
  1412.     wizqEntityAction Lydia standLoseHope "wait"
  1413.   }
  1414.  
  1415.   wizqTalkSay Lydia $::lng::celestesMotherDiscussionL4   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionL4.ogg"
  1416.  
  1417.   # Wait for Block 5 & 4-B
  1418.   wizqWaitQueue 1
  1419.   wizqWaitQueue 2
  1420.  
  1421.   # Block 6
  1422.   wizqQueue 1 {
  1423.     wizqEntityAction Lydia standTalkHandHip "wait"
  1424.   }
  1425.   
  1426.   wizqTalkSay Lydia $::lng::celestesMotherDiscussionL5   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionL5.ogg"
  1427.  
  1428.   # Wait for Block 6
  1429.   wizqWaitQueue 1
  1430.  
  1431.   # Block 7
  1432.   wizqQueue 1 {
  1433.     chainEvent { delay 500 }
  1434.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1435.     chainEvent { delay 2500 }
  1436.     wizqEntityAction Lydia standHandOnChin "wait"
  1437.   }
  1438.   
  1439.   wizqTalkSay Lydia $::lng::celestesMotherDiscussionL6   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionL6.ogg"
  1440.  
  1441.   # Block 7-B
  1442.   wizqQueue 2 {
  1443.     chainEvent { delay 1000 }
  1444.     wizqEntityAction Zak standYes "wait"
  1445.   }
  1446.   
  1447.   wizqTalkSay Zak $::lng::celestesMotherDiscussionZ3   "sound/vo/$::LNG/scenes/optionnalConversation/celestesMotherDiscussionZ3.ogg"
  1448.   wizqTalkClose
  1449.  
  1450.   # Wait for Block 7 & 7-B
  1451.   wizqWaitQueue 1
  1452.   wizqWaitQueue 2
  1453.   
  1454.   chainEvent {
  1455.     unfreezePlayer
  1456.     wizEnableMouse
  1457.     wizEntityResumeFollow Zak
  1458.   }
  1459. }
  1460.  
  1461.  
  1462. ## ===================================================== ##
  1463. ##   Lydia's Past Behavior                               ##
  1464. ## ===================================================== ##
  1465. ## SCENE SET UP: Zak want to know more about Lydia's past and how she got at this school
  1466. # START IN ---> mill.millSolved && crescentCoastWaterway.millWheelSolved
  1467. # STOP WHEN --> When the discussion has been said
  1468. # FORCED    --> Never
  1469.  
  1470. event "lydiasPastBehavior" {
  1471.   chainEvent {
  1472.     freezePlayer
  1473.     wizDisableMouse
  1474.     wizEntityStopFollow Zak
  1475.   }
  1476.   ozSet "lydiasPastConversation" "discussed"
  1477.  
  1478.   chainEvent {
  1479.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1480.   }
  1481.  
  1482.   # Block 1
  1483.   wizqQueue 1 {
  1484.     chainEvent { delay 500 }
  1485.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1486.     chainEvent { delay 500 }
  1487.     wizqEntityAction Zak standConfusedRight "wait"
  1488.   }
  1489.  
  1490.   # Block 1-B
  1491.   wizqQueue 2 {
  1492.     chainEvent { delay 1000 }
  1493.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1494.   }
  1495.   
  1496.   wizqTalkOpen
  1497.   wizqTalkSay Zak $::lng::lydiasPastBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/lydiasPastBehaviorZ1.ogg"
  1498.  
  1499.   # Wait for Block 1 & 1-B
  1500.   wizqWaitQueue 1
  1501.   wizqWaitQueue 2
  1502.  
  1503.   # Block 2
  1504.   wizqQueue 1 {
  1505.     chainEvent { delay 500 }
  1506.     wizqEntityAction Lydia standYes "wait"
  1507.     chainEvent { delay 500 }
  1508.     wizqEntityAction Lydia standTalkHandHip "wait"
  1509.   }
  1510.  
  1511.   wizqTalkSay Lydia $::lng::lydiasPastL1   "sound/vo/$::LNG/scenes/optionnalConversation/lydiasPastL1.ogg"
  1512.  
  1513.   # Wait for Block 2
  1514.   wizqWaitQueue 1
  1515.  
  1516.   # Block 3
  1517.   wizqQueue 1 {
  1518.     chainEvent { delay 500 }
  1519.     wizqEntityAction Lydia standTurnLeft "wait"
  1520.     chainEvent { delay 500 }
  1521.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1522.   }
  1523.   
  1524.   wizqTalkSay Lydia $::lng::lydiasPastL2   "sound/vo/$::LNG/scenes/optionnalConversation/lydiasPastL2.ogg"
  1525.  
  1526.   # Wait for Block 3
  1527.   wizqWaitQueue 1
  1528.  
  1529.   # Block 4
  1530.   wizqQueue 1 {
  1531.     chainEvent { delay 500 }
  1532.     wizqEntityAction Lydia standTalkHandHip "wait"
  1533.   }
  1534.   
  1535.   wizqTalkSay Lydia $::lng::lydiasPastL3   "sound/vo/$::LNG/scenes/optionnalConversation/lydiasPastL3.ogg"
  1536.  
  1537.   # Wait for Block 4
  1538.   wizqWaitQueue 1
  1539.  
  1540.   # Block 5
  1541.   wizqQueue 1 {
  1542.     chainEvent { delay 500 }
  1543.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1544.     chainEvent { delay 500 }
  1545.     wizqEntityAction Lydia standYes "wait"
  1546.   }
  1547.   
  1548.   wizqTalkSay Lydia $::lng::lydiasPastL4   "sound/vo/$::LNG/scenes/optionnalConversation/lydiasPastL4.ogg"
  1549.  
  1550.   # Block 5-B
  1551.   wizqQueue 2 {
  1552.     wizqEntityAction Zak standLoseHope "wait"
  1553.   }
  1554.  
  1555.   wizqTalkSay Zak $::lng::lydiasPastZ1   "sound/vo/$::LNG/scenes/optionnalConversation/lydiasPastZ1.ogg"
  1556.   wizqTalkClose
  1557.  
  1558.   # Wait for Block 5 & 5-B
  1559.   wizqWaitQueue 1
  1560.   wizqWaitQueue 2
  1561.   
  1562.   chainEvent {
  1563.     unfreezePlayer
  1564.     wizEnableMouse
  1565.     wizEntityResumeFollow Zak
  1566.   }
  1567. }
  1568.  
  1569.  
  1570. ## ===================================================== ##
  1571. ##   Who is the Caretaker Behavior                       ##
  1572. ## ===================================================== ##
  1573. ## SCENE SET UP: Zak open the door to elaborate on who is the Caretaker and his importance in this academy
  1574. # START IN ---> optionnalCnversation.wingFlapping
  1575. # STOP WHEN --> hallOfTrials.trialCompleted
  1576. # FORCED    --> Never
  1577.  
  1578. event "whoCaretakerBehavior" {
  1579.   chainEvent {
  1580.     freezePlayer
  1581.     wizDisableMouse
  1582.     wizEntityStopFollow Zak
  1583.   }
  1584.   ozSet "whoCaretaker" "discussed"
  1585.  
  1586.   chainEvent {
  1587.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1588.   }
  1589.  
  1590.   # Block 1
  1591.   wizqQueue 1 {
  1592.     chainEvent { delay 500 }
  1593.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1594.   }
  1595.  
  1596.   # Block 1-B
  1597.   wizqQueue 2 {
  1598.     chainEvent { delay 1000 }
  1599.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1600.     chainEvent { delay 500 }
  1601.     wizqEntityAction Lydia standArmCross "wait"
  1602.   }
  1603.   
  1604.   wizqTalkOpen
  1605.   wizqTalkSay Zak $::lng::whoCaretakerBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whoCaretakerBehaviorZ1.ogg"
  1606.  
  1607.   # Wait for Block 1 & 1-B
  1608.   wizqWaitQueue 1
  1609.   wizqWaitQueue 2
  1610.  
  1611.   # Block 2
  1612.   wizqQueue 1 {
  1613.     wizqEntityAction Lydia standTalkHandHip "wait"
  1614.     chainEvent { delay 1500 }
  1615.     wizqEntityAction Lydia standHandOnChin "wait"
  1616.   }
  1617.   
  1618.   wizqTalkSay Lydia $::lng::whoCaretakerL1   "sound/vo/$::LNG/scenes/optionnalConversation/whoCaretakerL1.ogg"
  1619.  
  1620.   # Block 2-B
  1621.   wizqQueue 2 {
  1622.     wizqEntityAction Zak standConfusedRight "wait"
  1623.   }
  1624.  
  1625.   wizqTalkSay Zak $::lng::whoCaretakerZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whoCaretakerZ1.ogg"
  1626.  
  1627.   # Wait for Block 2 & 2-B
  1628.   wizqWaitQueue 1
  1629.   wizqWaitQueue 2
  1630.  
  1631.   # Block 3
  1632.   wizqQueue 1 {
  1633.     wizqEntityAction Zak standYes "wait"
  1634.   }
  1635.   
  1636.   wizqTalkSay Zak $::lng::whoCaretakerZ2   "sound/vo/$::LNG/scenes/optionnalConversation/whoCaretakerZ2.ogg"
  1637.   wizqTalkClose
  1638.  
  1639.   # Wait for Block 3
  1640.   wizqWaitQueue 1
  1641.   
  1642.   chainEvent {
  1643.     unfreezePlayer
  1644.     wizEnableMouse
  1645.     wizEntityResumeFollow Zak
  1646.   }
  1647. }
  1648.  
  1649.  
  1650. ################################################################################
  1651. ## ========================================================================== ##
  1652. ## ROOM BACKGROUND AND INFORMATIONS                                           ##
  1653. ## ========================================================================== ##
  1654. ################################################################################
  1655.  
  1656.  
  1657. ## ===================================================== ##
  1658. ##   Where is the Mill Behavior                          ##
  1659. ## ===================================================== ##
  1660. ## SCENE SET UP: Zak set up a discussion that will lead Lydia to ask where is the Mill
  1661. # START IN ---> grandHall.leverVision if they never went to the mill
  1662. # STOP WHEN --> When they go in the mill in the Init
  1663. # FORCED    -->
  1664.  
  1665. event "whereMillBehavior" {
  1666.   chainEvent {
  1667.     freezePlayer
  1668.     wizDisableMouse
  1669.     wizEntityStopFollow Zak
  1670.   }
  1671.   ozSet "whereMill" "discussed"
  1672.  
  1673.   chainEvent {
  1674.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1675.   }
  1676.  
  1677.   # Block 1
  1678.   wizqQueue 1 {
  1679.     chainEvent { delay 250 }
  1680.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1681.     chainEvent { delay 500 }
  1682.     wizqEntityAction Zak standLoseHope "wait"
  1683.   }
  1684.  
  1685.   # Block 1-B
  1686.   wizqQueue 2 {
  1687.     chainEvent { delay 1000 }
  1688.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1689.   }
  1690.   
  1691.   wizqTalkOpen
  1692.   wizqTalkSay Zak $::lng::whereMillBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whereMillBehaviorZ1.ogg"
  1693.  
  1694.   # Wait for Block 1 & 1-B
  1695.   wizqWaitQueue 1
  1696.   wizqWaitQueue 2
  1697.  
  1698.   # Block 2
  1699.   wizqQueue 1 {
  1700.     wizqEntityAction Lydia standTalkHandHip "wait"
  1701.   }
  1702.   
  1703.   wizqTalkSay Lydia $::lng::whereMillL1   "sound/vo/$::LNG/scenes/optionnalConversation/whereMillL1.ogg"
  1704.  
  1705.   # Wait for Block 2
  1706.   wizqWaitQueue 1
  1707.  
  1708.   # Block 3
  1709.   wizqQueue 1 {
  1710.     chainEvent { delay 1000 }
  1711.     wizqEntityAction Lydia standYes "wait"
  1712.   }
  1713.   
  1714.   wizqTalkSay Lydia $::lng::whereMillL2   "sound/vo/$::LNG/scenes/optionnalConversation/whereMillL2.ogg"
  1715.  
  1716.   # Wait for Block 3
  1717.   wizqWaitQueue 1
  1718.  
  1719.   # Block 3
  1720.   wizqQueue 1 {
  1721.     wizqEntityAction Zak standNo "wait"
  1722.   }
  1723.   
  1724.   wizqTalkSay Zak $::lng::whereMillZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whereMillZ1.ogg"
  1725.  
  1726.   # Block 3-B
  1727.   wizqQueue 2 {
  1728.     wizqEntityAction Lydia standHandOnChin "wait"
  1729.   }
  1730.   
  1731.   wizqTalkSay Lydia $::lng::whereMillL3   "sound/vo/$::LNG/scenes/optionnalConversation/whereMillL3.ogg"
  1732.   wizqTalkClose
  1733.  
  1734.   # Wait for Block 3 & 3-B
  1735.   wizqWaitQueue 1
  1736.   wizqWaitQueue 2
  1737.   
  1738.   chainEvent {
  1739.     unfreezePlayer
  1740.     wizEnableMouse
  1741.     wizEntityResumeFollow Zak
  1742.   }
  1743. }
  1744.  
  1745.  
  1746. ################################################################################
  1747. ## ========================================================================== ##
  1748. ##   ITEMS BACKGROUND AND INFORMATION                                         ##
  1749. ## ========================================================================== ##
  1750. ################################################################################
  1751.  
  1752.  
  1753. ## ===================================================== ##
  1754. ##   In what language is it Behavior                     ##
  1755. ## ===================================================== ##
  1756. ## SCENE SET UP: Lydia is stating a fact about how they can't read magical language
  1757. # START IN ---> enchantedHallway.myasBook & enchantedHallway.bookCornerBehavior + "usePage" of enchanted crossway, dinnerHall and Grand Hall
  1758. # STOP WHEN --> grandHall.useCircletGet
  1759. # FORCED    --> Never
  1760.  
  1761. event "whatLanguageBehavior" {
  1762.   chainEvent {
  1763.     freezePlayer
  1764.     wizDisableMouse
  1765.     wizEntityStopFollow Zak
  1766.   }
  1767.   ozSet "whatLanguage" "discussed"
  1768.  
  1769.   chainEvent {
  1770.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1771.   }
  1772.  
  1773.   # Block 1
  1774.   wizqQueue 1 {
  1775.     chainEvent { delay 250 }
  1776.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1777.     chainEvent { delay 500 }
  1778.     wizqEntityAction Lydia standHandOnChin "wait"
  1779.   }
  1780.  
  1781.   # Block 1-B
  1782.   wizqQueue 2 {
  1783.     chainEvent { delay 1000 }
  1784.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1785.   }
  1786.   
  1787.   wizqTalkOpen
  1788.   wizqTalkSay Lydia $::lng::whatLanguageBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatLanguageBehaviorL1.ogg"
  1789.  
  1790.   # Wait for Block 1 & 1-B
  1791.   wizqWaitQueue 1
  1792.   wizqWaitQueue 2
  1793.  
  1794.   # Block 2
  1795.   wizqQueue 1 {
  1796.     wizqEntityAction Lydia standWhat "wait"
  1797.   }
  1798.   
  1799.   wizqTalkSay Lydia $::lng::whatLanguageL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatLanguageL1.ogg"
  1800.  
  1801.   # Block 2-B
  1802.   wizqQueue 2 {
  1803.     wizqEntityAction Zak standYes "wait"
  1804.   }
  1805.   
  1806.   wizqTalkSay Zak $::lng::whatLanguageZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whatLanguageZ1.ogg"
  1807.   wizqTalkClose
  1808.   
  1809.   # Wait for Block 2 & 2-B
  1810.   wizqWaitQueue 1
  1811.   wizqWaitQueue 2
  1812.  
  1813.   wizqEntityChangeCycle Lydia crouchCycleNormal standToCrouch "wait"
  1814.  
  1815.   # Block 3
  1816.   wizqQueue 1 {
  1817.     chainEvent { delay 500 }
  1818.     wizqEntityAction Lydia crouchTalk "wait"
  1819.   }
  1820.  
  1821.   wizqTalkOpen
  1822.   wizqTalkSay Lydia $::lng::whatLanguageL2   "sound/vo/$::LNG/scenes/optionnalConversation/whatLanguageL2.ogg"
  1823.  
  1824.   # Wait for Block 3
  1825.   wizqWaitQueue 1
  1826.  
  1827.   # Block 4
  1828.   wizqQueue 1 {
  1829.     chainEvent { delay 500 }
  1830.     wizqEntityAction Zak standNo "wait"
  1831.   }
  1832.  
  1833.   # Block 4-B
  1834.   wizqQueue 2 {
  1835.     chainEvent { delay 1500 }
  1836.     wizqEntityChangeCycle Lydia standCycleNormal crouchToStand "wait"
  1837.     chainEvent { delay 500 }
  1838.     wizqEntityAction Lydia standHandOnChin "wait"
  1839.   }
  1840.   
  1841.   wizqTalkSay Zak $::lng::whatLanguageZ2   "sound/vo/$::LNG/scenes/optionnalConversation/whatLanguageZ2.ogg"
  1842.   wizqTalkClose
  1843.  
  1844.   # Wait for Block 4 & 4-B
  1845.   wizqWaitQueue 1
  1846.   wizqWaitQueue 2
  1847.   
  1848.   chainEvent {
  1849.     unfreezePlayer
  1850.     wizEnableMouse
  1851.     wizEntityResumeFollow Zak
  1852.   }
  1853. }
  1854.  
  1855.  
  1856. ## ===================================================== ##
  1857. ##   What is written there Behavior                      ##
  1858. ## ===================================================== ##
  1859. ## SCENE SET UP: Lydia wonder what is in the notebook they found
  1860. # START IN ---> enchantedHallway.myasBook & enchantedHallway.bookCornerBehavior + "usePage" of enchanted crossway, dinnerHall and Grand Hall
  1861. # STOP WHEN --> grandHall.useCircletGet
  1862. # FORCED    --> Never
  1863.  
  1864. event "whatIsWrittenBehavior" {
  1865.   chainEvent {
  1866.     freezePlayer
  1867.     wizDisableMouse
  1868.     wizEntityStopFollow Zak
  1869.   }
  1870.   ozSet "whatIsWritten" "discussed"
  1871.  
  1872.   chainEvent {
  1873.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1874.   }
  1875.  
  1876.   # Block 1
  1877.   wizqQueue 1 {
  1878.     chainEvent { delay 500 }
  1879.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1880.     chainEvent { delay 500 }
  1881.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1882.   }
  1883.  
  1884.   # Block 1-B
  1885.   wizqQueue 2 {
  1886.     chainEvent { delay 1000 }
  1887.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1888.   }
  1889.   
  1890.   wizqTalkOpen
  1891.   wizqTalkSay Lydia $::lng::whatIsWrittenBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatIsWrittenBehaviorL1.ogg"
  1892.  
  1893.   # Wait for Block 1 & 1-B
  1894.   wizqWaitQueue 1
  1895.   wizqWaitQueue 2
  1896.  
  1897.   # Block 2
  1898.   wizqQueue 1 {
  1899.     wizqEntityAction Lydia standTalkHandHip "wait"
  1900.     chainEvent { delay 2000 }
  1901.     wizqEntityAction Lydia standHandOnChin "wait"
  1902.   }
  1903.   
  1904.   wizqTalkSay Lydia $::lng::whatIsWrittenL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatIsWrittenL1.ogg"
  1905.  
  1906.   # Block 2-B
  1907.   wizqQueue 2 {
  1908.     chainEvent { delay 1000 }
  1909.     wizqEntityAction Zak standYes "wait"
  1910.   }
  1911.   
  1912.   wizqTalkSay Zak $::lng::whatIsWrittenZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whatIsWrittenZ1.ogg"
  1913.  
  1914.   # Wait for Block 2 & 2-B
  1915.   wizqWaitQueue 1
  1916.   wizqWaitQueue 2
  1917.  
  1918.   # Block 3
  1919.   wizqQueue 1 {
  1920.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1921.     chainEvent { delay 500 }
  1922.     wizqEntityAction Lydia standYes "wait"
  1923.   }
  1924.   
  1925.   wizqTalkSay Lydia $::lng::whatIsWrittenL2   "sound/vo/$::LNG/scenes/optionnalConversation/whatIsWrittenL2.ogg"
  1926.   wizqTalkClose
  1927.  
  1928.   # Wait for Block 3
  1929.   wizqWaitQueue 1
  1930.   
  1931.   chainEvent {
  1932.     unfreezePlayer
  1933.     wizEnableMouse
  1934.     wizEntityResumeFollow Zak
  1935.   }
  1936. }
  1937.  
  1938.  
  1939. ## ===================================================== ##
  1940. ##   What is this Pendant Behavior                       ##
  1941. ## ===================================================== ##
  1942. ## SCENE SET UP: Zak inquire why the pendant Lydia broke is so special
  1943. # START IN ---> crescenCoastWaterway.pendantBreak
  1944. # STOP WHEN --> When conversation has been said
  1945. # FORCED    --> Never
  1946.  
  1947. event "specialPendantBehavior" {
  1948.   chainEvent {
  1949.     freezePlayer
  1950.     wizDisableMouse
  1951.     wizEntityStopFollow Zak
  1952.   }
  1953.   ozSet "specialPendant" "discussed"
  1954.  
  1955.   chainEvent {
  1956.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  1957.   }
  1958.  
  1959.   # Block 1
  1960.   wizqQueue 1 {
  1961.     chainEvent { delay 500 }
  1962.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1963.     chainEvent { delay 500 }
  1964.     wizqEntityAction Zak standConfusedLeft "wait"
  1965.   }
  1966.  
  1967.   # Block 1-B
  1968.   wizqQueue 2 {
  1969.     chainEvent { delay 1000 }
  1970.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1971.   }
  1972.   
  1973.   wizqTalkOpen
  1974.   wizqTalkSay Zak $::lng::specialPendantBehaviorZ1  "sound/vo/$::LNG/scenes/optionnalConversation/specialPendantBehaviorZ1.ogg"
  1975.  
  1976.   # Wait for Block 1 & 1-B
  1977.   wizqWaitQueue 1
  1978.   wizqWaitQueue 2
  1979.  
  1980.   # Block 2
  1981.   wizqQueue 1 {
  1982.     wizqEntityAction Lydia standTalkTwoHands "wait"
  1983.     wizqEntityAction Lydia standYes "wait"
  1984.   }
  1985.  
  1986.   # Block 2-B
  1987.   wizqQueue 2 {
  1988.     chainEvent { delay 1000 }
  1989.     wizqEntitySetCycle Zak sitCycleNormal
  1990.   }
  1991.   
  1992.   wizqTalkSay Lydia $::lng::specialPendantL1   "sound/vo/$::LNG/scenes/optionnalConversation/specialPendantL1.ogg"
  1993.  
  1994.   # Wait for Block 2 & 2-B
  1995.   wizqWaitQueue 1
  1996.   wizqWaitQueue 2
  1997.  
  1998.   # Block 3
  1999.   wizqQueue 1 {
  2000.     wizqEntityAction Lydia standTalkHandHip "wait"
  2001.   }
  2002.  
  2003.   wizqTalkSay Lydia $::lng::specialPendantL2   "sound/vo/$::LNG/scenes/optionnalConversation/specialPendantL2.ogg"
  2004.  
  2005.   # Wait for Block 3
  2006.   wizqWaitQueue 1
  2007.  
  2008.   # Block 4
  2009.   wizqQueue 1 {
  2010.     wizqEntityAction Lydia standDisbelief "wait"
  2011.   }
  2012.  
  2013.   # Block 4-B
  2014.   wizqQueue 2 {
  2015.     chainEvent { delay 1000 }
  2016.     wizqEntityAction Zak sitConfusedRight "wait"
  2017.   }
  2018.   
  2019.   wizqTalkSay Lydia $::lng::specialPendantL3   "sound/vo/$::LNG/scenes/optionnalConversation/specialPendantL3.ogg"
  2020.  
  2021.   # Wait for Block 4
  2022.   wizqWaitQueue 1
  2023.  
  2024.   # Block 5
  2025.   wizqQueue 1 {
  2026.     chainEvent { delay 1000 }
  2027.     wizqEntityAction Lydia standYes "wait"
  2028.   }
  2029.   
  2030.   wizqTalkSay Lydia $::lng::specialPendantL4   "sound/vo/$::LNG/scenes/optionnalConversation/specialPendantL4.ogg"
  2031.   wizqTalkClose
  2032.  
  2033.   # Wait for Block 5
  2034.   wizqWaitQueue 1
  2035.  
  2036.   wizqEntitySetCycle Zak standCycleNormal
  2037.  
  2038.   if { [getVar "celestesMother"] == "" } {
  2039.     setEventPriority optionnalConversation.celestesMotherDiscussionBehavior long
  2040.     ozSet "celestesMotherDiscussion" "initiated"
  2041.   }
  2042.   
  2043.   chainEvent {
  2044.     unfreezePlayer
  2045.     wizEnableMouse
  2046.     wizEntityResumeFollow Zak
  2047.   }
  2048. }
  2049.  
  2050.  
  2051. ################################################################################
  2052. ## ========================================================================== ##
  2053. ##   OTHERS                                                                   ##
  2054. ## ========================================================================== ##
  2055. ################################################################################
  2056.  
  2057.  
  2058. ## ===================================================== ##
  2059. ##   What will you do to them Behavior                   ##
  2060. ## ===================================================== ##
  2061. ## SCENE SET UP: Lydia is unsure of the attitude of Zak and his desire of vengeance
  2062. # START IN ---> optionnalConversation.familiar
  2063. # STOP WHEN --> celesteRoom.roomSearching
  2064. # FORCED    --> Never
  2065.  
  2066. event "whatWillYouDoBehavior" {
  2067.   chainEvent {
  2068.     freezePlayer
  2069.     wizDisableMouse
  2070.     wizEntityStopFollow Zak
  2071.   }
  2072.   ozSet "whatWillYouDo" "discussed"
  2073.  
  2074.   chainEvent {
  2075.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2076.   }
  2077.  
  2078.   # Block 1
  2079.   wizqQueue 1 {
  2080.     chainEvent { delay 500 }
  2081.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2082.     chainEvent { delay 500 }
  2083.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2084.   }
  2085.  
  2086.   # Block 1-B
  2087.   wizqQueue 2 {
  2088.     chainEvent { delay 1000 }
  2089.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2090.   }
  2091.   
  2092.   wizqTalkOpen
  2093.   wizqTalkSay Lydia $::lng::whatWillYouDoBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatWillYouDoBehaviorL1.ogg"
  2094.  
  2095.   # Wait for Block 1 & 1-B
  2096.   wizqWaitQueue 1
  2097.   wizqWaitQueue 2
  2098.  
  2099.   # Block 2
  2100.   wizqQueue 1 {
  2101.     wizqEntityAction Lydia standWhat "wait"
  2102.   }
  2103.   
  2104.   wizqTalkSay Lydia $::lng::whatWillYouDoL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatWillYouDoL1.ogg"
  2105.  
  2106.   # Block 2-B
  2107.   wizqQueue 2 {
  2108.     wizqEntityAction Zak standLoseHope "wait"
  2109.   }
  2110.   
  2111.     wizqTalkSay Zak $::lng::whatWillYouDoZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whatWillYouDoZ1.ogg"
  2112.  
  2113.   # Wait for Block 2 & 2-B
  2114.   wizqWaitQueue 1
  2115.   wizqWaitQueue 2
  2116.  
  2117.   # Block 3
  2118.   wizqQueue 1 {
  2119.     wizqEntityAction Lydia standHandOnChin "wait"
  2120.   }
  2121.  
  2122.     wizqTalkSay Lydia $::lng::whatWillYouDoL2   "sound/vo/$::LNG/scenes/optionnalConversation/whatWillYouDoL2.ogg"
  2123.  
  2124.   # Block 3-B
  2125.   wizqQueue 2 {
  2126.     chainEvent { delay 500 }
  2127.     wizqEntityAction Zak standYes "wait"
  2128.     wizqEntityAction Zak standConfusedRight "wait"
  2129.   }
  2130.  
  2131.   wizqTalkSay Zak $::lng::whatWillYouDoZ2   "sound/vo/$::LNG/scenes/optionnalConversation/whatWillYouDoZ2.ogg"
  2132.   wizqTalkClose
  2133.  
  2134.   # Wait for Block 3 & 3-B
  2135.   wizqWaitQueue 1
  2136.   wizqWaitQueue 2
  2137.   
  2138.   chainEvent {
  2139.     unfreezePlayer
  2140.     wizEnableMouse
  2141.     wizEntityResumeFollow Zak
  2142.   }
  2143. }
  2144.  
  2145.  
  2146. ## ===================================================== ##
  2147. ##   Which potion are you talking about Behavior         ##
  2148. ## ===================================================== ##
  2149. ## SCENE SET UP: Zak curse at the potion he took that didn't work
  2150. # START IN ---> millStoreRoom.zakFree
  2151. # STOP WHEN --> optionnalConversation.potionPlease or in trialRoom.needBrokenWindow && trialRoom.windowView
  2152. # FORCED    --> Never
  2153.  
  2154. event "whichPotionBehavior" {
  2155.   chainEvent {
  2156.     freezePlayer
  2157.     wizDisableMouse
  2158.     wizEntityStopFollow Zak
  2159.   }
  2160.   ozSet "whichPotion" "discussed"
  2161.  
  2162.   chainEvent {
  2163.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2164.   }
  2165.  
  2166.   # Block 1
  2167.   wizqQueue 1 {
  2168.     chainEvent { delay 500 }
  2169.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2170.     chainEvent { delay 500 }
  2171.     wizqEntityAction Zak standLoseHope "wait"
  2172.   }
  2173.  
  2174.   # Block 1-B
  2175.   wizqQueue 2 {
  2176.     chainEvent { delay 1000 }
  2177.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2178.   }
  2179.  
  2180.   wizqTalkOpen
  2181.   wizqTalkSay Zak $::lng::whichPotionBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whichPotionBehaviorZ1.ogg"
  2182.  
  2183.   # Wait for Block 1 & 1-B
  2184.   wizqWaitQueue 1
  2185.   wizqWaitQueue 2
  2186.  
  2187.   # Block 2
  2188.   wizqQueue 1 {
  2189.     wizqEntityAction Lydia standWhat "wait"
  2190.   }
  2191.  
  2192.   wizqTalkSay Lydia $::lng::whichPotionL1   "sound/vo/$::LNG/scenes/optionnalConversation/whichPotionL1.ogg"
  2193.  
  2194.   # Block 2-B
  2195.   wizqQueue 2 {
  2196.     wizqEntityAction Zak standConfusedRight "wait"
  2197.     wizqEntityAction Zak standLoseHope "wait"
  2198.   }
  2199.  
  2200.   wizqTalkSay Zak $::lng::whichPotionZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whichPotionZ1.ogg"
  2201.  
  2202.   # Wait for Block 2 & 2-B
  2203.   wizqWaitQueue 1
  2204.   wizqWaitQueue 2
  2205.  
  2206.   # Block 3
  2207.   wizqQueue 1 {
  2208.     chainEvent { delay 2000 }
  2209.     wizqEntityAction Lydia standHandOnChin "wait"
  2210.   }
  2211.  
  2212.   wizqTalkSay Zak $::lng::whichPotionZ2   "sound/vo/$::LNG/scenes/optionnalConversation/whichPotionZ2.ogg"
  2213.  
  2214.   # Wait for Block 3
  2215.   wizqWaitQueue 1
  2216.  
  2217.   # Block 4
  2218.   wizqQueue 1 {
  2219.     chainEvent { delay 1000 }
  2220.     wizqEntityAction Lydia standNo "wait"
  2221.   }
  2222.  
  2223.   wizqTalkSay Lydia $::lng::whichPotionL2   "sound/vo/$::LNG/scenes/optionnalConversation/whichPotionL2.ogg"
  2224.   wizqTalkClose
  2225.  
  2226.   # Wait for Block 4
  2227.   wizqWaitQueue 1
  2228.   
  2229.   if { [getVar "familiar"] == "" } {
  2230.     setEventPriority optionnalConversation.familiarBehavior medium
  2231.     ozSet "familiar" "initiated"
  2232.   }
  2233.   
  2234.   chainEvent {
  2235.     unfreezePlayer
  2236.     wizEnableMouse
  2237.     wizEntityResumeFollow Zak
  2238.   }
  2239. }
  2240.  
  2241.  
  2242. ## ===================================================== ##
  2243. ##   You can talk Behavior                               ##
  2244. ## ===================================================== ##
  2245. ## SCENE SET UP: Lydia is amazed to have found a talking wolf
  2246. # START IN ---> millStoreRoom.zakFree
  2247. # STOP WHEN --> They pass together after the flashback on passerelle dragonvale hallway
  2248. # FORCED    --> When they pass together after the flashback on passerelle dragonvale hallway
  2249.  
  2250. event "whatAreYouBehavior" {
  2251.   chainEvent {
  2252.     freezePlayer
  2253.     wizDisableMouse
  2254.     wizEntityStopFollow Zak
  2255.   }
  2256.   ozSet "whatAreYou" "discussed"
  2257.   deleteEventPriority optionnalConversation.whatAreYouBehavior emergency
  2258.   deleteEventPriority optionnalConversation.whatAreYouBehavior short
  2259.   deleteEventPriority optionnalConversation.whatAreYouBehavior medium
  2260.   deleteEventPriority optionnalConversation.whatAreYouBehavior long
  2261.  
  2262.  
  2263.   chainEvent {
  2264.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2265.   }
  2266.  
  2267.   # Block 1
  2268.   wizqQueue 1 {
  2269.     chainEvent { delay 500 }
  2270.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2271.     chainEvent { delay 250 }
  2272.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2273.     wizqEntityAction Lydia standNo "wait"
  2274.   }
  2275.  
  2276.   # Block 1-B
  2277.   wizqQueue 2 {
  2278.     chainEvent { delay 1000 }
  2279.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2280.   }
  2281.   
  2282.   wizqTalkOpen
  2283.   wizqTalkSay Lydia $::lng::whatAreYouBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatAreYouBehaviorL1.ogg"
  2284.  
  2285.   # Wait for Block 1 & 1-B
  2286.   wizqWaitQueue 1
  2287.   wizqWaitQueue 2
  2288.  
  2289.   # Block 2
  2290.   wizqQueue 1 {
  2291.     wizqEntityAction Lydia standWhat "wait"
  2292.   }
  2293.  
  2294.   wizqTalkSay Lydia $::lng::whatAreYouL1   "sound/vo/$::LNG/scenes/optionnalConversation/whatAreYouL1.ogg"
  2295.  
  2296.   # Block 2-B
  2297.   wizqQueue 2 {
  2298.     chainEvent { delay 2000 }
  2299.     wizqEntityAction Zak standConfusedRight "wait"
  2300.   }
  2301.  
  2302.   wizqTalkSay Zak $::lng::whatAreYouZ1   "sound/vo/$::LNG/scenes/optionnalConversation/whatAreYouZ1.ogg"
  2303.  
  2304.   # Wait for Block 2 & 2-B
  2305.   wizqWaitQueue 1
  2306.   wizqWaitQueue 2
  2307.  
  2308.   # Block 3
  2309.   wizqQueue 1 {
  2310.     wizqEntityAction Lydia standHandOnChin "wait"
  2311.   }
  2312.  
  2313.   wizqTalkSay Lydia $::lng::whatAreYouL2   "sound/vo/$::LNG/scenes/optionnalConversation/whatAreYouL2.ogg"
  2314.  
  2315.   # Block 3-B
  2316.   wizqQueue 2 {
  2317.     chainEvent { delay 1000 }
  2318.     wizqEntityAction Zak standYes "wait"
  2319.   }
  2320.  
  2321.   wizqTalkSay Zak $::lng::whatAreYouZ2   "sound/vo/$::LNG/scenes/optionnalConversation/whatAreYouZ2.ogg"
  2322.   wizqTalkClose
  2323.  
  2324.   # Wait for Block 3 & 3-B
  2325.   wizqWaitQueue 1
  2326.   wizqWaitQueue 2
  2327.  
  2328.   if { [getVar "familiar"] == "" } {
  2329.     setEventPriority optionnalConversation.familiarBehavior medium
  2330.     ozSet "familiar" "initiated"
  2331.   }
  2332.   
  2333.   chainEvent {
  2334.     unfreezePlayer
  2335.     wizEnableMouse
  2336.     wizEntityResumeFollow Zak
  2337.   }
  2338. }
  2339.  
  2340.  
  2341. ## ===================================================== ##
  2342. ##   A Familiar Behavior                                 ##
  2343. ## ===================================================== ##
  2344. ## SCENE SET UP: Zak curse at his familiar shape
  2345. # START IN ---> optionnalConversation.whatAreYou & optionnalConversation.whichPotion
  2346. # STOP WHEN --> When they pass in the garden for the second time close to the puppet, this erase whatAreYou
  2347. # FORCED    --> In the camera gardenEnd
  2348.  
  2349. event "familiarBehavior" {
  2350.   chainEvent {
  2351.     freezePlayer
  2352.     wizDisableMouse
  2353.     wizEntityStopFollow Zak
  2354.   }
  2355.   ozSet "familiar" "discussed"
  2356.   
  2357.   deleteEventPriority optionnalConversation.familiarBehavior emergency
  2358.   deleteEventPriority optionnalConversation.familiarBehavior short
  2359.   deleteEventPriority optionnalConversation.familiarBehavior medium
  2360.   deleteEventPriority optionnalConversation.familiarBehavior long
  2361.   deleteEventPriority optionnalConversation.whatAreYouBehavior emergency
  2362.   deleteEventPriority optionnalConversation.whatAreYouBehavior short
  2363.   deleteEventPriority optionnalConversation.whatAreYouBehavior medium
  2364.   deleteEventPriority optionnalConversation.whatAreYouBehavior long
  2365.   
  2366.   chainEvent {
  2367.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2368.   }
  2369.  
  2370.   # Block 1
  2371.   wizqQueue 1 {
  2372.     chainEvent { delay 500 }
  2373.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2374.     chainEvent { delay 500 }
  2375.     wizqEntityAction Zak standLoseHope "wait"
  2376.   }
  2377.  
  2378.   # Block 1-B
  2379.   wizqQueue 2 {
  2380.     chainEvent { delay 1000 }
  2381.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2382.   }
  2383.   
  2384.   wizqTalkOpen
  2385.   wizqTalkSay Zak $::lng::familiarBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/familiarBehaviorZ1.ogg"
  2386.  
  2387.   # Wait for Block 1 & 1-B
  2388.   wizqWaitQueue 1
  2389.   wizqWaitQueue 2
  2390.  
  2391.   # Block 2
  2392.   wizqQueue 1 {
  2393.     chainEvent { delay 1000 }
  2394.     wizqEntityAction Lydia standWhat "wait"
  2395.   }
  2396.   
  2397.   wizqTalkSay Lydia $::lng::familiarL1   "sound/vo/$::LNG/scenes/optionnalConversation/familiarL1.ogg"
  2398.  
  2399.   # Block 2-B
  2400.   wizqQueue 2 {
  2401.     chainEvent { delay 1500 }
  2402.     wizqEntityAction Zak standConfusedLeft "wait"
  2403.   }
  2404.   
  2405.   wizqTalkSay Zak $::lng::familiarZ1   "sound/vo/$::LNG/scenes/optionnalConversation/familiarZ1.ogg"
  2406.  
  2407.   # Wait for Block 2 & 2-B
  2408.   wizqWaitQueue 1
  2409.   wizqWaitQueue 2
  2410.   
  2411.   # Block 3
  2412.   wizqQueue 1 {
  2413.     chainEvent { delay 500 }
  2414.     wizqEntityAction Lydia standHandOnChin "wait"
  2415.   }
  2416.  
  2417.   wizqTalkSay Zak $::lng::familiarZ2   "sound/vo/$::LNG/scenes/optionnalConversation/familiarZ2.ogg"
  2418.  
  2419.   # Wait for Block 3
  2420.   wizqWaitQueue 1
  2421.  
  2422.   # Block 4
  2423.   wizqQueue 1 {
  2424.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2425.   }
  2426.  
  2427.     wizqTalkSay Lydia $::lng::familiarL2   "sound/vo/$::LNG/scenes/optionnalConversation/familiarL2.ogg"
  2428.  
  2429.   # Block 4-B
  2430.   wizqQueue 2 {
  2431.     wizqEntityAction Zak standYes "wait"
  2432.   }
  2433.   
  2434.     wizqTalkSay Zak $::lng::familiarZ3   "sound/vo/$::LNG/scenes/optionnalConversation/familiarZ3.ogg"
  2435.  
  2436.   # Wait for Block 4 & 4-B
  2437.   wizqWaitQueue 1
  2438.   wizqWaitQueue 2
  2439.  
  2440.     wizqTalkSay Zak $::lng::familiarZ4   "sound/vo/$::LNG/scenes/optionnalConversation/familiarZ4.ogg"
  2441.  
  2442.   # Block 5
  2443.   wizqQueue 1 {
  2444.     wizqEntityAction Lydia standDisbelief "wait"
  2445.   }
  2446.   
  2447.   wizqTalkSay Zak $::lng::familiarZ5  "sound/vo/$::LNG/scenes/optionnalConversation/familiarZ5.ogg"
  2448.   wizqTalkClose
  2449.  
  2450.   # Wait for Block 5
  2451.   wizqWaitQueue 1
  2452.  
  2453.   if { [getVar "whatWillYouDo"] == "" } {
  2454.     setEventPriority optionnalConversation.whatWillYouDoBehavior medium
  2455.     ozSet "whatWillYouDo" "initiated"
  2456.   }
  2457.   
  2458.   chainEvent {
  2459.     unfreezePlayer
  2460.     wizEnableMouse
  2461.     wizEntityResumeFollow Zak
  2462.   }
  2463. }
  2464.  
  2465.  
  2466. ## ===================================================== ##
  2467. ##   Zak Past Behavior                                   ##
  2468. ## ===================================================== ##
  2469. ## SCENE SET UP: Lydia want to know more of Zak past
  2470. # START IN ---> laboratory.leaveTogether
  2471. # STOP WHEN --> The conversation has been said
  2472. # FORCED    --> Never
  2473.  
  2474. event "zaksPastBehavior" {
  2475.   chainEvent {
  2476.     freezePlayer
  2477.     wizDisableMouse
  2478.     wizEntityStopFollow Zak
  2479.   }
  2480.   ozSet "zaksPast" "discussed"
  2481.  
  2482.   chainEvent {
  2483.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2484.   }
  2485.  
  2486.   # Block 1
  2487.   wizqQueue 1 {
  2488.     chainEvent { delay 500 }
  2489.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2490.     chainEvent { delay 500 }
  2491.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2492.   }
  2493.  
  2494.   # Block 1-B
  2495.   wizqQueue 2 {
  2496.     chainEvent { delay 1000 }
  2497.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2498.   }
  2499.   
  2500.   wizqTalkOpen
  2501.   wizqTalkSay Lydia $::lng::zaksPastBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastBehaviorL1.ogg"
  2502.  
  2503.   # Wait for Block 1 & 1-B
  2504.   wizqWaitQueue 1
  2505.   wizqWaitQueue 2
  2506.  
  2507.   wizqTalkSay Zak $::lng::zaksPastZ1   "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastZ1.ogg"
  2508.  
  2509.   # Block 2
  2510.   wizqQueue 1 {
  2511.     chainEvent { delay 1500 }
  2512.     wizqEntityAction Zak standLoseHope "wait"
  2513.   }
  2514.   
  2515.   wizqTalkSay Zak $::lng::zaksPastZ2   "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastZ2.ogg"
  2516.  
  2517.   # Wait for Block 2
  2518.   wizqWaitQueue 1
  2519.  
  2520.   # Block 3
  2521.   wizqQueue 1 {
  2522.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2523.     wizqEntityAction Lydia standWhat "wait"
  2524.     chainEvent { delay 1000 }
  2525.     wizqEntityAction Lydia standHandOnChin "wait"
  2526.   }
  2527.   
  2528.   wizqTalkSay Lydia $::lng::zaksPastL1   "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastL1.ogg"
  2529.     wizqTalkSay Zak $::lng::zaksPastZ3   "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastZ3.ogg"
  2530.  
  2531.   # Block 3-B
  2532.   wizqQueue 2 {
  2533.     wizqEntityAction Zak standLoseHope "wait"
  2534.   }
  2535.   
  2536.     wizqTalkSay Zak $::lng::zaksPastZ4   "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastZ4.ogg"
  2537.  
  2538.   # Wait for Block 3 & 3-B
  2539.   wizqWaitQueue 1
  2540.   wizqWaitQueue 2
  2541.  
  2542.   # Block 4
  2543.   wizqQueue 1 {
  2544.     wizqEntityAction Lydia standHandOnChin "wait"
  2545.   }
  2546.  
  2547.     wizqTalkSay Lydia $::lng::zaksPastL2   "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastL2.ogg"
  2548.   wizqTalkSay Zak $::lng::zaksPastZ7  "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastZ7.ogg"
  2549.  
  2550.   # Block 4-B
  2551.   wizqQueue 2 {
  2552.     chainEvent { delay 1500 }
  2553.     wizqEntityAction Zak standLoseHope "wait"
  2554.   }
  2555.   
  2556.   wizqTalkSay Zak $::lng::zaksPastZ5  "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastZ5.ogg"
  2557.  
  2558.   # Wait for Block 4 & 4-B
  2559.   wizqWaitQueue 1
  2560.   wizqWaitQueue 2
  2561.  
  2562.   # Block 5
  2563.   wizqQueue 1 {
  2564.     wizqEntityAction Lydia standTalkHandHip "wait"
  2565.   }
  2566.  
  2567.   wizqTalkSay Lydia $::lng::zaksPastL3  "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastL3.ogg"
  2568.  
  2569.   # Block 5-B
  2570.   wizqQueue 2 {
  2571.     wizqEntityAction Zak standYes "wait"
  2572.   }
  2573.   
  2574.   wizqTalkSay Zak $::lng::zaksPastZ6  "sound/vo/$::LNG/scenes/optionnalConversation/zaksPastZ6.ogg"
  2575.   wizqTalkClose
  2576.  
  2577.   # Wait for Block 5 & 5-B
  2578.   wizqWaitQueue 1
  2579.   wizqWaitQueue 2
  2580.   
  2581.   chainEvent {
  2582.     unfreezePlayer
  2583.     wizEnableMouse
  2584.     wizEntityResumeFollow Zak
  2585.   }
  2586. }
  2587.  
  2588.  
  2589. ## ===================================================== ##
  2590. ##   Relation between Zak and Celeste Behavior           ##
  2591. ## ===================================================== ##
  2592. ## SCENE SET UP: Lydia want to know more of what Zak knows of Celeste
  2593. # START IN ---> celesteRoom.roomSearching
  2594. # STOP WHEN --> The conversation has been said
  2595. # FORCED    --> Never
  2596.  
  2597. event "zakAndCelesteBehavior" {
  2598.   chainEvent {
  2599.     freezePlayer
  2600.     wizDisableMouse
  2601.     wizEntityStopFollow Zak
  2602.   }
  2603.   ozSet "zakAndCeleste" "discussed"
  2604.   deleteEventPriority optionnalConversation.whoIsCelesteBehavior emergency
  2605.   deleteEventPriority optionnalConversation.whoIsCelesteBehavior short
  2606.   deleteEventPriority optionnalConversation.whoIsCelesteBehavior medium
  2607.   deleteEventPriority optionnalConversation.whoIsCelesteBehavior long
  2608.  
  2609.   chainEvent {
  2610.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2611.   }
  2612.  
  2613.   # Block 1
  2614.   wizqQueue 1 {
  2615.     chainEvent { delay 500 }
  2616.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2617.     chainEvent { delay 500 }
  2618.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2619.   }
  2620.  
  2621.   # Block 1-B
  2622.   wizqQueue 2 {
  2623.     chainEvent { delay 1000 }
  2624.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2625.   }
  2626.   
  2627.   wizqTalkOpen
  2628.   wizqTalkSay Lydia $::lng::zakAndCelesteBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/zakAndCelesteBehaviorL1.ogg"
  2629.  
  2630.   # Wait for Block 1 & 1-B
  2631.   wizqWaitQueue 1
  2632.   wizqWaitQueue 2
  2633.  
  2634.   wizqTalkSay Zak $::lng::zakAndCelesteZ1   "sound/vo/$::LNG/scenes/optionnalConversation/zakAndCelesteZ1.ogg"
  2635.  
  2636.   # Block 2
  2637.   wizqQueue 1 {
  2638.     chainEvent { delay 1000 }
  2639.     wizqEntityAction Zak standLoseHope "wait"
  2640.   }
  2641.  
  2642.   wizqTalkSay Zak $::lng::zakAndCelesteZ2   "sound/vo/$::LNG/scenes/optionnalConversation/zakAndCelesteZ2.ogg"
  2643.  
  2644.   # Block 2-B
  2645.   wizqQueue 2 {
  2646.     chainEvent { delay 1000 }
  2647.     wizqEntityAction Lydia standHandOnChin "wait"
  2648.   }
  2649.   
  2650.     wizqTalkSay Zak $::lng::zakAndCelesteZ3   "sound/vo/$::LNG/scenes/optionnalConversation/zakAndCelesteZ3.ogg"
  2651.  
  2652.   # Wait for Block 2 & 2-B
  2653.   wizqWaitQueue 1
  2654.   wizqWaitQueue 2
  2655.  
  2656.   # Block 3
  2657.   wizqQueue 1 {
  2658.     chainEvent { delay 2500 }
  2659.     wizqEntityAction Zak standNo "wait"
  2660.   }
  2661.  
  2662.     wizqTalkSay Zak $::lng::zakAndCelesteZ4   "sound/vo/$::LNG/scenes/optionnalConversation/zakAndCelesteZ4.ogg"
  2663.  
  2664.   # Wait for Block 3
  2665.   wizqWaitQueue 1
  2666.  
  2667.   # Block 4
  2668.   wizqQueue 1 {
  2669.     wizqEntityAction Lydia standLoseHope "wait"
  2670.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2671.   }
  2672.   
  2673.     wizqTalkSay Lydia $::lng::zakAndCelesteL1   "sound/vo/$::LNG/scenes/optionnalConversation/zakAndCelesteL1.ogg"
  2674.  
  2675.   # Block 4-B
  2676.   wizqQueue 2 {
  2677.     chainEvent { delay 2000 }
  2678.     wizqEntityAction Zak standConfusedLeft "wait"
  2679.   }
  2680.   
  2681.   wizqTalkSay Zak $::lng::zakAndCelesteZ5  "sound/vo/$::LNG/scenes/optionnalConversation/zakAndCelesteZ5.ogg"
  2682.   wizqTalkClose
  2683.  
  2684.   # Wait for Block 4 & 4-B
  2685.   wizqWaitQueue 1
  2686.   wizqWaitQueue 2
  2687.   
  2688.   chainEvent {
  2689.     unfreezePlayer
  2690.     wizEnableMouse
  2691.     wizEntityResumeFollow Zak
  2692.   }
  2693. }
  2694.  
  2695.  
  2696. ## ===================================================== ##
  2697. ##   Relation between Zak and Celeste Behavior           ##
  2698. ## ===================================================== ##
  2699. ## SCENE SET UP: Zak want to check if Lydia knows the story of the Chimera
  2700. # START IN ---> trialRoom.tOACompleted
  2701. # STOP WHEN --> The conversation has been said
  2702. # FORCED    --> Never
  2703.  
  2704. event "chimeraBehavior" {
  2705.   chainEvent {
  2706.     freezePlayer
  2707.     wizDisableMouse
  2708.     wizEntityStopFollow Zak
  2709.   }
  2710.   ozSet "chimera" "discussed"
  2711.  
  2712.   chainEvent {
  2713.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2714.   }
  2715.  
  2716.   # Block 1
  2717.   wizqQueue 1 {
  2718.     chainEvent { delay 500 }
  2719.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2720.     chainEvent { delay 500 }
  2721.     wizqEntityAction Zak standConfusedRight "wait"
  2722.   }
  2723.  
  2724.   # Block 1-B
  2725.   wizqQueue 2 {
  2726.     chainEvent { delay 1000 }
  2727.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2728.   }
  2729.   
  2730.   wizqTalkOpen
  2731.   wizqTalkSay Zak $::lng::chimeraBehaviorZ1   "sound/vo/$::LNG/scenes/optionnalConversation/chimeraBehaviorZ1.ogg"
  2732.  
  2733.   # Wait for Block 1 & 1-B
  2734.   wizqWaitQueue 1
  2735.   wizqWaitQueue 2
  2736.   
  2737.   # Block 2
  2738.   wizqQueue 1 {
  2739.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2740.     wizqEntityAction Lydia standWhat "wait"
  2741.   }
  2742.   
  2743.     wizqTalkSay Lydia $::lng::chimeraL1   "sound/vo/$::LNG/scenes/optionnalConversation/chimeraL1.ogg"
  2744.  
  2745.   # Block 2-B
  2746.   wizqQueue 2 {
  2747.     wizqEntityAction Zak standNo "wait"
  2748.     chainEvent { delay 1000 }
  2749.     wizqEntityAction Zak standYes "wait"
  2750.   }
  2751.  
  2752.   wizqTalkSay Zak $::lng::chimeraZ1  "sound/vo/$::LNG/scenes/optionnalConversation/chimeraZ1.ogg"
  2753.  
  2754.   # Wait for Block 2 & 2-B
  2755.   wizqWaitQueue 1
  2756.   wizqWaitQueue 2
  2757.  
  2758.   # Block 3
  2759.   wizqQueue 1 {
  2760.     wizqEntityAction Lydia standNo "wait"
  2761.   }
  2762.   
  2763.     wizqTalkSay Lydia $::lng::chimeraL2   "sound/vo/$::LNG/scenes/optionnalConversation/chimeraL2.ogg"
  2764.  
  2765.   # Block 3-B
  2766.   wizqQueue 2 {
  2767.     wizqEntityAction Zak standYes "wait"
  2768.   }
  2769.   
  2770.   wizqTalkSay Zak $::lng::chimeraZ2  "sound/vo/$::LNG/scenes/optionnalConversation/chimeraZ2.ogg"
  2771.  
  2772.   # Wait for Block 3 & 3-B
  2773.   wizqWaitQueue 1
  2774.   wizqWaitQueue 2
  2775.  
  2776.   # Block 4
  2777.   wizqQueue 1 {
  2778.     chainEvent { delay 2000 }
  2779.     wizqEntityAction Lydia standHandOnChin "wait"
  2780.   }
  2781.   
  2782.   wizqTalkSay Zak $::lng::chimeraZ3  "sound/vo/$::LNG/scenes/optionnalConversation/chimeraZ3.ogg"
  2783.  
  2784.   # Block 4-B
  2785.   wizqQueue 2 {
  2786.     chainEvent { delay 1000 }
  2787.     wizqEntityAction Zak standRelax "wait"
  2788.   }
  2789.   
  2790.   wizqTalkSay Zak $::lng::chimeraZ4  "sound/vo/$::LNG/scenes/optionnalConversation/chimeraZ4.ogg"
  2791.  
  2792.   # Wait for Block 4 & 4-B
  2793.   wizqWaitQueue 1
  2794.   wizqWaitQueue 2
  2795.  
  2796.   # Block 5
  2797.   wizqQueue 1 {
  2798.     chainEvent { delay 1000 }
  2799.     wizqEntityAction Lydia standTurnLeftHoldLong "wait"
  2800.   }
  2801.   
  2802.   wizqTalkSay Zak $::lng::chimeraZ5  "sound/vo/$::LNG/scenes/optionnalConversation/chimeraZ5.ogg"
  2803.  
  2804.   # Wait for Block 5
  2805.   wizqWaitQueue 1
  2806.  
  2807.   # Block 6
  2808.   wizqQueue 1 {
  2809.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2810.   }
  2811.   
  2812.     wizqTalkSay Lydia $::lng::chimeraL3   "sound/vo/$::LNG/scenes/optionnalConversation/chimeraL3.ogg"
  2813.   wizqTalkClose
  2814.  
  2815.   # Wait for Block 6
  2816.   wizqWaitQueue 1
  2817.   
  2818.   chainEvent {
  2819.     unfreezePlayer
  2820.     wizEnableMouse
  2821.     wizEntityResumeFollow Zak
  2822.   }
  2823. }
  2824.  
  2825.  
  2826. ## ===================================================== ##
  2827. ##   Mages Familiar Behavior                             ##
  2828. ## ===================================================== ##
  2829. ## SCENE SET UP: Lydia want to know more about the familiar
  2830. # START IN ---> principalSkyway.nathanielOwl
  2831. # STOP WHEN --> The conversation has been said
  2832. # FORCED    --> Never
  2833.  
  2834. event "magesFamiliarBehavior" {
  2835.   chainEvent {
  2836.     freezePlayer
  2837.     wizDisableMouse
  2838.     wizEntityStopFollow Zak
  2839.   }
  2840.   ozSet "magesFamiliar" "discussed"
  2841.  
  2842.   chainEvent {
  2843.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2844.   }
  2845.  
  2846.   # Block 1
  2847.   wizqQueue 1 {
  2848.     chainEvent { delay 500 }
  2849.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2850.     chainEvent { delay 500 }
  2851.     wizqEntityAction Lydia standTalkTwoHands "wait"
  2852.   }
  2853.  
  2854.   # Block 1-B
  2855.   wizqQueue 2 {
  2856.     chainEvent { delay 1000 }
  2857.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2858.   }
  2859.   
  2860.   wizqTalkOpen
  2861.   wizqTalkSay Lydia $::lng::magesFamiliarBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/magesFamiliarBehaviorL1.ogg"
  2862.  
  2863.   # Wait for Block 1 & 1-B
  2864.   wizqWaitQueue 1
  2865.   wizqWaitQueue 2
  2866.  
  2867.   # Block 2
  2868.   wizqQueue 1 {
  2869.     wizqEntityAction Zak standNo "wait"
  2870.   }
  2871.   
  2872.   wizqTalkSay Zak $::lng::magesFamiliarZ1  "sound/vo/$::LNG/scenes/optionnalConversation/magesFamiliarZ1.ogg"
  2873.  
  2874.   # Wait for Block 2
  2875.   wizqWaitQueue 1
  2876.  
  2877.   # Block 3
  2878.   wizqQueue 1 {
  2879.     wizqEntityAction Lydia standWhat "wait"
  2880.     chainEvent { delay 1000 }
  2881.     wizqEntityAction Lydia standHandOnChin "wait"
  2882.   }
  2883.   
  2884.     wizqTalkSay Lydia $::lng::magesFamiliarL1   "sound/vo/$::LNG/scenes/optionnalConversation/magesFamiliarL1.ogg"
  2885.   wizqTalkSay Zak $::lng::magesFamiliarZ2  "sound/vo/$::LNG/scenes/optionnalConversation/magesFamiliarZ2.ogg"
  2886.  
  2887.   # Block 3-B
  2888.   wizqQueue 2 {
  2889.     chainEvent { delay 500 }
  2890.     wizqEntityAction Zak standRelax "wait"
  2891.   }
  2892.   
  2893.   wizqTalkSay Zak $::lng::magesFamiliarZ3  "sound/vo/$::LNG/scenes/optionnalConversation/magesFamiliarZ3.ogg"
  2894.  
  2895.   # Wait for Block 3 & 3-B
  2896.   wizqWaitQueue 1
  2897.   wizqWaitQueue 2
  2898.  
  2899.   # Block 4
  2900.   wizqQueue 1 {
  2901.     chainEvent { delay 1000 }
  2902.     wizqEntityAction Zak standNo "wait"
  2903.   }
  2904.   
  2905.   wizqTalkSay Zak $::lng::magesFamiliarZ4  "sound/vo/$::LNG/scenes/optionnalConversation/magesFamiliarZ4.ogg"
  2906.  
  2907.   # Block 4-B
  2908.   wizqQueue 2 {
  2909.     wizqEntityAction Lydia standTalkHandHip "wait"
  2910.   }
  2911.   
  2912.     wizqTalkSay Lydia $::lng::magesFamiliarL2   "sound/vo/$::LNG/scenes/optionnalConversation/magesFamiliarL2.ogg"
  2913.   wizqTalkClose
  2914.  
  2915.   # Wait for Block 4 & 4-B
  2916.   wizqWaitQueue 1
  2917.   wizqWaitQueue 2
  2918.   
  2919.   chainEvent {
  2920.     unfreezePlayer
  2921.     wizEnableMouse
  2922.     wizEntityResumeFollow Zak
  2923.   }
  2924. }
  2925.  
  2926.  
  2927. ## ===================================================== ##
  2928. ##   teleport Background Behavior                        ##
  2929. ## ===================================================== ##
  2930. ## SCENE SET UP: Lydia want to know more about the hidden teleports
  2931. # START IN ---> teleportTowerBase.teleportComplete
  2932. # STOP WHEN --> The conversation has been said
  2933. # FORCED    --> Never
  2934.  
  2935. event "teleportBackgroundBehavior" {
  2936.   chainEvent {
  2937.     freezePlayer
  2938.     wizDisableMouse
  2939.     wizEntityStopFollow Zak
  2940.   }
  2941.   ozSet "teleportBackground" "discussed"
  2942.  
  2943.   chainEvent {
  2944.     wizqEntityMove Zak [calcPos [wizEntityGetPosition Lydia] [wizEntityGetPosition Zak] 10] "wait"
  2945.   }
  2946.  
  2947.   # Block 1
  2948.   wizqQueue 1 {
  2949.     chainEvent { delay 500 }
  2950.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  2951.     chainEvent { delay 500 }
  2952.     wizqEntityAction Lydia standTalkHandHip "wait"
  2953.   }
  2954.  
  2955.   # Block 1-B
  2956.   wizqQueue 2 {
  2957.     chainEvent { delay 1000 }
  2958.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  2959.   }
  2960.   
  2961.   wizqTalkOpen
  2962.   wizqTalkSay Lydia $::lng::teleportBackgroundBehaviorL1   "sound/vo/$::LNG/scenes/optionnalConversation/teleportBackgroundBehaviorL1.ogg"
  2963.  
  2964.   # Wait for Block 1-B
  2965.   wizqWaitQueue 2
  2966.  
  2967.   # Block 2-B
  2968.   wizqQueue 2 {
  2969.     chainEvent { delay 2000 }
  2970.     wizqEntityAction Zak standNo "wait"
  2971.   }
  2972.   
  2973.   wizqTalkSay Zak $::lng::teleportBackgroundZ1  "sound/vo/$::LNG/scenes/optionnalConversation/teleportBackgroundZ1.ogg"
  2974.  
  2975.   # Wait for Block 1 & 2-B
  2976.   wizqWaitQueue 1
  2977.   wizqWaitQueue 2
  2978.  
  2979.   # Block 3
  2980.   wizqQueue 1 {
  2981.     chainEvent { delay 1000 }
  2982.     wizqEntityAction Lydia standHandOnChin "wait"
  2983.   }
  2984.  
  2985.   wizqTalkSay Zak $::lng::teleportBackgroundZ2  "sound/vo/$::LNG/scenes/optionnalConversation/teleportBackgroundZ2.ogg"
  2986.  
  2987.   # Wait for Block 3
  2988.   wizqWaitQueue 1
  2989.  
  2990.   # Block 4
  2991.   wizqQueue 1 {
  2992.     wizqEntityAction Lydia standWhat "wait"
  2993.     wizqEntityAction Lydia standTalkHandHip "wait"
  2994.   }
  2995.  
  2996.     wizqTalkSay Lydia $::lng::teleportBackgroundL1   "sound/vo/$::LNG/scenes/optionnalConversation/teleportBackgroundL1.ogg"
  2997.  
  2998.   # Block 4-B
  2999.   wizqQueue 2 {
  3000.     chainEvent { delay 1500 }
  3001.     wizqEntityAction Zak standYes "wait"
  3002.   }
  3003.  
  3004.   wizqTalkSay Zak $::lng::teleportBackgroundZ3  "sound/vo/$::LNG/scenes/optionnalConversation/teleportBackgroundZ3.ogg"
  3005.  
  3006.   # Wait for Block 4 & 4-B
  3007.   wizqWaitQueue 1
  3008.   wizqWaitQueue 2
  3009.  
  3010.   # Block 5
  3011.   wizqQueue 1 {
  3012.     wizqEntityAction Lydia standHandOnChin "wait"
  3013.   }
  3014.   
  3015.   wizqTalkSay Zak $::lng::teleportBackgroundZ4  "sound/vo/$::LNG/scenes/optionnalConversation/teleportBackgroundZ4.ogg"
  3016.   wizqTalkClose
  3017.  
  3018.   # Wait for Block 5
  3019.   wizqWaitQueue 1
  3020.   
  3021.   chainEvent {
  3022.     unfreezePlayer
  3023.     wizEnableMouse
  3024.     wizEntityResumeFollow Zak
  3025.   }
  3026. }
  3027.  
  3028.  
  3029.