diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-28 10:15:19 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-28 10:15:19 -0500 |
| commit | b3c8a3ab263e2312a35ef68ffb56217eeb619803 (patch) | |
| tree | 454ea071f289ae83b5250b133a57ef074de3cbfd /res/scripts/hallucination_interior.lua | |
| parent | 0206fa078e60c0478de6d10376a02377c8574914 (diff) | |
| download | tanetane-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.lua | 32 |
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() |
| 189 | end | 189 | end |
| 190 | |||
| 191 | function 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() | ||
| 221 | end | ||
