home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2006 April / SGP.iso / dema / Keepsake-Demo-en-li-v1.0.exe / res / scripts / crescentCoastWaterway.tcl < prev    next >
Text File  |  2005-12-07  |  40KB  |  1,390 lines

  1. ################################################################################
  2. #                                                                             ##
  3. #    file   crescentCoastWaterway.tcl                                         ##
  4. #    brief  Events for the Crescent Coast Waterway.                           ##
  5. #                                                                             ##
  6. ################################################################################
  7.  
  8. ## ===================================================== ##
  9. ##   Loading script from source                          ##
  10. ## ===================================================== ##
  11.  
  12. global SCRIPTS
  13. source "$SCRIPTS/common.tcl"
  14.  
  15. source "[AUTO]/crescentCoastWaterway.mvwrap.tcl"
  16. source "[PUZZLES]/crescentCoastWaterway.camera.tcl"
  17. source "[PUZZLES]/crescentCoastWaterway.puzzle.tcl"
  18.  
  19.  
  20. ## ===================================================== ##
  21. ##   Initialization                                      ##
  22. ## ===================================================== ##
  23. event "init" {
  24.   zakFollowDist 30
  25.   ozSet "crescentCoastWaterwayRoom" "visited"
  26.  
  27.   SetAmbient 2d ambiance/basement "0 0 0" 0 0
  28.   SetAmbient 3d sfx/machineA "541.508 -17.481 274.492" 30 0 0.6
  29.   SetAmbient 3d sfx/machineB "584.563 22.187 323.312"  30 0 0.6
  30.   SetAmbient 3d sfx/machineC "634.052 22.187 318.092"  30 0 0.6
  31.   SetAmbient 3d sfx/machineD "589.581 -16.969 267.858" 30 0 0.6
  32.   SetAmbient 3d sfx/machineE "605.908 -30.502 304.112" 30 0 0.6
  33.   SetAmbient 3d sfx/fallsFar "1500 -27 -461" 10000 0
  34.  
  35.   SetAmbient 3d sfx/millWheel "594.459 -21.683 372.964" 30 1 0.6
  36. }
  37.  
  38.  
  39. ################################################################################
  40. ## ========================================================================== ##
  41. ##   DOOR BLOCKING & PUZZLE SECTION                                           ##
  42. ## ========================================================================== ##
  43. ################################################################################
  44.  
  45.  
  46. ## ===================================================== ##
  47. ##   use plants                                          ##
  48. ## ===================================================== ##
  49.  
  50. event "usePlants" {
  51.   eventState [wizEventStart "usePlants"]
  52.  
  53.   if { [ozGet "puzzleZak"] == "complete" } {
  54.     # Block 1
  55.     wizqQueue 2 {
  56.       oz'event {wizEntityStopFollow Zak}
  57.       wizqEntityMove Zak "491.6 -6 391.9" "wait"
  58.       wizqEntityOrientation Zak 150
  59.       oz'event {wizEntityResumeFollow Zak}
  60.     }
  61.   }
  62.  
  63.   wizqEntityMove Lydia "498 -6.03 398" "crescentCoastWaterway.plantsBehavior" 2
  64.  
  65.   wizqEventEnd "usePlants"
  66. }
  67.  
  68.  
  69. ## ===================================================== ##
  70. ##   Leaves                                              ##
  71. ## ===================================================== ##
  72. ## trigger is when the player examine the leaves
  73.  
  74. event "plantsBehavior" {
  75.   if { [ozGet "puzzleZak"] == "complete" } {
  76.     # Block 1
  77.     wizqQueue 2 {
  78.       wizqEntityMove Zak "491.6 -6 391.9" "wait"
  79.       wizqEntityOrientation Zak 150
  80.     }
  81.  
  82.     oz'event {wizEntityStopFollow Zak}
  83.   }
  84.  
  85.   oz'event {wizDisableMouse}
  86.   wizqEntityOrientation Lydia 170 "wait"
  87.   wizqEntitySetCycle Lydia standCycleNormal
  88.  
  89.   # Wait for Block 1
  90.   wizqWaitQueue 2
  91.  
  92.   if {  [getVar "itemPagesYewlockLeaves"] == "pickedUp" } {
  93.     if { [getVar "potionMaking"] == "initiated" && [getVar "itemCirclet"] == "pickedUp" } {
  94.       chainEvent {
  95.         freezePlayer
  96.         wizDisableMouse
  97.       }
  98.       chainCallEvent "plantsZoomIn"
  99.       chainCallEvent "leafInitiated"
  100.  
  101.  
  102.     } elseif { [getVar "potionMaking"] == "initiated" && [getVar "itemCirclet"] == "pickedUp" && [getVar "itemNoteBook"] == "pickedUp" } {
  103.       chainEvent {
  104.         freezePlayer
  105.         wizDisableMouse
  106.       }
  107.       chainCallEvent "plantsZoomIn"
  108.       chainCallEvent "leafNeeded"
  109.  
  110.     } elseif { [getVar "itemCirclet"] == "" && [getVar "itemNoteBook"] == "" } {
  111.       chainEvent {
  112.         freezePlayer
  113.         wizDisableMouse
  114.       }
  115.       chainCallEvent "plantsZoomIn"
  116.       chainCallEvent "leafDrawing"
  117.  
  118.     } elseif { [getVar "itemCirclet"] == "pickedUp" || [getVar "itemNoteBook"] == "pickedUp" } {
  119.       chainEvent {
  120.         freezePlayer
  121.         wizDisableMouse
  122.       }
  123.       chainCallEvent "plantsZoomIn"
  124.       chainCallEvent "leafMightHelp"
  125.     }
  126.  
  127.   } elseif { [getVar "leafDontCare"] == "" } {
  128.     callEvent "leafDontCare"
  129.  
  130.   } elseif { [getVar "leafDontCare"] == "ok" } {
  131.     callEvent "leafDontNeed"
  132.   }
  133.  
  134.   oz'event {wizEnableMouse}
  135.   oz'event {wizEntityResumeFollow Zak}
  136. }
  137.  
  138.  
  139. ## ===================================================== ##
  140. ##   use red plant                                       ##
  141. ## ===================================================== ##
  142.  
  143. event "useRedPlant" {
  144.   ozSet "itemRedYewlock" "pickedUp"
  145.   ozSet "itemYewlockLeaf" "pickedUp"
  146.   ozqSound::NewFX  "sound/sfx/yewlockPickup.ogg"
  147.   setCrossfadeCamera "redTakenPlants"
  148.   wizhCameraChange
  149.  
  150.   chainEvent { delay 1000 }
  151.   chainCallEvent "plantsZoomOut"
  152.  
  153.   chainEvent {
  154.     ozqSound::NewFX  "sound/interface/itemPickUp.ogg"
  155.     iq'showdesc yewlockLeavesRed
  156.   }
  157. }
  158.  
  159.  
  160. ## ===================================================== ##
  161. ##   use blue plant                                      ##
  162. ## ===================================================== ##
  163.  
  164. event "useBluePlant" {
  165.   ozSet "itemBlueYewlock" "pickedUp"
  166.   ozSet "itemYewlockLeaf" "pickedUp"
  167.   ozqSound::NewFX  "sound/sfx/yewlockPickup.ogg"
  168.   setCrossfadeCamera "blueTakenPlants"
  169.   wizhCameraChange
  170.  
  171.   chainEvent { delay 1000 }
  172.   chainCallEvent "plantsZoomOut"
  173.  
  174.   chainEvent {
  175.     ozqSound::NewFX  "sound/interface/itemPickUp.ogg"
  176.     iq'showdesc yewlockLeavesBlue
  177.   }
  178. }
  179.  
  180.  
  181. ## ===================================================== ##
  182. ##   use white plant                                     ##
  183. ## ===================================================== ##
  184.  
  185. event "useWhitePlant" {
  186.   ozSet "itemWhiteYewlock" "pickedUp"
  187.   ozSet "itemYewlockLeaf" "pickedUp"
  188.   ozqSound::NewFX  "sound/sfx/yewlockPickup.ogg"
  189.   setCrossfadeCamera "whiteTakenPlants"
  190.   wizhCameraChange
  191.  
  192.   chainEvent { delay 1000 }
  193.   chainCallEvent "plantsZoomOut"
  194.  
  195.   chainEvent {
  196.     ozqSound::NewFX  "sound/interface/itemPickUp.ogg"
  197.     iq'showdesc yewlockLeavesWhite
  198.   }
  199. }
  200.  
  201.  
  202. ## ===================================================== ##
  203. ##   use yellow plant                                    ##
  204. ## ===================================================== ##
  205.  
  206. event "useYellowPlant" {
  207.   ozSet "itemYellowYewlock" "pickedUp"
  208.   ozSet "itemYewlockLeaf" "pickedUp"
  209.   ozqSound::NewFX  "sound/sfx/yewlockPickup.ogg"
  210.   setCrossfadeCamera "yellowTakenPlants"
  211.   wizhCameraChange
  212.  
  213.   chainEvent { delay 1000 }
  214.   chainCallEvent "plantsZoomOut"
  215.  
  216.   chainEvent {
  217.     ozqSound::NewFX  "sound/interface/itemPickUp.ogg"
  218.     iq'showdesc yewlockLeavesYellow
  219.   }
  220. }
  221.  
  222.  
  223. ## ===================================================== ##
  224. ##   mill wheel Puzzle                                   ##
  225. ## ===================================================== ##
  226.  
  227. event "useWheelPuzzleBehavior" {
  228.   if { [ozGet "puzzleZak"] == "complete" } {
  229.     # Block 1
  230.     wizqQueue 2 {
  231.       wizqEntityWalk Zak "598.8 -16.9 426.1" "wait"
  232.       wizqEntityOrientation Zak 230 "wait"
  233.     }
  234.  
  235.     oz'event {wizEntityStopFollow Zak}
  236.   }
  237.  
  238.   oz'event {wizDisableMouse}
  239.   wizqEntityOrientation Lydia 270 "wait"
  240.   wizqEntitySetCycle Lydia standCycleNormal
  241.  
  242.   # Wait for Block 1
  243.   wizqWaitQueue 2
  244.  
  245.   if { [getVar "millWheelBig"] == "" } {
  246.     callEvent "millWheelBig"
  247.  
  248.   } else {
  249.     wheelPuzzleZoomIn
  250.   }
  251.  
  252.   oz'event {wizEnableMouse}
  253.   oz'event {wizEntityResumeFollow Zak}
  254. }
  255.  
  256.  
  257. ################################################################################
  258. ## ========================================================================== ##
  259. ##   MOVEMENT                                                                 ##
  260. ## ========================================================================== ##
  261. ################################################################################
  262.  
  263.  
  264. ## ===================================================== ##
  265. ##   To Elvandar Pathway                                 ##
  266. ## ===================================================== ##
  267.  
  268. event "toElvandarPathway" {
  269.   setCamera "forest"
  270.   wizhCameraChange
  271.   
  272.   wizqDisableMouse
  273.   
  274.   chainEvent { standardFadeout }
  275.  
  276.   chainEvent { wizEntitySetPositionRelative Lydia "787.6 -21.7 483" "794.6 -22.1 463" "4828.2 14.2 -201.8" "4849.2 11.4 -212.8" }
  277.   chainEvent { setScene "elvandarPathway" world }
  278.  
  279.   chainEvent { wizEntitySetPosition Zak "4847.2 12.9 -194.8" }
  280.   chainEvent { wizEntitySetOrientation Zak 130 }
  281.  
  282.   chainEvent { wizEntitySetOrientation Lydia 150 }
  283.   wizqEntitySetCycle Lydia standCycleNormal
  284.  
  285.   chainEvent {delay 1}
  286.   chainEvent { standardFadein }
  287.   
  288.   wizqEnableMouse
  289. }
  290.  
  291.  
  292. ## ===================================================== ##
  293. ##   transForest                                         ##
  294. ## ===================================================== ##
  295.  
  296. event "transForest" {
  297.   wizEntityMoveXRelative Lydia 0.68 0.87 "810 -21.6 490" "810 -22.2 465.4"
  298. }
  299.  
  300.  
  301. ## ===================================================== ##
  302. ##   transWallCrack                                      ##
  303. ## ===================================================== ##
  304.  
  305. event "transWallCrack" {
  306.   wizEntityMove Lydia "308.6 -6.03 466.9" "crescentCoastWaterway.toBasement" 2
  307. }
  308.  
  309.  
  310. ## ===================================================== ##
  311. ##   toBasement                                          ##
  312. ## ===================================================== ##
  313.  
  314. event "toBasement" {
  315.   wizqDisableMouse
  316.  
  317.   chainEvent { standardFadeout }
  318.  
  319.   chainEvent { wizEntitySetPosition Lydia "285.1 16.8 496.5" }
  320.   chainEvent { wizEntitySetPosition Zak "281.1 16.8 496.5" }
  321.  
  322.   chainEvent { setScene "basement" worldBottom }
  323.  
  324.   chainEvent { wizEntitySetOrientation Lydia 180 }
  325.   wizqEntitySetCycle Lydia standCycleNormal
  326.  
  327.   chainEvent { wizEntitySetOrientation Zak 170 }
  328.   wizqEntitySetCycle Lydia standCycleNormal
  329.  
  330.   chainEvent { standardFadein }
  331.   
  332.   wizqEnableMouse
  333. }
  334.  
  335.  
  336. ## ===================================================== ##
  337. ##   toMill                                              ##
  338. ## ===================================================== ##
  339.  
  340. event "toMill" {
  341.   if { [ozGet "puzzleZak"] == "complete" } {
  342.     # Block 1
  343.     wizqQueue 2 {
  344.       wizqEntityMove Zak "558.6 -16.9 353" "wait"
  345.       wizqEntityOrientation Zak 340
  346.     }
  347.  
  348.     oz'event {wizEntityStopFollow Zak}
  349.   }
  350.  
  351.   oz'event {wizDisableMouse}
  352.   wizqEntityOrientation Lydia 10 "wait"
  353.   wizqEntitySetCycle Lydia standCycleNormal
  354.  
  355.   # Wait for Block 1
  356.   wizqWaitQueue 2
  357.       
  358.   wizqDisableMouse
  359.   if { [getVar "puzzleMillTools"] == "" } {
  360.     callEvent "puzzleMillToolsBehavior"
  361.  
  362.   } else {
  363.     eventState [wizEventStart "toMill"]
  364.  
  365.     chainEvent { freezePlayer }
  366.  
  367.     wizEntityOrientation Lydia 10
  368.  
  369.     Play3DSound "characters/lydia/smallDoorUnlocked"
  370.     wizqEntityAction Lydia standOpenDoorLeftHand
  371.     chainEvent { delay 2200 }
  372.  
  373.     chainEvent { standardFadeout }
  374.     chainEvent { delay 1000 }
  375.  
  376.     chainEvent { wizEntitySetPosition Lydia "554.1 -16.2 326.3" }
  377.     chainEvent { wizEntitySetPosition Zak "561.1 -16.2 324.5" }
  378.  
  379.     chainEvent { setScene "mill" worldDown }
  380.  
  381.     chainEvent { wizEntitySetOrientation Lydia 20 }
  382.     wizqEntitySetCycle Lydia standCycleNormal
  383.  
  384.     chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  385.     wizqEntitySetCycle Lydia standCycleNormal
  386.  
  387.     chainEvent { standardFadein }
  388.     chainEvent { unfreezePlayer }
  389.  
  390.     wizqEventEnd "toMill"
  391.   }
  392.  
  393.   oz'event {wizEnableMouse}
  394.   oz'event {wizEntityResumeFollow Zak}
  395. }
  396.  
  397.  
  398. ## ===================================================== ##
  399. ##   transBarrel                                         ##
  400. ## ===================================================== ##
  401.  
  402. event "transBarrel" {
  403.   eventState [wizEventStart "transBarrel"]
  404.  
  405.   if { [ozGet "puzzleZak"] == "complete" } {
  406.     # Block 1
  407.     wizqQueue 2 {
  408.       oz'event {wizEntityStopFollow Zak}
  409.       wizqEntityMove Zak "558.6 -16.9 353" "wait"
  410.       wizqEntityOrientation Zak 340
  411.       oz'event {wizEntityResumeFollow Zak}
  412.     }
  413.   }
  414.  
  415.   wizqEntityMove Lydia "552.6 -16.8 339" "crescentCoastWaterway.toMill" 2
  416.  
  417.   wizqEventEnd "transBarrel"
  418. }
  419.  
  420.  
  421. ## ===================================================== ##
  422. ##   useWheelPuzzle                                      ##
  423. ## ===================================================== ##
  424.  
  425. event "lookWheelPuzzle" {
  426.   eventState [wizEventStart "lookWheelPuzzle"]
  427.  
  428.   if { [ozGet "puzzleZak"] == "complete" } {
  429.     # Block 1
  430.     wizqQueue 2 {
  431.       oz'event {wizEntityStopFollow Zak}
  432.       wizqEntityWalk Zak "598.8 -16.9 426.1" "wait"
  433.       wizqEntityOrientation Zak 230 "wait"
  434.       oz'event {wizEntityResumeFollow Zak}
  435.     }
  436.   }
  437.  
  438.   wizqEntityMove Lydia "587.6 -16.9 438" "crescentCoastWaterway.useWheelPuzzleBehavior" 2
  439.  
  440.   wizqEventEnd "lookWheelPuzzle"
  441. }
  442.  
  443.  
  444. ## ===================================================== ##
  445. ##   trans Mill Wheel                                    ##
  446. ## ===================================================== ##
  447.  
  448. event "transMillWheel" {
  449.   wizEntityMove Lydia "544.6 -16.8 390"
  450. }
  451.  
  452.  
  453. ## ===================================================== ##
  454. ##   trans Gears                                         ##
  455. ## ===================================================== ##
  456.  
  457. event "transGears" {
  458.   wizEntityMove Lydia "583.6 -16.9 423.9"
  459. }
  460.  
  461.  
  462. ################################################################################
  463. ## ========================================================================== ##
  464. ## ANIMATION & SPECIAL CAMERA SECTION                                         ##
  465. ## ========================================================================== ##
  466. ################################################################################
  467.  
  468.  
  469. ## ===================================================== ##
  470. ##   Pendant is breaking                                 ##
  471. ## ===================================================== ##
  472.  
  473. event "pendantBreakingMovie" {
  474.   ozSet "puzzleBrokePendant" "complete"
  475.  
  476.   chainEvent {
  477.     #all of this end in pendantBreak
  478.     freezePlayer
  479.     wizDisableMouse
  480.     wizEntityStopFollow Zak
  481.     wizEntitySetPosition Zak "311.6 -6.02 463.9"
  482.     wizEntitySetOrientation Zak 90
  483.     wizEntitySetPosition Lydia "317.8 -6 468.2"
  484.     chainEvent { oz'track::play $::music_track "sound/music/pendant.ogg" }
  485.     wizEntitySetOrientation Lydia 80
  486.     wizEntitySetCycle Lydia crouchCycleNormal
  487.     setScene "crescentCoastWaterway" world
  488.     setCamera "brokenWatch"
  489.     wizhCameraChange
  490.     hRemoveBack
  491.     wizEntityShow Lydia
  492.     wizEntityShow Zak
  493.   }
  494.  
  495.   chainEvent { delay 1500 }
  496.   ozqSound::NewFX "/sound/sfx/lydiaFall.ogg"
  497.   chainEvent { oz'track::play $::music_track "sound/music/pendant.ogg" }
  498.  
  499.   #chainEvent { delay 500 }
  500.  
  501.   chainEvent { standardFadein }
  502.  
  503.   chainCallEvent "pendantBreak"
  504. }
  505.  
  506.  
  507. ## ===================================================== ##
  508. ##   Moving the shovels                                  ##
  509. ## ===================================================== ##
  510.  
  511. event "millToolsMovie" {
  512.   ozSet "puzzleMillTools" "complete"
  513.  
  514.   chainEvent {delay 1}
  515.   chainEvent {standardFadeout}
  516.   chainEvent {
  517.     freezePlayer
  518.     wizDisableMouse
  519.     wizEntityStopFollow Zak
  520.     setCamera "barrelNoBlock"
  521.     wizhCameraChange
  522.     hRemoveBack
  523.     wizEntityShow Lydia
  524.     wizEntityShow Zak
  525.   }
  526.  
  527.   Play3DSound "sfx/removeTools"
  528.   oz'event {oz'delay 3.0}
  529.  
  530.   chainEvent {standardFadein}
  531.  
  532.   chainEvent {
  533.     showInterface
  534.     showMouse
  535.     stopMovie
  536.     unfreezePlayer
  537.     wizEnableMouse
  538.     wizEntityResumeFollow Zak
  539.   }
  540. }
  541.  
  542.  
  543. ## ===================================================== ##
  544. ##   The wheel is turning!                               ##
  545. ## ===================================================== ##
  546.  
  547. event "millWheelSolvedMovie" {
  548.   chainEvent {
  549.     freezePlayer
  550.     wizDisableMouse
  551.     wizEntityStopFollow Zak
  552.     wizEntitySetPosition Zak "598.8 -16.9 426.1"
  553.     wizEntityLookAt Zak [wizEntityGetPosition Lydia]
  554.     wizEntitySetCycle Zak sitCycleNormal
  555.     setCamera "gears"
  556.     wizhCameraChange
  557.     hRemoveBack
  558.     wizEntityShow Lydia
  559.     wizEntityShow Zak
  560.   }
  561.  
  562.   chainEvent {
  563.     showInterface
  564.     showMouse
  565.     unfreezePlayer
  566.     wizEnableMouse
  567.     wizEntityResumeFollow Zak
  568.   }
  569.   callEvent "millWheelSolved"
  570. }
  571.  
  572.  
  573. ## ===================================================== ##
  574. ##   Plants Zoom In                                      ##
  575. ## ===================================================== ##
  576.  
  577. event "plantsZoomIn" {
  578.   wizqEntityChangeCycle Lydia crouchCycleNormal standToCrouch "wait"
  579.   wizqZoomIn "plantsCloseUp" "crescentCoastWaterway.plantsZoomOut"
  580. }
  581.  
  582.  
  583. ## ===================================================== ##
  584. ##   Pkants Zoom Out                                     ##
  585. ## ===================================================== ##
  586.  
  587. event "plantsZoomOut" {
  588.   chainEvent {
  589.     freezePlayer
  590.     wizDisableMouse
  591.     hRemoveBack
  592.   }
  593.   
  594.   wizqEntitySetCycle Lydia crouchCycleNormal
  595.     
  596.   wizqZoomOut [cameraStairs]
  597.   chainEvent { hRemoveBack }
  598.   wizqDisableMouse
  599.   
  600.   chainEvent { delay 100 }
  601.   wizqEntityChangeCycle Lydia standCycleNormal crouchToStand "wait"
  602.  
  603.   chainEvent {
  604.     unfreezePlayer
  605.     wizEnableMouse
  606.     MainEnableSidebar
  607.   }
  608. }
  609.  
  610.  
  611. ## ===================================================== ##
  612. ##   use plants Stairs Camera proc                       ##
  613. ## ===================================================== ##
  614.  
  615. proc cameraStairs { } {
  616.   if { [getVar "itemBlueYewlock"] == "pickedUp" } {
  617.     return "blueTakenStairs"
  618.   }
  619.  
  620.   if {[getVar "itemRedYewlock"] == "pickedUp" } {
  621.     return "redTakenStairs"
  622.   }
  623.  
  624.   if {[getVar "itemWhiteYewlock"] == "pickedUp" } {
  625.     return "whiteTakenStairs"
  626.   }
  627.  
  628.   if {[getVar "itemYellowYewlock"] == "pickedUp" } {
  629.     return "yellowTakenStairs"
  630.   }
  631.  
  632.   return "stairs"
  633. }
  634.  
  635.  
  636. ## ===================================================== ##
  637. ##   Stairs Camera                                       ##
  638. ## ===================================================== ##
  639.  
  640. event "stairs" {
  641.   setCamera [cameraStairs]
  642.   wizhCameraChange
  643. }
  644.  
  645.  
  646. ## ===================================================== ##
  647. ##   wall Crack camera                                   ##
  648. ## ===================================================== ##
  649.  
  650. event "wallCrack" {
  651.   setCamera "wallCrack"
  652.   wizhCameraChange
  653.   
  654.   if { [ozGet "puzzleBrokePendant"] == "complete" } {
  655.     wizEntityResumeFollow Zak
  656.   }
  657. }
  658.  
  659.  
  660. ## ===================================================== ##
  661. ##   barrel camera                                       ##
  662. ## ===================================================== ##
  663.  
  664. event "barrel" {
  665.   if { [getVar "puzzleMillTools"] == "complete" } {
  666.     setCamera "barrelNoBlock"
  667.     wizhCameraChange
  668.   } else {
  669.     setCamera "barrel"
  670.     wizhCameraChange
  671.   }
  672. }
  673.  
  674.  
  675. ## ===================================================== ##
  676. ##   mill wheel camera                                   ##
  677. ## ===================================================== ##
  678.  
  679. event "millWheel" {
  680.   if { [getVar "puzzleMillTools"] == "complete" } {
  681.     setCamera "millWheelNoBlock"
  682.     wizhCameraChange
  683.   } else {
  684.     setCamera "millWheel"
  685.     wizhCameraChange
  686.   }
  687. }
  688.  
  689.  
  690. ## ===================================================== ##
  691. ##   Wine Cave Puzzle Zoom In                            ##
  692. ## ===================================================== ##
  693.  
  694. proc wheelPuzzleZoomIn { } {
  695.     wizqZoomIn puzzleMillWeightCloseUp "crescentCoastWaterway.wheelPuzzleZoomOut"
  696. }
  697.  
  698.  
  699. ## ===================================================== ##
  700. ##   Wine Cave Puzzle Zoom Out                           ##
  701. ## ===================================================== ##
  702.  
  703. event "wheelPuzzleZoomOut" {
  704.   zq'reset 0
  705.   chainEvent {wizDisableMouse}
  706.   wizqZoomOut gears
  707.   chainEvent { hRemoveBack }
  708.   chainEvent {wizEnableMouse}
  709. }
  710.  
  711.  
  712. ## ===================================================== ##
  713. ##   door frame camera                                   ##
  714. ## ===================================================== ##
  715.  
  716. event "doorFrame" {
  717.   wizEntityResumeFollow Zak
  718.   setCamera "doorFrame"
  719.   wizhCameraChange
  720. }
  721.  
  722.  
  723. ## ===================================================== ##
  724. ##   river camera                                        ##
  725. ## ===================================================== ##
  726.  
  727. event "river" {
  728.   wizEntityResumeFollow Zak
  729.   setCamera "river"
  730.   wizhCameraChange
  731. }
  732.  
  733.  
  734. ## ===================================================== ##
  735. ##   forest camera                                       ##
  736. ## ===================================================== ##
  737.  
  738. event "forest" {
  739.   setCamera "forest"
  740.   wizhCameraChange
  741.  
  742.   if { [ozGet "minotaurMazeFigurines"] == "pickedUp" } {
  743.     ozSet "puzzleMustavioPathway" "complete"
  744.     wizEntityHide Npc
  745.  
  746.   } else {
  747.     wizEntityHide Npc
  748.   }
  749. }
  750.  
  751.  
  752. ################################################################################
  753. ## ========================================================================== ##
  754. ##   NPC DIALOGUE SECTION                                                     ##
  755. ## ========================================================================== ##
  756. ################################################################################
  757.  
  758.  
  759. # NONE FOR NOW
  760.  
  761.  
  762. ################################################################################
  763. ## ========================================================================== ##
  764. ##   FORCED DIALOGUE SECTION                                                  ##
  765. ## ========================================================================== ##
  766. ################################################################################
  767.  
  768.  
  769. ## ===================================================== ##
  770. ##   Time Stop                                           ##
  771. ## ===================================================== ##
  772. ## trigger is when the player enter the Crescent Coast
  773. ## Waterway for the first time
  774.  
  775. event "pendantBreak" {
  776.   checkConversation "pendantBreak" {
  777.     wizqEntityStopFollow Zak
  778.  
  779.     # Block 1
  780.     wizqQueue 1 {
  781.       chainEvent { delay 2000 }
  782.  
  783.       wizqZoomOut "wallCrack"
  784.       chainEvent { hRemoveBack }
  785.       wizqDisableMouse
  786.  
  787.       Play3DSound "characters/lydia/lydiaPendantPickup"
  788.       wizqEntityAction Lydia "crouchTake" "wait"
  789.       wizqEntityChangeCycle Lydia standCycleNormal crouchToStand "wait"
  790.     }
  791.  
  792.     # Block 1-B
  793.     wizqQueue 2 {
  794.       chainEvent { delay 2500 }
  795.  
  796.       wizqEntityWalk Zak "320 -6 463.5" "wait"
  797.       chainEvent { wizEntityLookAt Zak "322.2 -6 468.2" }
  798.       ozqSound::NewFX  "sound/characters/Zak/snif.ogg"
  799.       wizqEntityAction Zak standSniffing "wait"
  800.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  801.       wizqEntitySetCycle Zak sitCycleNormal
  802.     }
  803.  
  804.     wizqTalkOpen
  805.     wizqTalkSay Lydia $::lng::pendantBreakL1  "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakL1.ogg"
  806.     wizqTalkSay Zak $::lng::pendantBreakZ1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakZ1.ogg"
  807.     wizqTalkClose
  808.     
  809.     # Wait for Block 1 & 1-B
  810.     wizqWaitQueue 1
  811.     wizqWaitQueue 2
  812.  
  813.     wizqEntityChangeWalkSpeed Zak 8
  814.     
  815.     # Block 2
  816.     wizqQueue 1 {
  817.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  818.       wizqEntityAction Lydia standTalkTwoHands "wait"
  819.     }
  820.  
  821.     wizqTalkOpen
  822.     wizqTalkSay Lydia $::lng::pendantBreakL2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakL2.ogg"
  823.  
  824.     # Block 2-B
  825.     wizqQueue 2 {
  826.       chainEvent { delay 1000 }
  827.       wizqEntityAction Zak sitYes "wait"
  828.     }
  829.  
  830.     wizqTalkSay Zak $::lng::pendantBreakZ2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakZ2.ogg"
  831.  
  832.     # Wait for Block 2 & 2-B
  833.     wizqWaitQueue 1
  834.     wizqWaitQueue 2
  835.     
  836.     # Block 3
  837.     wizqQueue 1 {
  838.       wizqEntityWalk Lydia "361.6 -6 453" "wait"
  839.       wizqEntityWalk Lydia "386.6 -6 432"
  840.     }
  841.  
  842.     # Block 3-B
  843.     wizqQueue 2 {
  844.       wizqEntityWalk Zak "350.6 -6 451" "wait"
  845.       wizqEntityWalk Zak "380.6 -6 422"
  846.     }
  847.  
  848.     wizqTalkSay Lydia $::lng::pendantBreakL3   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakL3.ogg"
  849.  
  850.    # Wait for Block 3 & 3-B
  851.     wizqWaitQueue 1
  852.     wizqWaitQueue 2
  853.  
  854.     # Block 4
  855.     wizqQueue 1 {
  856.       wizqEntityWalk Lydia "386.6 -6 432" "wait"
  857.       wizqEntityWalk Lydia "389.6 -6 424" "wait"
  858.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  859.     }
  860.  
  861.     # Block 4-B
  862.     wizqQueue 2 {
  863.       chainEvent { delay 1000 }
  864.       wizqEntityWalk Zak "380.6 -6 422" "wait"
  865.       wizqEntityWalk Zak "392 -6 409.4" "wait"
  866.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  867.     }
  868.     
  869.     wizqTalkSay Zak $::lng::pendantBreakZ3   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakZ3.ogg"
  870.  
  871.    # Wait for Block 4 & 4-B
  872.     wizqWaitQueue 1
  873.     wizqWaitQueue 2
  874.     
  875.     # Block 5
  876.     wizqQueue 1 {
  877.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  878.       wizqEntityAction Lydia standTalkHandHip "wait"
  879.     }
  880.  
  881.     # Block 5-B
  882.     wizqQueue 2 {
  883.       chainEvent { delay 500 }
  884.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  885.     }
  886.     
  887.     wizqTalkSay Lydia $::lng::pendantBreakL4   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakL4.ogg"
  888.  
  889.     # Wait for Block 6
  890.     wizqWaitQueue 1
  891.  
  892.     # Block 6
  893.     wizqQueue 1 {
  894.       wizqEntityAction Lydia standDisbelief "wait"
  895.     }
  896.     
  897.     wizqTalkSay Lydia $::lng::pendantBreakL5   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakL5.ogg"
  898.  
  899.     # Wait for Block 6 & 5-B
  900.     wizqWaitQueue 1
  901.     wizqWaitQueue 2
  902.  
  903.     wizqEntityChangeWalkSpeed Zak 16
  904.  
  905.     # Block 7
  906.     wizqQueue 1 {
  907.       chainEvent { delay 1000 }
  908.       wizqEntityAction Lydia standArmCross "wait"
  909.     }
  910.  
  911.     # Block 7-B
  912.     wizqQueue 2 {
  913.       chainEvent { delay 1500 }
  914.       wizqEntityAction Zak standYes "wait"
  915.     }
  916.     
  917.     wizqTalkSay Zak $::lng::pendantBreakZ4   "sound/vo/$::LNG/scenes/crescentCoastWaterway/pendantBreakZ4.ogg"
  918.     wizqTalkClose
  919.  
  920.     # Wait for Block 7 & 7-B
  921.     wizqWaitQueue 1
  922.     wizqWaitQueue 2
  923.   }
  924.   
  925.   if { [getVar "specialPendant"] == "" } {
  926.     setEventPriority optionnalConversation.specialPendantBehavior long
  927.     ozSet "specialPendant" "initiated"
  928.   }
  929.  
  930.   chainEvent {standardFadeout}
  931.  
  932.   chainEvent {
  933.     set ::img1 [wq'widget::new "walkthru/[MODE]/img/thankyou.jpg" -alpha 1 -foreground -depth -0.965]
  934.   }
  935.  
  936.   chainEvent {standardFadein}
  937.   chainEvent {oz'delay 5}
  938.   chainEvent {standardFadeout}
  939.   chainEvent {delete $::img1}
  940.   chainEvent {closeGameNoSave}
  941. }
  942.  
  943.  
  944. ## ===================================================== ##
  945. ##   Leaves needed                                       ##
  946. ## ===================================================== ##
  947.  
  948. event "leafNeeded" {
  949.   checkConversation "leafNeeded" {
  950.     wizqTalkOpen
  951.     wizqTalkSay Lydia $::lng::leafNeededL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededL1.ogg"
  952.     wizqTalkSay Lydia $::lng::leafNeededL2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededL2.ogg"
  953.     wizqTalkSay Zak $::lng::leafNeededZ1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededZ1.ogg"
  954.     wizqTalkSay Lydia $::lng::leafNeededL3   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededL3.ogg"
  955.     wizqTalkSay Zak $::lng::leafNeededZ2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededZ2.ogg"
  956.     wizqTalkClose
  957.   }
  958.   
  959.   chainEvent {
  960.     MainDisableSidebar
  961.     MainDisableTalk
  962.   }
  963.     
  964.   chainEvent {
  965.     unfreezePlayer
  966.     wizEnableMouse
  967.   }
  968. }
  969.  
  970.  
  971. ## ===================================================== ##
  972. ##   Leaves Initiated                                    ##
  973. ## ===================================================== ##
  974.  
  975. event "leafInitiated" {
  976.   checkConversation "leafInitiated" {
  977.     wizqTalkOpen
  978.     wizqTalkSay Lydia $::lng::leafNeededL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededL1.ogg"
  979.     wizqTalkSay Lydia $::lng::leafInitiatedL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafInitiatedL1.ogg"
  980.     wizqTalkSay Zak $::lng::leafNeededZ1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededZ1.ogg"
  981.     wizqTalkSay Lydia $::lng::leafNeededL3   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededL3.ogg"
  982.     wizqTalkSay Zak $::lng::leafNeededZ2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafNeededZ2.ogg"
  983.     wizqTalkClose
  984.   }
  985.  
  986.   chainEvent {
  987.     MainDisableSidebar
  988.     MainDisableTalk
  989.   }
  990.  
  991.   chainEvent {
  992.     unfreezePlayer
  993.     wizEnableMouse
  994.   }
  995. }
  996.  
  997.  
  998. ## ===================================================== ##
  999. ##   Leaves Drawing                                      ##
  1000. ## ===================================================== ##
  1001.  
  1002. event "leafDrawing" {
  1003.   checkConversation "leafDrawing" {
  1004.     wizqTalkOpen
  1005.     wizqTalkSay Lydia $::lng::leafDrawingL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafDrawingL1.ogg"
  1006.     wizqTalkSay Lydia $::lng::leafDrawingL2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafDrawingL2.ogg"
  1007.     wizqTalkClose
  1008.   }
  1009.  
  1010.   chainEvent {
  1011.     MainDisableSidebar
  1012.     MainDisableTalk
  1013.   }
  1014.  
  1015.   chainEvent {
  1016.     unfreezePlayer
  1017.     wizEnableMouse
  1018.   }
  1019. }
  1020.  
  1021.  
  1022. ## ===================================================== ##
  1023. ##   Leaves Might Help                                   ##
  1024. ## ===================================================== ##
  1025.  
  1026. event "leafMightHelp" {
  1027.   checkConversation "leafMightHelp" {
  1028.     wizqTalkOpen
  1029.     wizqTalkSay Lydia $::lng::leafMightHelpL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafMightHelpL1.ogg"
  1030.     wizqTalkSay Lydia $::lng::leafMightHelpL2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafMightHelpL2.ogg"
  1031.     wizqTalkClose
  1032.   }
  1033.  
  1034.   chainEvent {
  1035.     MainDisableSidebar
  1036.     MainDisableTalk
  1037.   }
  1038.  
  1039.   chainEvent {
  1040.     unfreezePlayer
  1041.     wizEnableMouse
  1042.   }
  1043. }
  1044.  
  1045.  
  1046. ## ===================================================== ##
  1047. ##   Leaves don't care                                   ##
  1048. ## ===================================================== ##
  1049.  
  1050. event "leafDontCare" {
  1051.   checkConversation "leafDontCare" {
  1052.     wizqTalkOpen
  1053.     wizqTalkSay Zak $::lng::leafDontCareZ1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafDontCareZ1.ogg"
  1054.     wizqTalkSay Lydia $::lng::leafDontCareL1  "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafDontCareL1.ogg"
  1055.     wizqTalkClose
  1056.   }
  1057. }
  1058.  
  1059.  
  1060. ## ===================================================== ##
  1061. ##   Leaves don't need                                   ##
  1062. ## ===================================================== ##
  1063.  
  1064. event "leafDontNeed" {
  1065.   wizqTalkOpen
  1066.   wizqTalkSay Lydia $::lng::leafDontNeedL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/leafDontNeedL1.ogg"
  1067.   wizqTalkClose
  1068. }
  1069.  
  1070.  
  1071. ## ===================================================== ##
  1072. ##   Mill Wheel too big                                  ##
  1073. ## ===================================================== ##
  1074. ## trigger is when the player start to do the Mill Wheel
  1075. ## puzzle for the first time
  1076.  
  1077. event "millWheelBig" {
  1078.   checkConversation "millWheelBig" {
  1079.     chainEvent {
  1080.       freezePlayer
  1081.       wizDisableFloorevent
  1082.       wizDisableMouse
  1083.       wizEntityStopFollow Zak
  1084.     }
  1085.  
  1086.     # Block 1
  1087.     wizqQueue 1 {
  1088.       chainEvent { delay 1000 }
  1089.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1090.     }
  1091.  
  1092.     # Block 1-B
  1093.     wizqQueue 2 {
  1094.       chainEvent { delay 500 }
  1095.       wizqEntityAction Zak standNo "wait"
  1096.     }
  1097.     
  1098.     wizqTalkOpen
  1099.     wizqTalkSay Zak $::lng::millWheelBigZ1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelBigZ1.ogg"
  1100.  
  1101.     # Wait for Block 1 & 1-B
  1102.     wizqWaitQueue 1
  1103.     wizqWaitQueue 2
  1104.  
  1105.     # Block 2
  1106.     wizqQueue 1 {
  1107.       wizqEntityAction Lydia standTalkTwoHands "wait"
  1108.     }
  1109.  
  1110.     wizqTalkSay Lydia $::lng::millWheelBigL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelBigL1.ogg"
  1111.  
  1112.     # Block 2-B
  1113.     wizqQueue 2 {
  1114.       wizqEntityAction Zak standYes "wait"
  1115.     }
  1116.     
  1117.     wizqTalkSay Zak $::lng::millWheelBigZ2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelBigZ2.ogg"
  1118.  
  1119.     # Wait for Block 2 & 2-B
  1120.     wizqWaitQueue 1
  1121.     wizqWaitQueue 2
  1122.  
  1123.     # Block 3
  1124.     wizqQueue 1 {
  1125.       wizqEntityAction Lydia standTalkHandHip
  1126.     }
  1127.  
  1128.     wizqTalkSay Lydia $::lng::millWheelBigL2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelBigL2.ogg"
  1129.  
  1130.     # Wait for Block 3
  1131.     wizqWaitQueue 1
  1132.  
  1133.     # Block 4
  1134.     wizqQueue 1 {
  1135.       wizqEntityAction Zak standLoseHope "wait"
  1136.     }
  1137.  
  1138.     # Block 4-B
  1139.     wizqQueue 2 {
  1140.       chainEvent { delay 1000 }
  1141.       wizqEntityOrientation Lydia 270 "wait"
  1142.       wizqEntitySetCycle Lydia standCycleNormal
  1143.       chainEvent { delay 1000 }
  1144.       wheelPuzzleZoomIn
  1145.     }
  1146.  
  1147.     wizqTalkSay Lydia $::lng::millWheelBigL3   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelBigL3.ogg"
  1148.     wizqTalkClose
  1149.  
  1150.     # Wait for Block 4 & 4-B
  1151.     wizqWaitQueue 1
  1152.     wizqWaitQueue 2
  1153.  
  1154.     chainEvent {
  1155.       unfreezePlayer
  1156.       wizEnableFloorevent
  1157.       wizEnableMouse
  1158.     }
  1159.   }
  1160. }
  1161.  
  1162.  
  1163. ## ===================================================== ##
  1164. ##   Mill Wheel Solved                                   ##
  1165. ## ===================================================== ##
  1166. ## trigger is when the player solve the Mill Wheel puzzle
  1167.  
  1168. event "millWheelSolved" {
  1169.   ozSet "puzzleMillWheel" "complete"
  1170.   ozSet "crescentCoastWaterway.lookWheelPuzzle" "false"
  1171.   ozSet "crescentCoastWaterway.transWheelPuzzle" "false"
  1172.   chainEvent {
  1173.     freezePlayer
  1174.     wizDisableFloorevent
  1175.     wizDisableMouse
  1176.     wizEntityStopFollow Zak
  1177.   }
  1178.  
  1179.   # Block 1
  1180.   wizqQueue 1 {
  1181.     chainEvent { delay 100 }
  1182.     chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  1183.   }
  1184.  
  1185.   # Wait for Block 1
  1186.   wizqWaitQueue 1
  1187.  
  1188.   if { [ozGet "puzzleMill"] == "" } {
  1189.  
  1190.     # Block 2
  1191.     wizqQueue 1 {
  1192.       Play3DSound characters/lydia/standHappy
  1193.       wizqEntityAction Lydia standHappy "wait"
  1194.     }
  1195.  
  1196.     wizqTalkOpen
  1197.     wizqTalkSay Lydia $::lng::millWheelSolvedL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedL1.ogg"
  1198.  
  1199.     # Wait for Block 2
  1200.     wizqWaitQueue 1
  1201.  
  1202.     # Block 3
  1203.     wizqQueue 1 {
  1204.       wizqEntitySetOrientationTarget Lydia Zak
  1205.     }
  1206.     
  1207.     # Block 3-B
  1208.     wizqQueue 2 {
  1209.       wizqEntityWalk Zak "596.6 -16.9 420" "wait"
  1210.       wizqEntityOrientation Zak 350 "wait"
  1211.       wizqEntitySetCycle Zak standCycleNormal
  1212.       chainEvent { delay 2000 }
  1213.       wizqEntityAction Zak standNo "wait"
  1214.     }
  1215.  
  1216.     wizqTalkSay Zak $::lng::millWheelSolvedZ1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedZ1.ogg"
  1217.  
  1218.     # Wait for Block 3 & 3-B
  1219.     wizqWaitQueue 1
  1220.     wizqWaitQueue 2
  1221.     wizqEntitySetOrientationTarget Lydia None
  1222.  
  1223.     # Block 4
  1224.     wizqQueue 1 {
  1225.       wizqEntityAction Lydia standTalkHandHip
  1226.     }
  1227.  
  1228.     wizqTalkSay Lydia $::lng::millWheelSolvedL2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedL2.ogg"
  1229.  
  1230.     # Wait for Block 4
  1231.     wizqWaitQueue 1
  1232.  
  1233.     # Block 5
  1234.     wizqQueue 1 {
  1235.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1236.       chainEvent { delay 500 }
  1237.       wizqEntityAction Zak standYes "wait"
  1238.     }
  1239.  
  1240.     # Block 5-B
  1241.     wizqQueue 2 {
  1242.       chainEvent { delay 1000 }
  1243.       wizqEntityAction Lydia standHandOnChin "wait"
  1244.     }
  1245.  
  1246.     wizqTalkSay Zak $::lng::millWheelSolvedZ2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedZ2.ogg"
  1247.     wizqTalkSay Lydia $::lng::millWheelSolvedL3   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedL3.ogg"
  1248.     wizqTalkClose
  1249.  
  1250.     # Wait for Block 5 & 5-B
  1251.     wizqWaitQueue 1
  1252.     wizqWaitQueue 2
  1253.  
  1254.   } else {
  1255.     ozSet "puzzlePowerSurge" "complete"
  1256.     ozSet "puzzleMill" "complete"
  1257.  
  1258.     # Block 6
  1259.     wizqQueue 1 {
  1260.       wizqEntitySetOrientationTarget Lydia Zak
  1261.       wizqEntityWalk Zak "592.6 -16.9 419" "wait"
  1262.       wizqEntitySetOrientationTarget Lydia None
  1263.       wizqEntityOrientation Zak 350 "wait"
  1264.       wizqEntitySetCycle Zak standCycleNormal
  1265.     }
  1266.  
  1267.     wizqTalkOpen
  1268.     wizqTalkSay Zak $::lng::millWheelSolvedZ3   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedZ3.ogg"
  1269.  
  1270.     # Wait for Block 6
  1271.     wizqWaitQueue 1
  1272.  
  1273.     # Block 7
  1274.     wizqQueue 1 {
  1275.       wizqEntityAction Lydia standTalkTwoHands
  1276.     }
  1277.  
  1278.     wizqTalkSay Lydia $::lng::millWheelSolvedL4   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedL4.ogg"
  1279.  
  1280.     # Wait for Block 7
  1281.     wizqWaitQueue 1
  1282.  
  1283.     # Block 8
  1284.     wizqQueue 1 {
  1285.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  1286.     }
  1287.  
  1288.     wizqTalkSay Zak $::lng::millWheelSolvedZ4   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedZ4.ogg"
  1289.  
  1290.     # Wait for Block 8
  1291.     wizqWaitQueue 1
  1292.  
  1293.     # Block 9
  1294.     wizqQueue 1 {
  1295.       wizqEntityAction Lydia standTalkHandHip "wait"
  1296.     }
  1297.  
  1298.     wizqTalkSay Lydia $::lng::millWheelSolvedL5   "sound/vo/$::LNG/scenes/crescentCoastWaterway/millWheelSolvedL5.ogg"
  1299.     wizqTalkClose
  1300.  
  1301.     # Wait for Block 9
  1302.     wizqWaitQueue 1
  1303.  
  1304.   }
  1305.   
  1306.   chainEvent {
  1307.     unfreezePlayer
  1308.     wizEnableFloorevent
  1309.     wizEnableMouse
  1310.     wizEntityResumeFollow Zak
  1311.   }
  1312.     
  1313.   if { [getVar "lydiasPastConversation"] == "" } {
  1314.     setEventPriority optionnalConversation.lydiasPastBehavior long
  1315.     ozSet "lydiasPastConversation" "initiated"
  1316.   }
  1317. }
  1318.  
  1319.  
  1320. ## ===================================================== ##
  1321. ##   puzzle Mill Tools Behavior                          ##
  1322. ## ===================================================== ##
  1323.  
  1324. event "puzzleMillToolsBehavior" {
  1325.   if { [getVar "millDoorToWaterway"] == "initiated" } {
  1326.     # Block 1
  1327.     wizqQueue 1 {
  1328.       chainEvent { delay 1500 }
  1329.       chainEvent { wizEntityLookAt Lydia "551.1 -16.8 337.8" }
  1330.     }
  1331.  
  1332.     wizqTalkOpen
  1333.     wizqTalkSay Lydia $::lng::puzzleMillToolsBehaviorL1   "sound/vo/$::LNG/scenes/crescentCoastWaterway/puzzleMillToolsBehaviorL1.ogg"
  1334.     wizqTalkClose
  1335.  
  1336.     # Wait for Block 1
  1337.     wizqWaitQueue 1
  1338.     
  1339.     callEvent "millToolsMovie"
  1340.     
  1341.   } else {
  1342.     # Block 1
  1343.     wizqQueue 1 {
  1344.       chainEvent { delay 1500 }
  1345.       chainEvent { wizEntityLookAt Lydia "551.1 -16.8 337.8" }
  1346.     }
  1347.     
  1348.     wizqTalkOpen
  1349.     wizqTalkSay Lydia $::lng::puzzleMillToolsBehaviorL2   "sound/vo/$::LNG/scenes/crescentCoastWaterway/puzzleMillToolsBehaviorL2.ogg"
  1350.     wizqTalkClose
  1351.  
  1352.     # Wait for Block 1
  1353.     wizqWaitQueue 1
  1354.     
  1355.     callEvent "millToolsMovie"
  1356.   }
  1357. }
  1358.  
  1359.  
  1360. ################################################################################
  1361. ## ========================================================================== ##
  1362. ##   OPTIONNAL DIALOGUE SECTION                                               ##
  1363. ## ========================================================================== ##
  1364. ################################################################################
  1365.  
  1366.  
  1367. # NONE FOR NOW
  1368.  
  1369.  
  1370. ################################################################################
  1371. ## ========================================================================== ##
  1372. ##   TO ADD/ CORRECTIONS NEEDED                                               ##
  1373. ## ========================================================================== ##
  1374. ################################################################################
  1375.  
  1376.  
  1377. # NONE FOR NOW
  1378.  
  1379.  
  1380. ################################################################################
  1381. ## ========================================================================== ##
  1382. ##   TO CHECK                                                                 ##
  1383. ## ========================================================================== ##
  1384. ################################################################################
  1385.  
  1386.  
  1387. # NONE FOR NOW
  1388.  
  1389.  
  1390.