summary refs log tree commit diff stats
path: root/res/scripts/map2.lua
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-21 18:31:43 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-21 18:31:43 -0500
commitf1118738d56d70989a9a131d6b370b73e8e3bc25 (patch)
treec6fcca0be1f2bb7db35d16f4b1cb38a7de3f632a /res/scripts/map2.lua
parent5df0d0616ee3996add0b14e0fb0becd6257d04a2 (diff)
downloadtanetane-f1118738d56d70989a9a131d6b370b73e8e3bc25.tar.gz
tanetane-f1118738d56d70989a9a131d6b370b73e8e3bc25.tar.bz2
tanetane-f1118738d56d70989a9a131d6b370b73e8e3bc25.zip
Added frozen animation for cutscenes
The player's party will be set to "frozen" at the start of a cutscene and "still" at the end. "frozen" doesn't include idle animations, which are weird to show up during tense exchanges.

A CutsceneOptions enum was introduced to be able to modify the growing number of things that StartCutscene() and HideCutsceneBars() do. Currently the lightning mailbox event uses it so that Lucas's animation is not reset to still (instead of the collapsed animation) after he's electrocuted.
Diffstat (limited to 'res/scripts/map2.lua')
-rw-r--r--res/scripts/map2.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index cb373b4..31b9e00 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua
@@ -89,7 +89,7 @@ function map2.mailbox_lightning()
89 89
90 DisplayMessage("* It was lightning.\n\fAh.", "", SpeakerType.NONE) 90 DisplayMessage("* It was lightning.\n\fAh.", "", SpeakerType.NONE)
91 WaitForEndOfMessage() 91 WaitForEndOfMessage()
92 HideCutsceneBars() 92 HideCutsceneBars(CutsceneOptions.DO_NOT_CHANGE_ANIMATION)
93end 93end
94 94
95function map2.approach_doria() 95function map2.approach_doria()
@@ -142,7 +142,7 @@ function map2.approach_doria()
142 SetAnimation("boney", "crouch") 142 SetAnimation("boney", "crouch")
143 StopSound(barkingNoise) 143 StopSound(barkingNoise)
144 PlaySound("boney_growl.wav") 144 PlaySound("boney_growl.wav")
145 SetAnimation("kuma", "still") 145 SetAnimation("kuma", "frozen")
146 Delay(1000) 146 Delay(1000)
147 147
148 SetAnimation("doria", "talk") 148 SetAnimation("doria", "talk")