summary refs log tree commit diff stats
path: root/res/scripts/hallucination_hot_spring.lua
diff options
context:
space:
mode:
Diffstat (limited to 'res/scripts/hallucination_hot_spring.lua')
-rw-r--r--res/scripts/hallucination_hot_spring.lua26
1 files changed, 23 insertions, 3 deletions
diff --git a/res/scripts/hallucination_hot_spring.lua b/res/scripts/hallucination_hot_spring.lua index df4084c..4e3ca44 100644 --- a/res/scripts/hallucination_hot_spring.lua +++ b/res/scripts/hallucination_hot_spring.lua
@@ -15,15 +15,20 @@ end
15 15
16function hallucination_hot_spring.enter_hot_spring() 16function hallucination_hot_spring.enter_hot_spring()
17 if gamestate.ionia_in_water then 17 if gamestate.ionia_in_water then
18 StartCutscene(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) 18 -- Soft cutscene start; don't show bars but do take away control
19 getSprite(getPlayerSprite()).controllable = false
20 character():halt(getPlayerSprite())
21
22 -- Leave the rest of the party behind and have Lucas wade into the hot spring
19 character():breakUpParty(getPlayerSprite()) 23 character():breakUpParty(getPlayerSprite())
20 getSprite(getPlayerSprite()).paused = false
21 character():moveInDirection(getPlayerSprite(), Direction.UP) 24 character():moveInDirection(getPlayerSprite(), Direction.UP)
22 Delay(500) 25 Delay(500)
23 character():stopDirecting(getPlayerSprite()) 26 character():stopDirecting(getPlayerSprite())
24 getSprite(getPlayerSprite()).paused = true
25 SetDirection("lucas", Direction.DOWN) 27 SetDirection("lucas", Direction.DOWN)
26 Delay(1000) 28 Delay(1000)
29
30 -- Show the cutscene bars when he gets surprised
31 StartCutscene(CutsceneOptions.DO_NOT_CHANGE_ANIMATION)
27 ShowExpression("lucas", "surprise") 32 ShowExpression("lucas", "surprise")
28 Delay(1000) 33 Delay(1000)
29 RemoveExpression("lucas") 34 RemoveExpression("lucas")
@@ -32,6 +37,21 @@ function hallucination_hot_spring.enter_hot_spring()
32 Delay(200) 37 Delay(200)
33 PlaySound("splash_submerge.wav") 38 PlaySound("splash_submerge.wav")
34 WaitForAnimation("lucas") 39 WaitForAnimation("lucas")
40 Delay(1000)
41
42 -- After we fade to black, move the rest of the party offscreen.
43 -- We need to remove control again right after the map change because
44 -- ChangeMap automatically gives it back.
45 FadeToBlack(1000)
46 HideCutsceneBars()
47 SetPosition("kuma", -100, -100)
48 SetPosition("duster", -100, -100)
49 SetPosition("boney", -100, -100)
50 ChangeMap("underwater_start", "spawn", ChangeMapOptions.DO_NOT_FADE)
51 getSprite(getPlayerSprite()).controllable = false
52 Delay(500)
53 RemoveFadeout(1000)
54 getSprite(getPlayerSprite()).controllable = true
35 end 55 end
36end 56end
37 57