home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 April
/
Gamestar_83_2006-04_dvd.iso
/
Dema
/
keepsake_demo_en.exe
/
res
/
scripts
/
tutorial.tcl
< prev
next >
Wrap
Text File
|
2005-12-07
|
30KB
|
1,092 lines
################################################################################
# ##
# file tutorial.tcl ##
# brief Events for the Tutorial. ##
# ##
################################################################################
## ===================================================== ##
## Loading script from source ##
## ===================================================== ##
source "[AUTO]/tutorial.mvwrap.tcl"
source "[AUTO]/tutorial.camera.tcl"
## ===================================================== ##
## Init ##
## ===================================================== ##
event "init" {
setAudioEnv "city"
SetAmbient 2d ambiance/forest "0 0 0" 0 1
if { [ozGet "tutorialPartOne"] == "" } {
oz'event {initializeGame}
DeleteSaveGamePanel
oz'event {set ::isGameReady 1}
wizqEntityModel Npc "/character/mustavio/mustavio.cal3d"
wizqEntityShow Npc
oz'event {wizEntitySetPosition Npc "-442 2151 -6012"}
# unfreeze in dragonvaleAcademy.firstKnock
wizDisableFloorevent
wizEntityHide Zak
freezePlayer
wizDisableMouse
setCamera "forestEntrance"
wizhCameraChange
wizEntitySetPosition Lydia "-327 2153 -6035"
wizqEntityWalk Lydia "-385 2154 -6029"
wizqEntityWalk Npc "-423 2151 -6022"
oz'event {oz'delay 0.001}
oz'event {showInterface}
oz'event {standardFadein}
oz'event {oz'delay 1}
callEvent "tutorialPartOne"
} elseif { [ozGet "tutorialPartTwo"] == "" } {
wizqEntityModel Npc "/character/mustavio/mustavio.cal3d"
wizqEntityShow Npc
oz'event { wizEntitySetPosition Npc "-448.8 2151.2 -6015.7" }
} elseif {[ozGet "wineBottleEvent"] != "complete"} {
wizqEntityModel Npc "/character/mustavio/mustavio.cal3d"
wizqEntityShow Npc
oz'event { wizEntitySetPosition Npc "-357.8 2204 -5892.7" }
wizqEntityOrientation Npc 150
}
}
## ===================================================== ##
## trans Forest Exit ##
## ===================================================== ##
event "transForestExit" {
freezePlayer
wizDisableMouse
wizqEntityWalk Lydia "-332.7 2183.3 -5810.8" "wait"
wizqEntityWalk Lydia "-323.2 2168.9 -5786.5"
chainEvent {standardFadeout}
chainEvent {
set ::img1 [wq'widget::new "walkthru/[MODE]/img/letter.jpg" -alpha 1 -foreground -depth -0.965]
}
chainEvent {standardFadein}
chainEvent {oz'delay 30}
chainEvent {standardFadeout}
chainEvent {delete $::img1}
oz'event {
ozSet "StrangeDevice" "ok"
ozSet "bookCornerClick" ""
ozSet "cantReadPage" "notFirst"
ozSet "characterControlled" ""
ozSet "continue" ""
ozSet "corridorClick" ""
ozSet "dinnerHallRoom" "visited"
ozSet "doorAcademy" "open"
ozSet "doorBellPuzzleFirst" "ok"
ozSet "doorCase" "open"
ozSet "dragonvaleAcademyRoom" "visited"
ozSet "emergency" ""
ozSet "emptyZak" "initiated"
ozSet "enchantedCrosswayRoom" "visited"
ozSet "enchantedHallway.bookCornerClick" ""
ozSet "enchantedHallway.corridor" ""
ozSet "enchantedHallway.corridorClick" ""
ozSet "enchantedHallway.stairsLowClick" ""
ozSet "enchantedHallway.toEnchantedCrossway" "false"
ozSet "enchantedHallway.toEnchantedCrosswayClick" "false"
ozSet "enchantedHallwayRoom" "visited"
ozSet "facadeWalkwayRoom" "visited"
ozSet "firstKnock" "ok"
ozSet "getMeOut" "ok"
ozSet "ghostWhiningVar" "13271"
ozSet "grandHallRoom" "visited"
ozSet "helpVar" "5000"
ozSet "idle" ""
ozSet "interface.backevent" ""
ozSet "itemCaretakerNote" ""
ozSet "itemCirclet" "pickedUp"
ozSet "itemDoll" ""
ozSet "itemKeyRing" "pickedUp"
ozSet "itemNoteBook" ""
ozSet "itemPagesNigilis" "pickedUp"
ozSet "itemPagesYewlockLeaves" "pickedUp"
ozSet "itemStaff" ""
ozSet "itemWineCaveClue" ""
ozSet "keyRing" "discussed"
ozSet "keyRingCamera" "mill"
ozSet "keyRingWarning" "ok"
ozSet "leftCloseDoor" "open"
ozSet "libraryZoomIn" ""
ozSet "long" ""
ozSet "lydiaIntroduction" "ok"
ozSet "lydiaOnGround" ""
ozSet "lydiaScaredScratching" "ok"
ozSet "mainCharacter" ""
ozSet "medium" ""
ozSet "millAlone" ""
ozSet "millRoom" "visited"
ozSet "millStoreRoomRoom" "visited"
ozSet "millWalkwayRoom" "visited"
ozSet "millZak" "ok"
ozSet "minotaurMazeFigurines" "pickedUp"
ozSet "mustavioIntroduction" "discussed"
ozSet "mvDisableMouse" "1"
ozSet "nECorner" "ok"
ozSet "nbPage" "first"
ozSet "newgame" ""
ozSet "npcDiscussion" ""
ozSet "optionnalVar" "20054"
ozSet "panoramaDirection" "fromLeft"
ozSet "puzzleAqueduct" "complete"
ozSet "puzzleCirclet" ""
ozSet "puzzleDoorBell" "complete"
ozSet "puzzleMidgard" ""
ozSet "puzzleMillTools" "complete"
ozSet "puzzleStudyDoor" ""
ozSet "puzzleZak" "complete"
ozSet "pzlDoorBell-blseq" "second"
ozSet "pzlDoorBell-brseq" "fourth"
ozSet "pzlDoorBell-ma-bl" ""
ozSet "pzlDoorBell-ma-br" ""
ozSet "pzlDoorBell-ma-ul" ""
ozSet "pzlDoorBell-ma-ur" ""
ozSet "pzlDoorBell-order" ""
ozSet "pzlDoorBell-ulseq" "third"
ozSet "pzlDoorBell-urseq" "first"
ozSet "pzlLightRune,beam" "0"
ozSet "pzlMillCloseUpA" "0"
ozSet "pzlMillCloseUpAPower" "0"
ozSet "pzlMillCloseUpB" "0"
ozSet "pzlMillCloseUpBPower" "0"
ozSet "pzlMillCloseUpC" "0"
ozSet "pzlMillCloseUpCPower" "0"
ozSet "pzlMillCloseUpD" "0"
ozSet "pzlMillCloseUpDPower" "0"
ozSet "pzlMillCloseUpE" "0"
ozSet "pzlMillCloseUpEPower" "0"
ozSet "pzlMillCloseUpF" "0"
ozSet "pzlMillCloseUpFPower" "0"
ozSet "pzlMillCloseUpG" "0"
ozSet "pzlMillCloseUpGPower" "0"
ozSet "pzlMillCloseUpH" "0"
ozSet "pzlMillCloseUpHPower" "0"
ozSet "pzlMillCloseUpZPower" "0"
ozSet "pzlMillMachineA" "0"
ozSet "pzlMillMachineB" "0"
ozSet "pzlMillMachineC" "0"
ozSet "pzlMillMachineD" "0"
ozSet "pzlMillMachineE" "0"
ozSet "sanctuaryZakSwitch" ""
ozSet "searching" ""
ozSet "searchingVar" "23549"
ozSet "short" ""
ozSet "stairsLowClick" ""
ozSet "supposeToWait" "ok"
ozSet "toEnchantedCrosswayClick" "false"
ozSet "transCorridor" ""
ozSet "tutorialEvents" "complete"
ozSet "useCircletGet" "ok"
ozSet "useCircletPuzzle" "ok"
ozSet "visionTwo" ""
ozSet "welcomeMe" "ok"
ozSet "whatAreYou" "initiated"
ozSet "whoAreYou" ""
ozSet "whyYouHiding" ""
ozSet "wingFlapping" ""
ozSet "zakForm" ""
ozSet "zakFree" "ok"
ozSet "zakHide" ""
ozSet "zakOnGround" ""
ozSet "zakPresence" ""
ozSet "zakPresentation" "ok"
hConvUpdate
ozEntityZak set position 433.848 84.284 289.226
ozEntityZak set orientation 5.1323
ozEntityZak setcycle standCycleNormal
ozEntityZak show
ozEntityLydia set position 436.221 84.284 281.003
ozEntityLydia set orientation 5.1323
ozEntityLydia setcycle standCycleNormal
setScene enchantedHallway world
}
oz'event {oz'delay 0.001}
oz'event {
unfreezePlayer
wizEnableMouse
standardFadein
}
}
## ===================================================== ##
## hill Side ##
## ===================================================== ##
event "hillSide" {
setCamera "hillSide"
wizhCameraChange
chainEvent { delay 500 }
if {[ozGet "tutorialPartTwo"] == "" } {
callEvent "tutorialPartTwo"
}
}
## ===================================================== ##
## camera mustavio Wagon ##
## ===================================================== ##
event "mustavioWagon" {
setCamera "mustavioWagon"
wizhCameraChange
chainEvent { delay 500 }
if {[ozGet "tutorialPartThree"] == "" } {
chainCallEvent "tutorialPartThree"
} else {
oz'event { wizqEntityOrientation Npc 150 }
}
}
## ===================================================== ##
## tutorial Part One ##
## ===================================================== ##
proc ShowIcon {icon} {
set img [wq'widget::new "interface/[MODE]/tut/tut.$icon" -pos 0.828125 0.666666 -alpha 0 -foreground -depth 0.1]
wq'widget::fadeto $img 1
return $img
}
proc HideIcon {id} {
wq'widget::fadeto $id 0 -wait
wq'widget::delete $id
}
event "tutorialPartOne" {
chainEvent {
freezePlayer
wizDisableMouse
}
ozSet "tutorialPartOne" "discussed"
wizqEntityWalk Lydia "-385 2154 -6029"
wizqEntityWalk Npc "-423 2151 -6022" "wait"
oz'event { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
wizqTalkOpen
wizqTalkSay Mustavio $::lng::tutorialStepM1 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM1.ogg"
# Block 1
wizqQueue 1 {
wizqEntityWalk Lydia "-385 2154 -6029" "wait"
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkHandHip "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM2 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM2.ogg"
# Wait for Block 1
wizqWaitQueue 1
# Block 2
wizqQueue 1 {
oz'event { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
chainEvent { delay 500 }
wizqEntityAction Lydia standTurnRightHoldShort "wait"
}
# Block 2-B
wizqQueue 2 {
wizqEntityAction Npc standTalkTwoHands "wait"
wizqEntityAction Npc standYes "wait"
}
set pid [ShowIcon "pause"]
wizqTalkSay Mustavio $::lng::tutorialStepM3 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM3.ogg"
# Wait for Block 2 & 2-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 3
wizqQueue 1 {
chainEvent { delay 500 }
wizqEntityAction Lydia standTurnLeftHoldShort "wait"
}
# Block 3-B
wizqQueue 2 {
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkTwoHands "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM4 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM4.ogg"
HideIcon $pid
# Wait for Block 3 & 3-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 4
wizqQueue 1 {
chainEvent { delay 2000 }
wizqEntityAction Lydia standHandOnChin "wait"
}
# Block 4-B
wizqQueue 2 {
chainEvent { delay 500 }
wizqEntityAction Npc standNo "wait"
wizqEntityAction Npc standTalkHandHip "wait"
}
set pid [ShowIcon "skip"]
wizqTalkSay Mustavio $::lng::tutorialStepM5 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM5.ogg"
# Wait for Block 4 & 4-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 5
wizqQueue 1 {
chainEvent { delay 1000 }
wizqEntityAction Npc standTurnRight "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM6 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM6.ogg"
HideIcon $pid
# Wait for Block 5
wizqWaitQueue 1
# Block 6
wizqQueue 1 {
wizqEntityAction Npc standTalkTwoHands "wait"
wizqEntityAction Npc standYes "wait"
}
set pid [ShowIcon "walk"]
wizqTalkSay Mustavio $::lng::tutorialStepM7 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM7.ogg"
HideIcon $pid
# Wait for Block 6
wizqWaitQueue 1
# Block 7
wizqQueue 1 {
wizqEntityAction Npc standTalkHandHip "wait"
}
set pid [ShowIcon "travel"]
wizqTalkSay Mustavio $::lng::tutorialStepM8 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM8.ogg"
HideIcon $pid
# Wait for Block 7
wizqWaitQueue 1
# Block 8
wizqQueue 1 {
wizqEntityAction Npc standTalkTwoHands "wait"
wizqEntityAction Npc standNo "wait"
}
# Block 8-B
wizqQueue 2 {
chainEvent { delay 5000 }
wizqEntityAction Lydia standYes "wait"
}
set pid [ShowIcon "none"]
wizqTalkSay Mustavio $::lng::tutorialStepM9 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM9.ogg"
HideIcon $pid
wizqTalkClose
# Wait for Block 8 & 8-B
wizqWaitQueue 1
wizqWaitQueue 2
wizqEntityWalk Npc "-438.7 2151.6 -6021.5" "wait"
oz'event { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
# Block 9
wizqQueue 1 {
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkHandHip "wait"
wizqEntityAction Npc standTalkTwoHands "wait"
}
# Block 9-B
wizqQueue 2 {
chainEvent { delay 2000 }
wizqEntityAction Lydia standArmCross "wait"
}
wizqTalkOpen
set pid [ShowIcon "wait"]
wizqTalkSay Mustavio $::lng::tutorialStepM10 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM10.ogg"
HideIcon $pid
wizqTalkClose
# Wait for Block 9 & 9-B
wizqWaitQueue 1
wizqWaitQueue 2
wizqEntityWalk Npc "-448.8 2151.2 -6015.7" "wait"
wizqEnableMouse
oz'event {
unfreezePlayer
wizEnableFloorevent
}
}
## ===================================================== ##
## tutorial Part Two ##
## ===================================================== ##
event "tutorialPartTwo" {
chainEvent {
freezePlayer
wizDisableMouse
}
# this is only to make her walk at Mustavio speed, but it seems good
ozEntityLydia set walkSpeed 5
ozSet "tutorialPartTwo" "discussed"
oz'event { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
oz'event { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
# Block 1
wizqQueue 1 {
oz'event { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkHandHip
}
# Block 1-B
wizqQueue 2 {
chainEvent { delay 500 }
oz'event { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
}
wizqTalkOpen
wizqTalkSay Mustavio $::lng::tutorialStepM11 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM11.ogg"
# Block 2
wizqQueue 1 {
wizqEntityWalk Npc "-470.8 2157.3 -5934.7" "wait"
wizqEntityWalk Npc "-436 2170 -5918" "wait"
wizqEntityWalk Npc "-382.8 2190.1 -5927.7" "wait"
oz'event { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
}
# Block 2-B
wizqQueue 2 {
oz'event { delay 1000 }
wizqEntityWalk Lydia "-460.8 2157.3 -5941.7" "wait"
wizqEntityWalk Lydia "-407.8 2179.8 -5929.7" "wait"
wizqEntityWalk Lydia "-375.8 2189.8 -5936.7" "wait"
oz'event { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
}
set pid [ShowIcon "help"]
wizqTalkSay Mustavio $::lng::tutorialStepM12 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM12.ogg"
wizqTalkSay Mustavio $::lng::tutorialStepM13 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM13.ogg"
wizqTalkSay Mustavio $::lng::tutorialStepM14 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM14.ogg"
HideIcon $pid
set pid [ShowIcon "openmenu"]
wizqTalkSay Mustavio $::lng::tutorialStepM15 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM15.ogg"
HideIcon $pid
set pid [ShowIcon "closemenu"]
wizqTalkSay Mustavio $::lng::tutorialStepM16 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM16.ogg"
# Wait for Block 2 & 2-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 3
wizqQueue 1 {
wizqEntityAction Npc standTalkHandHip "wait"
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkTwoHands "wait"
}
# Block 3-B
wizqQueue 2 {
chainEvent { delay 1500 }
wizqEntityAction Lydia standHandOnChin "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM17 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM17.ogg"
HideIcon $pid
# Wait for Block 3 & 3-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 4
wizqQueue 1 {
chainEvent { delay 500 }
wizqEntityAction Npc standYes "wait"
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkHandHip "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM18 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM18.ogg"
wizqTalkClose
# Wait for Block 4
wizqWaitQueue 1
wizqEntityWalk Npc "-357.8 2204 -5892.7"
# this is to revert to normal walk speed
oz'event { ozEntityLydia set walkSpeed 7.8 }
chainEvent {
unfreezePlayer
wizEnableMouse
}
}
## ===================================================== ##
## tutorial Part Three ##
## ===================================================== ##
event "tutorialPartThree" {
chainEvent {
freezePlayer
wizDisableMouse
}
ozSet "tutorialPartThree" "discussed"
# Block 1
wizqQueue 1 {
wizqEntityWalk Npc "-357.8 2204 -5892.7" "wait"
chainEvent { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
}
# Block 1-B
wizqQueue 2 {
wizqEntityWalk Lydia "-345.3 2204.4 -5900.8" "wait"
chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
}
wizqTalkOpen
wizqTalkSay Mustavio $::lng::tutorialStepM19 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM19.ogg"
# Wait for Block 1 & 1-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 2
wizqQueue 1 {
chainEvent { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
wizqEntityAction Npc standTalkHandHip "wait"
wizqEntityAction Npc standYes "wait"
}
# Block 2-B
wizqQueue 2 {
chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
chainEvent { delay 2000 }
wizqEntityAction Lydia standHandOnChin "wait"
}
set pid [ShowIcon "talk"]
wizqTalkSay Mustavio $::lng::tutorialStepM20 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM20.ogg"
# Wait for Block 2 & 2-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 3
wizqQueue 1 {
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkTwoHands "wait"
chainEvent { delay 1000 }
wizqEntityAction Npc standYes "wait"
}
# Block 3-B
wizqQueue 2 {
chainEvent { delay 4000 }
wizqEntityAction Lydia standYes "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM21 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM21.ogg"
HideIcon $pid
# Wait for Block 3 & 3-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 4
wizqQueue 1 {
chainEvent { delay 1000 }
wizqEntityAction Npc standTalkHandHip "wait"
}
set pid [ShowIcon "menutalk"]
wizqTalkSay Mustavio $::lng::tutorialStepM28 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM28.ogg"
# Wait for Block 4
wizqWaitQueue 1
# Block 5
wizqQueue 1 {
chainEvent { delay 1000 }
wizqEntityAction Npc standYes "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM29 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM29.ogg"
HideIcon $pid
wizqTalkClose
# Wait for Block 5
wizqWaitQueue 1
chainEvent {
unfreezePlayer
wizEnableMouse
}
}
## ===================================================== ##
## tutorial Part Four ##
## ===================================================== ##
event "tutorialPartFour" {
chainEvent {
freezePlayer
wizDisableMouse
}
# Block 1
wizqQueue 1 {
wizqEntityAction Lydia standTalkHandHip "wait"
}
wizqTalkOpen
set pid [ShowIcon "look"]
wizqTalkSay Lydia $::lng::tutorialStepL1 "sound/vo/$::LNG/scenes/tutorial/tutorialStepL1.ogg"
# Block 1-B
wizqQueue 2 {
wizqEntityAction Npc standYes "wait"
wizqEntityAction Npc standTalkHandHip "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM22 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM22.ogg"
HideIcon $pid
# Wait for Block 1 & 1-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 2
wizqQueue 1 {
wizqEntityAction Npc standTalkHandHip "wait"
wizqEntityAction Npc standYes "wait"
}
set pid [ShowIcon "back"]
wizqTalkSay Mustavio $::lng::tutorialStepM23 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM23.ogg"
HideIcon $pid
wizqTalkClose
# Wait for Block 2
wizqWaitQueue 1
oz'event { callEvent "useMustavioWagon" }
}
## ===================================================== ##
## tutorial Part Five ##
## ===================================================== ##
event "tutorialPartFive" {
chainEvent {
freezePlayer
wizDisableMouse
}
# Block 1
wizqQueue 1 {
wizqEntityAction Lydia standTalkTwoHands "wait"
}
wizqTalkOpen
set pid [ShowIcon "use"]
wizqTalkSay Lydia $::lng::tutorialStepL2 "sound/vo/$::LNG/scenes/tutorial/tutorialStepL2.ogg"
# Wait for Block 1
wizqWaitQueue 1
# Block 2
wizqQueue 1 {
chainEvent { delay 2000 }
wizqEntityAction Lydia standHandOnChin "wait"
}
# Block 2-B
wizqQueue 2 {
wizqEntityAction Npc standArmCross "wait"
wizqEntityAction Npc standTalkHandHip "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM24 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM24.ogg"
HideIcon $pid
wizqTalkClose
# Wait for Block 2 & 2-B
wizqWaitQueue 1
wizqWaitQueue 2
oz'event { callEvent "useMustavioWagon" }
}
## ===================================================== ##
## tutorial Part Six ##
## ===================================================== ##
event "tutorialPartSix" {
chainEvent {
freezePlayer
wizDisableMouse
}
# Block 1
wizqQueue 1 {
wizqEntityAction Lydia standHandOnChin "wait"
}
wizqTalkOpen
set pid [ShowIcon "get"]
wizqTalkSay Lydia $::lng::tutorialStepL3 "sound/vo/$::LNG/scenes/tutorial/tutorialStepL3.ogg"
# Wait for Block 1
wizqWaitQueue 1
# Block 2
wizqQueue 1 {
wizqEntityAction Npc standYes "wait"
chainEvent { delay 1500 }
wizqEntityAction Npc standTalkHandHip "wait"
}
wizqTalkSay Mustavio $::lng::tutorialStepM25 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM25.ogg"
HideIcon $pid
# Wait for Block 2
wizqWaitQueue 1
# Block 3
wizqQueue 1 {
wizqEntityAction Npc standTalkTwoHands "wait"
}
set pid [ShowIcon "invmenu"]
wizqTalkSay Mustavio $::lng::tutorialStepM26 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM26.ogg"
HideIcon $pid
wizqTalkClose
# Wait for Block 3
wizqWaitQueue 1
oz'event { callEvent "useMustavioWagon" }
}
## ===================================================== ##
## tutorial Part Seven ##
## ===================================================== ##
event "tutorialPartSeven" {
chainEvent {
freezePlayer
wizDisableMouse
}
ozSet "tutorialEvents" "complete"
ozSet "tutorial.useMustavioWagon" "false"
# Block 1
wizqQueue 1 {
chainEvent { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
}
# Block 1-B
wizqQueue 2 {
wizqEntityWalk Lydia "-346.8 2204 -5896.7" "wait"
chainEvent { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
}
wizqTalkOpen
wizqTalkSay Lydia $::lng::tutorialStepL4 "sound/vo/$::LNG/scenes/tutorial/tutorialStepL4.ogg"
# Wait for Block 1 & 1-B
wizqWaitQueue 1
wizqWaitQueue 2
# Block 2
wizqQueue 1 {
chainEvent { delay 1000 }
wizqEntityOrientation Lydia 180
}
# Block 2-B
wizqQueue 2 {
chainEvent { delay 500 }
wizqEntityWalk Npc "-336 2192 -5833" "wait"
wizqEntityHide Npc
}
wizqTalkSay Mustavio $::lng::tutorialStepM30 "sound/vo/$::LNG/scenes/tutorial/tutorialStepM30.ogg"
wizqTalkClose
# Wait for Block 2
wizqWaitQueue 1
# Block 3
wizqQueue 1 {
chainEvent { delay 1500 }
wizqEntityAction Lydia standHandOnChin "wait"
}
# Wait for Block 3 & 2-B
wizqWaitQueue 1
wizqWaitQueue 2
chainEvent {
unfreezePlayer
wizEnableMouse
}
}
## ===================================================== ##
## tutorial Part Seven ##
## ===================================================== ##
event "useMustavioWagon" {
chainEvent {
freezePlayer
wizDisableMouse
}
oz'event { wizEntityLookAt Npc [wizEntityGetPosition Lydia] }
oz'event { wizEntityLookAt Lydia [wizEntityGetPosition Npc] }
oz'event {
ozIMenu disable help
iactive interface.help true
}
wizqConvRemove npc
chainEvent { delay 1 }
set conv 0
if { [ozGet "wineBottle"] == "" } {
wizqConvAdd npc $::lng::magnifyingLens "tutorial.tutorialPartFour"
set conv 1
}
if { [ozGet "wineBottle"] == "" } {
wizqConvAdd npc $::lng::gearCursor "tutorial.tutorialPartFive"
set conv 1
}
if { [ozGet "wineBottle"] == "" } {
wizqConvAdd npc $::lng::handCursor "tutorial.tutorialPartSix"
set conv 1
}
if { [ozGet "wineBottleEvent"] == "complete" } {
wizqConvAdd npc $::lng::thankHelp "tutorial.tutorialPartSeven"
set conv 1
}
if $conv {
wizqConvOpen
} else {
CloseNPC
}
}
## ===================================================== ##
## look Mustavio Wagon ##
## ===================================================== ##
event "lookMustavioWagon" {
wizEntityMove Lydia "-340.8 2204.9 -5906.7" "tutorial.lookMustavioWagonBehavior" 2
}
## ===================================================== ##
## look Mustavio Walgon Behavior ##
## ===================================================== ##
event "lookMustavioWagonBehavior" {
wizqEntityOrientation Lydia 130
wizqZoomIn "cabinetCloseUp" "tutorial.wagonZoomOut"
}
## ===================================================== ##
## wagon Zoom Out ##
## ===================================================== ##
event "wagonZoomOut" {
CloseAllInterface
if { [ozGet "wagonDoors"] == "open" } {
if {[ozGet "wineBottle"] == "pickedUp"} {
wizqDisableMouse
ozqSound::NewFX "/sound/sfx/wineBottlePlaceBack.ogg"
oz'event {setCrossfadeCamera "cabinetCloseUpOpen"}
oz'event {oz'delay 1}
wizqEnableMouse
ozSet "wineBottle" ""
ozSet "tutorial.useCabinetCloseUpBottle" ""
}
ozSet "wagonDoors" ""
oz'event {setCamera "cabinetCloseUp"}
PlayMovieSound cabinetCloseUp doorClosing "sfx/cartDoorClose"
}
wizqZoomOut "mustavioWagon"
if {[ozGet "wineBottleEvent"] == "complete" && [ozGet "tutorialEvents"] != "complete"} {
chainCallEvent "tutorialPartSeven"
}
}
## ===================================================== ##
## use Cabinet Close Up Right ##
## ===================================================== ##
event "useCabinetCloseUpRight" {
chainEvent {
freezePlayer
wizDisableMouse
}
ozSet "wagonDoors" "open"
PlayMovieSound cabinetCloseUp doorOpening "sfx/cartDoorOpen"
chainEvent {
setCamera "cabinetCloseUpOpen"
wizhCameraChange
}
chainEvent {
unfreezePlayer
wizEnableMouse
}
}
## ===================================================== ##
## use Cabinet Close Up Left ##
## ===================================================== ##
event "useCabinetCloseUpLeft" {
chainEvent {
freezePlayer
wizDisableMouse
}
ozSet "wagonDoors" "open"
PlayMovieSound cabinetCloseUp doorOpening "sfx/cartDoorOpen"
chainEvent {
setCamera "cabinetCloseUpOpen"
wizhCameraChange
}
chainEvent {
unfreezePlayer
wizEnableMouse
}
}
## ===================================================== ##
## use Cabinet Close Up Bottle ##
## ===================================================== ##
event "useCabinetCloseUpBottle" {
chainEvent {
freezePlayer
wizDisableMouse
}
ozSet "wineBottleEvent" "complete"
ozSet "wineBottle" "pickedUp"
ozSet "tutorial.useCabinetCloseUpBottle" "false"
ozqSound::NewFX "/sound/sfx/wineBottlePickup.ogg"
oz'event {setCrossfadeCamera "cabinetCloseUpTaken"}
oz'event {oz'delay 1}
chainEvent {
iq'showdesc wineBottle
}
chainEvent {
unfreezePlayer
wizEnableMouse
}
}
## ===================================================== ##
## trans Hill Top A ##
## ===================================================== ##
event "transHillTopA" {
wizEntityMove Lydia "-345.3 2204.4 -5900.8"
}
## ===================================================== ##
## trans Hill Top B ##
## ===================================================== ##
event "transHillTopB" {
wizEntityMove Lydia "-345.3 2204.4 -5900.8"
}