summary refs log tree commit diff stats
path: root/res/scripts/hallucination_interior.lua
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-28 10:15:19 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-28 10:15:19 -0500
commitb3c8a3ab263e2312a35ef68ffb56217eeb619803 (patch)
tree454ea071f289ae83b5250b133a57ef074de3cbfd /res/scripts/hallucination_interior.lua
parent0206fa078e60c0478de6d10376a02377c8574914 (diff)
downloadtanetane-b3c8a3ab263e2312a35ef68ffb56217eeb619803.tar.gz
tanetane-b3c8a3ab263e2312a35ef68ffb56217eeb619803.tar.bz2
tanetane-b3c8a3ab263e2312a35ef68ffb56217eeb619803.zip
Added time passage mailbox event
Diffstat (limited to 'res/scripts/hallucination_interior.lua')
-rw-r--r--res/scripts/hallucination_interior.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/res/scripts/hallucination_interior.lua b/res/scripts/hallucination_interior.lua index bd075f1..4fbaa99 100644 --- a/res/scripts/hallucination_interior.lua +++ b/res/scripts/hallucination_interior.lua
@@ -187,3 +187,35 @@ function hallucination_interior.talk_to_ionia()
187 SetAnimation("ionia", "still") 187 SetAnimation("ionia", "still")
188 HideCutsceneBars() 188 HideCutsceneBars()
189end 189end
190
191function hallucination_interior.mailbox_time_passage()
192 StartCutscene()
193 DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE)
194 ShowChoice("Yes", "No")
195 WaitForEndOfMessage()
196
197 if GetChoiceSelection() == 1 then
198 HideCutsceneBars()
199 return
200 end
201
202 FadeoutMusic(2000)
203 Delay(4000)
204
205 DisplayMessage("* Inside the mailbox is a long hallway.", "", SpeakerType.NONE)
206 WaitForEndOfMessage()
207
208 Delay(1000)
209
210 FadeToBlack(1000)
211
212 HideCutsceneBars()
213 DisablePlayerControl()
214 ChangeMap("time_passage", "fromMailbox", ChangeMapOptions.DO_NOT_FADE | ChangeMapOptions.DO_NOT_CHANGE_MUSIC)
215 Delay(1000)
216
217 PlayMusic("time_passage", 2000)
218 RemoveFadeout(2000)
219
220 EnablePlayerControl()
221end