home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 April / Gamestar_83_2006-04_dvd.iso / Dema / keepsake_demo_en.exe / res / scripts / vision.tcl < prev   
Text File  |  2006-01-25  |  22KB  |  728 lines

  1. ################################################################################
  2. #                                                                             ##
  3. #    file   vision.tcl                                                        ##
  4. #    brief  Events for the Visions.                                           ##
  5. #                                                                             ##
  6. ################################################################################
  7.  
  8.  
  9. ## ===================================================== ##
  10. ##   Loading script from source                          ##
  11. ## ===================================================== ##
  12.  
  13. source "[AUTO]/visions.mvwrap.tcl"
  14. source "[AUTO]/visions.camera.tcl"
  15.  
  16.  
  17. ## ===================================================== ##
  18. ##   Initialization                                      ##
  19. ## ===================================================== ##
  20.  
  21. event "init" {
  22. }
  23.  
  24.  
  25. ################################################################################
  26. ## ========================================================================== ##
  27. ##   DOOR BLOCKING & PUZZLE SECTION                                           ##
  28. ## ========================================================================== ##
  29. ################################################################################
  30.  
  31.  
  32. # NONE FOR NOW
  33.  
  34.  
  35. ################################################################################
  36. ## ========================================================================== ##
  37. ## ANIMATION & SPECIAL CAMERA SECTION                                         ##
  38. ## ========================================================================== ##
  39. ################################################################################
  40.  
  41.  
  42. ## ===================================================== ##
  43. ##   The after effect of the first Vision                ##
  44. ## ===================================================== ##
  45.  
  46. proc subtitle {widget label who text delay} {
  47.     set color "1 1 1"
  48.  
  49.     oz'event {
  50.         eval "oz'label::property $label -color $color -text \\\"$text\\\""
  51.     }
  52.     oz'event {
  53.         oz'widget::fadeto $widget 1 0.1
  54.         oz'delay 0.1
  55.     }
  56.     oz'event {
  57.         oz'delay [expr $delay - 0.2]
  58.     }
  59.     oz'event {
  60.         oz'widget::fadeto $widget 0 0.1
  61.         oz'delay 0.1
  62.     }
  63. }
  64.  
  65. proc qPlayVision1 {} {
  66.   set l [new oz'label "label" 0.8 0.25]
  67.   set w [new oz'widget "widget"]
  68.   oz'label::property $l -pos 0.1 0.75 -font caligula.ttf -fsize 20 -alpha 1
  69.   oz'widget::property $w -alpha 0
  70.   oz'widget::child $w $l 0
  71.   oz'widget::child [FOREGROUNDWIDGET] $w 0
  72.  
  73.   vision1::new vision -foreground -depth 0.5 -nopan
  74.   ozqSound::NewFX  "sound/vo/$::LNG/vision1/vision1.ogg"
  75.  
  76.   wizqQueue 1 [subst {
  77.       oz'event {oz'delay 8.5}
  78.       subtitle $w $l Lydia   "$::lng::firstVisionYL1"  3
  79.       subtitle $w $l Celeste "$::lng::firstVisionYC1"  6
  80.       oz'event {oz'delay 0.5}
  81.       subtitle $w $l Lydia   "$::lng::firstVisionYL2"  3.5
  82.       oz'event {oz'delay 1}
  83.       subtitle $w $l Celeste "$::lng::firstVisionYC2"  3
  84.       oz'event {oz'delay 0.5}
  85.       subtitle $w $l Celeste "$::lng::firstVisionYC3"  3.5
  86.       subtitle $w $l Lydia   "$::lng::firstVisionYL3"  2
  87.       subtitle $w $l Celeste "$::lng::firstVisionYC4"  4.5
  88.       oz'event {oz'delay 0.5}
  89.       subtitle $w $l Lydia   "$::lng::firstVisionYL4"  3.5
  90.       oz'event {oz'delay 0.5}
  91.       subtitle $w $l Celeste "$::lng::firstVisionYC5"  4.5
  92.       subtitle $w $l Celeste "$::lng::firstVisionYC6"  8
  93.       oz'event {oz'delay 1}
  94.       subtitle $w $l Celeste "$::lng::firstVisionYC7"  1.5
  95.       oz'event {oz'delay 0.5}
  96.       subtitle $w $l Lydia   "$::lng::firstVisionYL5"  12.5
  97.       subtitle $w $l Celeste "$::lng::firstVisionYC8"  8.5
  98.       subtitle $w $l Lydia   "$::lng::firstVisionYL6"  1.5
  99.       subtitle $w $l Lydia   "$::lng::firstVisionYL7"  3.5
  100.  
  101.       oz'event {oz'delay 0.5}
  102.       subtitle $w $l Celeste "$::lng::firstVisionYC9"  3.15
  103.       subtitle $w $l Lydia   "$::lng::firstVisionYL8"  3
  104.       subtitle $w $l Lydia   "$::lng::firstVisionYL9"  9
  105.       subtitle $w $l Celeste "$::lng::firstVisionYC10" 7
  106.       subtitle $w $l Lydia   "$::lng::firstVisionYL10" 6
  107.       subtitle $w $l Celeste "$::lng::firstVisionYC11" 2.5
  108.       subtitle $w $l Lydia   "$::lng::firstVisionYL11" 4.5
  109.       oz'event {oz'delay 1}
  110.       subtitle $w $l Celeste "$::lng::firstVisionC1"   1.5
  111.       oz'event {oz'delay 0.5}
  112.       subtitle $w $l Lydia   "$::lng::firstVisionL1"   4.5
  113.       oz'event {delete $l}
  114.       oz'event {delete $w}
  115.   }]
  116.   
  117.   chainEvent {
  118.     standardFadein
  119.   }
  120.  
  121.   wq'widget::waitfor $vision1::vision -animate
  122.   wq'widget::delete& vision1::vision
  123.  
  124.   chainEvent {
  125.     cameraFadeout 0
  126.   }
  127.   
  128.   # Wait for Block 1
  129.   wizqWaitQueue 1
  130. }
  131.  
  132.  
  133. ## ===================================================== ##
  134. ##   The after effect of the first Vision                ##
  135. ## ===================================================== ##
  136.  
  137. event "firstVisionTeleport" {
  138.   oz'event {
  139.     SetAmbient 2d ambiance/forest "0 0 0" 0 0
  140.     SetAmbient 3d sfx/fallsFar "130 144 870" 10000 0
  141.     SetAmbient 3d sfx/dragonFountainLoop "227 71 157" 30 0 0.6
  142.     SetAmbient 3d sfx/gardenPond "245 71 270" 30 0 0.6
  143.   }
  144.   oz'event {oz'track::stop $::music_track}
  145.   
  146.   chainEvent {
  147.     standardFadeout
  148.     hideInterface
  149.     hideMouse
  150.   }
  151.  
  152.   chainEvent {
  153.     wizEntityHide Lydia
  154.     wizEntityHide Zak
  155.     wizEntityStopFollow Zak
  156.   }
  157.  
  158.   qPlayVision1
  159.   
  160.   chainEvent {
  161.  
  162.     wizEntitySetPosition Lydia "358.6 87.7 275"
  163.     wizEntitySetOrientation Lydia 200
  164.  
  165.     wizEntitySetPosition Zak "312.8 86.1 271.1"
  166.  
  167.     setScene "dragonvaleHallway" worldBridge
  168.  
  169.     setCamera "mainbridge"
  170.     wizhCameraChange
  171.   }
  172.   
  173.   chainEvent {
  174.     showInterface
  175.     showMouse
  176.     stopMovie
  177.     wizEntityShow Lydia
  178.     wizEntityShow Zak
  179.   }
  180.  
  181.   chainEvent {
  182.     standardFadein
  183.   }
  184.  
  185.   ozSet "visionOne" "viewed"
  186.   callEvent "dollEffectOne"
  187. }
  188.  
  189.  
  190.  
  191.  
  192. ################################################################################
  193. ## ========================================================================== ##
  194. ##   NPC DIALOGUE SECTION                                                     ##
  195. ## ========================================================================== ##
  196. ################################################################################
  197.  
  198.  
  199. # NONE FOR NOW
  200.  
  201.  
  202. ################################################################################
  203. ## ========================================================================== ##
  204. ##   FORCED DIALOGUE SECTION                                                  ##
  205. ## ========================================================================== ##
  206. ################################################################################
  207.  
  208.  
  209. ## ===================================================== ##
  210. ##   The Doll effect after the first Vision              ##
  211. ## ===================================================== ##
  212.  
  213. event "dollEffectOneDEMOBETA" {
  214.   checkConversation "dollEffectOneDEMOBETA" {
  215.     chainEvent {
  216.       freezePlayer
  217.       wizDisableFloorevent
  218.       wizDisableMouse
  219.       wizEntityStopFollow Zak
  220.       ozDisable "panning"
  221.     }
  222.     
  223.     chainEvent { oz'track::play $::music_track "sound/music/dollEffect.ogg" }
  224.     chainEvent { delay 500 }
  225.     chainEvent { ozSet "zakDiscovery" "complete" }
  226.  
  227.     # Block 1
  228.     wizqQueue 1 {
  229.       wizqEntityAction Lydia standDisbelief "wait"
  230.       wizqEntityRun Lydia "359.9 0.3 128" "wait"
  231.       wizqEntityAction Lydia standLookAway "wait"
  232.     }
  233.  
  234.     wizqTalkOpen
  235.     wizqTalkSay Lydia $::lng::dollEffectOneL1    "sound/vo/$::LNG/scenes/vision/dollEffectOneL1.ogg"
  236.     wizqTalkSay Lydia $::lng::dollEffectOneL2    "sound/vo/$::LNG/scenes/vision/dollEffectOneL2.ogg"
  237.     wizqTalkSay Lydia $::lng::dollEffectOneL3    "sound/vo/$::LNG/scenes/vision/dollEffectOneL3.ogg"
  238.     wizqTalkClose
  239.     
  240.     # Wait for Block 1
  241.     wizqWaitQueue 1
  242.  
  243.     # Block 2
  244.     wizqQueue 1 {
  245.       wizqEntityWalk Zak "374.2 0.3 102.6" "wait"
  246.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  247.     }
  248.  
  249.     # Block 2-B
  250.     wizqQueue 2 {
  251.       chainEvent { delay 500 }
  252.       wizqEntityAction Lydia standSurprise "wait"
  253.       wizqEntitySetOrientationTarget Lydia Zak
  254.     }
  255.  
  256.     wizqTalkOpen
  257.     wizqTalkSay Zak $::lng::dollEffectOneZ1    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ1.ogg" fastout
  258.     wizqTalkSay Lydia $::lng::dollEffectOneL4    "sound/vo/$::LNG/scenes/vision/dollEffectOneL4.ogg" fastin
  259.  
  260.     # Wait for Block 2 & 2-B
  261.     wizqWaitQueue 1
  262.     wizqWaitQueue 2
  263.     wizqEntitySetOrientationTarget Lydia None
  264.  
  265.     # Block 3
  266.     wizqQueue 1 {
  267.       wizqEntityAction Lydia standYes "wait"
  268.       wizqEntityAction Lydia standWhat "wait"
  269.     }
  270.  
  271.     wizqTalkSay Lydia $::lng::dollEffectOneL5    "sound/vo/$::LNG/scenes/vision/dollEffectOneL5.ogg"
  272.  
  273.     # Wait for Block 3
  274.     wizqWaitQueue 1
  275.  
  276.     # Block 4
  277.     wizqQueue 1 {
  278.       wizqEntitySetOrientationTarget Lydia Zak
  279.     }
  280.  
  281.     # Block 4-B
  282.     wizqQueue 2 {
  283.       wizqEntityWalk Zak "368 0.3 117.7" "wait"
  284.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  285.       wizqEntityAction Lydia standHandOnChin "wait"
  286.     }
  287.  
  288.     wizqTalkSay Zak $::lng::dollEffectOneZ3    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ3.ogg"
  289.  
  290.     # Wait for Block 4 & 4-B
  291.     wizqWaitQueue 1
  292.     wizqWaitQueue 2
  293.     wizqEntitySetOrientationTarget Lydia None
  294.  
  295.     # Block 5
  296.     wizqQueue 1 {
  297.       wizqEntityAction Lydia standWhat "wait"
  298.     }
  299.  
  300.     wizqTalkSay Lydia $::lng::dollEffectOneL7    "sound/vo/$::LNG/scenes/vision/dollEffectOneL7.ogg"
  301.  
  302.     # Block 5-B
  303.     wizqQueue 2 {
  304.       chainEvent { delay 1000 }
  305.       wizqEntityAction Zak standNo "wait"
  306.     }
  307.  
  308.     wizqTalkSay Zak $::lng::dollEffectOneZ4    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ4.ogg" fastout
  309.  
  310.     # Wait for Block 5 & 5-B
  311.     wizqWaitQueue 1
  312.     wizqWaitQueue 2
  313.  
  314.     # Block 6
  315.     wizqQueue 1 {
  316.       chainEvent { delay 1000 }
  317.       wizqEntityAction Lydia standYes "wait"
  318.       wizqEntityAction Lydia standDisbelief
  319.     }
  320.  
  321.     wizqTalkSay Lydia $::lng::dollEffectOneL8    "sound/vo/$::LNG/scenes/vision/dollEffectOneL8.ogg" fastin
  322.  
  323.     # Wait for Block 6
  324.     wizqWaitQueue 1
  325.  
  326.     # Block 7
  327.     wizqQueue 1 {
  328.       wizqEntityAction Zak standRelax "wait"
  329.     }
  330.  
  331.     # Block 7-B
  332.     wizqQueue 2 {
  333.       chainEvent { delay 1000 }
  334.       wizqEntityAction Lydia standArmCross "wait"
  335.     }
  336.  
  337.     wizqTalkSay Zak $::lng::dollEffectOneZ5    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ5.ogg"
  338.  
  339.     # Wait for Block 7 & 7-B
  340.     wizqWaitQueue 1
  341.     wizqWaitQueue 2
  342.  
  343.     # Block 8
  344.     wizqQueue 1 {
  345.       wizqEntityAction Lydia standNo "wait"
  346.       wizqEntityWalk Lydia "350.4 0.3 137.6" "wait"
  347.       chainEvent { delay 100 }
  348.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  349.       wizqEntitySetCycle Lydia standCycleNormal
  350.       chainEvent { delay 500 }
  351.       wizqEntityAction Lydia standHandOnChin "wait"
  352.     }
  353.  
  354.     # Block 8-B
  355.     wizqQueue 2 {
  356.       wizqEntitySetOrientationTarget Zak Lydia
  357.     }
  358.  
  359.     wizqTalkSay Lydia $::lng::dollEffectOneL9    "sound/vo/$::LNG/scenes/vision/dollEffectOneL9.ogg"
  360.     wizqTalkSay Lydia $::lng::dollEffectOneL10    "sound/vo/$::LNG/scenes/vision/dollEffectOneL10.ogg"
  361.  
  362.     # Wait for Block 8 & 8-B
  363.     wizqWaitQueue 1
  364.     wizqWaitQueue 2
  365.     wizqEntitySetOrientationTarget Zak None
  366.  
  367.     # Block 9
  368.     wizqQueue 1 {
  369.       wizqEntityWalk Zak "359.9 0.3 128" "wait"
  370.       chainEvent { delay 1000 }
  371.       wizqEntityAction Zak standConfusedRight "wait"
  372.     }
  373.  
  374.     wizqTalkSay Zak $::lng::dollEffectOneZ8    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ8.ogg"
  375.  
  376.     # Wait for Block 9
  377.     wizqWaitQueue 1
  378.  
  379.     # Block 10
  380.     wizqQueue 1 {
  381.       wizqEntityAction Lydia standTalkTwoHands "wait"
  382.     }
  383.     
  384.     wizqTalkSay Lydia $::lng::dollEffectOneL11    "sound/vo/$::LNG/scenes/vision/dollEffectOneL11.ogg"
  385.  
  386.     # Block 10-B
  387.     wizqQueue 2 {
  388.       chainEvent { delay 3000 }
  389.       wizqEntityWalk Zak "385.2 0.3 51.1"
  390.     }
  391.     
  392.     wizqTalkSay Zak $::lng::dollEffectOneZ9    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ9.ogg"
  393.  
  394.     # Wait for Block 10
  395.     wizqWaitQueue 1
  396.  
  397.     # Block 11
  398.     wizqQueue 1 {
  399.       wizqEntityAction Lydia standLoseHope "wait"
  400.     }
  401.     
  402.     wizqTalkSay Lydia $::lng::dollEffectOneL12    "sound/vo/$::LNG/scenes/vision/dollEffectOneL12.ogg"
  403.     wizqTalkClose
  404.  
  405.     # Wait for Block 11 & 10-B
  406.     wizqWaitQueue 1
  407.     wizqWaitQueue 2
  408.  
  409.     chainEvent { setCamera "nGateCloseup" }
  410.  
  411.     # Block 12
  412.     wizqQueue 1 {
  413.       wizqEntityAction Lydia standHandOnChin "wait"
  414.     }
  415.     
  416.     wizqTalkOpen
  417.     wizqTalkSay Lydia $::lng::dollEffectOneL13    "sound/vo/$::LNG/scenes/vision/dollEffectOneL13.ogg"
  418.     wizqTalkSay Zak $::lng::dollEffectOneZ10    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ10.ogg"
  419.     wizqTalkClose
  420.     
  421.     # Wait for Block 12
  422.     wizqWaitQueue 1
  423.  
  424.     if { [getVar "whyWalkHere"] == "" } {
  425.       setEventPriority optionnalConversation.whyWalkHere emergency
  426.       ozSet "whyWalkHere" "initiated"
  427.     }
  428.     
  429.     if { [getVar "whoIsCeleste"] == "" } {
  430.       setEventPriority optionnalConversation.whoIsCelesteBehavior long
  431.       ozSet "whoIsCeleste" "initiated"
  432.     }
  433.  
  434.     if { [getVar "dollAsKeepsake"] == "" } {
  435.       setEventPriority optionnalConversation.dollAsKeepsakeBehavior long
  436.       ozSet "dollAsKeepsake" "initiated"
  437.     }
  438.  
  439.     chainEvent {
  440.       unfreezePlayer
  441.       wizEnableFloorevent
  442.       wizEntityResumeFollow Zak
  443.       wizEnableMouse
  444.       ozEnable "panning"
  445.     }
  446.     
  447.     chainEvent {
  448.       ozqSound::NewFX  "sound/interface/itemPickUp.ogg"
  449.       iq'showdesc doll
  450.     }
  451.   }
  452. }
  453.  
  454. ## ===================================================== ##
  455. ##   The Doll effect after the first Vision              ##
  456. ## ===================================================== ##
  457.  
  458. event "dollEffectOne" {
  459.   checkConversation "dollEffectOne" {
  460.  
  461.     chainEvent {
  462.       freezePlayer
  463.       wizDisableFloorevent
  464.       wizDisableMouse
  465.       wizEntityStopFollow Zak
  466.     }
  467.  
  468.     #FIXME check this to add in the real thing
  469.     chainEvent { oz'track::play $::music_track "sound/music/dollEffect.ogg" }
  470.  
  471.     chainEvent { delay 500 }
  472.  
  473.     chainEvent { ozSet "zakDiscovery" "complete" }
  474.  
  475.     # Block 1
  476.     wizqQueue 1 {
  477.       wizqEntityAction Lydia standDisbelief "wait"
  478.     }
  479.  
  480.     wizqTalkOpen
  481.     wizqTalkSay Lydia $::lng::dollEffectOneL1   "sound/vo/$::LNG/scenes/vision/dollEffectOneL1.ogg"
  482.     wizqTalkSay Lydia $::lng::dollEffectOneL2   "sound/vo/$::LNG/scenes/vision/dollEffectOneL2.ogg"
  483.     wizqTalkSay Lydia $::lng::dollEffectOneL3   "sound/vo/$::LNG/scenes/vision/dollEffectOneL3.ogg"
  484.     wizqTalkClose
  485.  
  486.     # Wait for Block 1
  487.     wizqWaitQueue 1
  488.  
  489.     wizqEntityAction Lydia standLookAway "wait"
  490.  
  491.     # Block 2
  492.     wizqQueue 1 {
  493.       wizqEntityChangeWalkSpeed Zak 20
  494.       wizqEntityWalk Zak "349 87.7 270.8" "wait"
  495.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  496.       wizqEntitySetOrientationTarget Lydia None
  497.     }
  498.  
  499.     # Block 2-B
  500.     wizqQueue 2 {
  501.       chainEvent { delay 1500 }
  502.       wizqEntityAction Lydia standSurprise "wait"
  503.       wizqEntitySetOrientationTarget Lydia Zak
  504.     }
  505.  
  506.     wizqTalkOpen
  507.     wizqTalkSay Zak $::lng::dollEffectOneZ1   "sound/vo/$::LNG/scenes/vision/dollEffectOneZ1.ogg"
  508.     wizqTalkSay Lydia $::lng::dollEffectOneL4   "sound/vo/$::LNG/scenes/vision/dollEffectOneL4.ogg"
  509.  
  510.     # Wait for Block 2 & 2-B
  511.     wizqWaitQueue 1
  512.     wizqWaitQueue 2
  513.     wizqEntitySetOrientationTarget Lydia None
  514.     
  515.     wizqEntityChangeWalkSpeed Zak default
  516.  
  517.     # Block 3
  518.     wizqQueue 1 {
  519.       wizqEntityAction Lydia standYes "wait"
  520.       wizqEntityAction Lydia standWhat "wait"
  521.     }
  522.  
  523.     wizqTalkSay Lydia $::lng::dollEffectOneL5   "sound/vo/$::LNG/scenes/vision/dollEffectOneL5.ogg"
  524.  
  525.     # Wait for Block 3
  526.     wizqWaitQueue 1
  527.  
  528.     # Block 4-B
  529.     wizqQueue 2 {
  530.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  531.     }
  532.  
  533.     # Wait for Block 4 & 4-B
  534.     wizqWaitQueue 1
  535.     wizqWaitQueue 2
  536.  
  537.  
  538.     # Block 6
  539.     wizqQueue 1 {
  540.       wizqEntitySetCycle Zak sitCycleNormal
  541.       chainEvent { delay 200 }
  542.       wizqEntityAction Lydia standHandOnChin "wait"
  543.     }
  544.  
  545.     wizqTalkSay Zak $::lng::dollEffectOneZ3   "sound/vo/$::LNG/scenes/vision/dollEffectOneZ3.ogg"
  546.  
  547.     # Wait for Block 6
  548.     wizqWaitQueue 1
  549.  
  550.     # Block 11
  551.     wizqQueue 1 {
  552.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  553.       wizqEntitySetCycle Lydia standCycleNormal
  554.       wizqEntityAction Lydia standWhat "wait"
  555.     }
  556.  
  557.     wizqEntitySetOrientationTarget Lydia None
  558.  
  559.     wizqTalkSay Lydia $::lng::dollEffectOneL7    "sound/vo/$::LNG/scenes/vision/dollEffectOneL7.ogg"
  560.  
  561.     # Block 5-B
  562.     wizqQueue 2 {
  563.       chainEvent { delay 1000 }
  564.       wizqEntityAction Zak sitNo "wait"
  565.     }
  566.  
  567.     wizqTalkSay Zak $::lng::dollEffectOneZ4    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ4.ogg" fastout
  568.  
  569.     # Wait for Block 5 & 5-B
  570.     wizqWaitQueue 1
  571.     wizqWaitQueue 2
  572.  
  573.     # Block 6
  574.     wizqQueue 1 {
  575.       chainEvent { delay 1000 }
  576.       wizqEntityAction Lydia standYes "wait"
  577.       wizqEntityAction Lydia standDisbelief
  578.     }
  579.  
  580.     wizqTalkSay Lydia $::lng::dollEffectOneL8    "sound/vo/$::LNG/scenes/vision/dollEffectOneL8.ogg" fastin
  581.  
  582.     # Wait for Block 6
  583.     wizqWaitQueue 1
  584.  
  585.     # Block 7
  586.     wizqQueue 1 {
  587.       wizqEntitySetCycle Zak standCycleNormal
  588.       wizqEntityAction Zak standConfusedRight "wait"
  589.     }
  590.  
  591.     # Block 7-B
  592.     wizqQueue 2 {
  593.       chainEvent { delay 1000 }
  594.       wizqEntityAction Lydia standArmCross "wait"
  595.     }
  596.  
  597.     wizqTalkSay Zak $::lng::dollEffectOneZ5    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ5.ogg"
  598.  
  599.     # Wait for Block 7 & 7-B
  600.     wizqWaitQueue 1
  601.     wizqWaitQueue 2
  602.  
  603.     # Block 8
  604.     wizqQueue 1 {
  605.       wizqEntityAction Lydia standNo "wait"
  606.       chainEvent { delay 100 }
  607.       chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Zak] }
  608.       wizqEntitySetCycle Lydia standCycleNormal
  609.       chainEvent { delay 500 }
  610.       wizqEntityAction Lydia standHandOnChin "wait"
  611.     }
  612.  
  613.     # Block 8-B
  614.     wizqQueue 2 {
  615.       wizqEntitySetOrientationTarget Zak Lydia
  616.     }
  617.  
  618.     wizqTalkSay Lydia $::lng::dollEffectOneL9    "sound/vo/$::LNG/scenes/vision/dollEffectOneL9.ogg"
  619.  
  620.     # Wait for Block 8 & 8-B
  621.     wizqWaitQueue 1
  622.  
  623.     # Block 8
  624.     wizqQueue 1 {
  625.       wizqEntityAction Lydia standYes "wait"
  626.     }
  627.     
  628.     wizqTalkSay Lydia $::lng::dollEffectOneL10    "sound/vo/$::LNG/scenes/vision/dollEffectOneL10.ogg"
  629.  
  630.     # Wait for Block 8 & 8-B
  631.     wizqWaitQueue 1
  632.     wizqWaitQueue 2
  633.     wizqEntitySetOrientationTarget Zak None
  634.  
  635.     # Block 9
  636.     wizqQueue 1 {
  637.       chainEvent { delay 1000 }
  638.       wizqEntityAction Zak standConfusedRight "wait"
  639.     }
  640.  
  641.     # Block 14
  642.     wizqQueue 1 {
  643.       wizqEntityWalk Zak "336.6 87.7 270" "wait"
  644.       chainEvent { delay 100 }
  645.       chainEvent { wizEntityLookAt Zak [wizEntityGetPosition Lydia] }
  646.       wizqEntitySetCycle Zak standCycleNormal
  647.       wizqEntitySetOrientationTarget Lydia None
  648.     }
  649.  
  650.     # Block 14-B
  651.     wizqQueue 2 {
  652.       wizqEntitySetOrientationTarget Lydia Zak
  653.     }
  654.     
  655.  
  656.     wizqTalkSay Zak $::lng::dollEffectOneZ8    "sound/vo/$::LNG/scenes/vision/dollEffectOneZ8.ogg"
  657.  
  658.     # Wait for Block 9
  659.     wizqWaitQueue 1
  660.  
  661.     # Block 11
  662.     wizqQueue 1 {
  663.       wizqEntityAction Lydia standLoseHope "wait"
  664.     }
  665.     
  666.     wizqTalkSay Lydia $::lng::dollEffectOneL12    "sound/vo/$::LNG/scenes/vision/dollEffectOneL12.ogg"
  667.     wizqTalkClose
  668.  
  669.     # Wait for Block 11 & 10-B
  670.     wizqWaitQueue 1
  671.     wizqWaitQueue 2
  672.  
  673.     if { [getVar "whoIsCeleste"] == "" } {
  674.       setEventPriority optionnalConversation.whoIsCelesteBehavior long
  675.       ozSet "whoIsCeleste" "initiated"
  676.     }
  677.  
  678.     if { [getVar "dollAsKeepsake"] == "" } {
  679.       setEventPriority optionnalConversation.dollAsKeepsakeBehavior long
  680.       ozSet "dollAsKeepsake" "initiated"
  681.     }
  682.  
  683.     chainEvent {
  684.       unfreezePlayer
  685.       wizEnableFloorevent
  686.       wizEntityResumeFollow Zak
  687.       wizEnableMouse
  688.       ozEnable "panning"
  689.     }
  690.     
  691.     chainEvent {
  692.       ozqSound::NewFX  "sound/interface/itemPickUp.ogg"
  693.       iq'showdesc doll
  694.     }
  695.   }
  696. }
  697.  
  698. ################################################################################
  699. ## ========================================================================== ##
  700. ##   OPTIONNAL DIALOGUE SECTION                                               ##
  701. ## ========================================================================== ##
  702. ################################################################################
  703.  
  704.  
  705. # NONE FOR NOW
  706.  
  707.  
  708. ################################################################################
  709. ## ========================================================================== ##
  710. ##   TO ADD/ CORRECTIONS NEEDED                                               ##
  711. ## ========================================================================== ##
  712. ################################################################################
  713.  
  714.  
  715. # NONE FOR NOW
  716.  
  717.  
  718. ################################################################################
  719. ## ========================================================================== ##
  720. ##   TO CHECK                                                                 ##
  721. ## ========================================================================== ##
  722. ################################################################################
  723.  
  724.  
  725. # NONE FOR NOW
  726.  
  727.  
  728.