diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-05 09:58:45 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-05 09:58:45 -0500 |
commit | cd72ba5481705072b893d728e2f80931b5cca580 (patch) | |
tree | 5cc659195ec8b0797b530cf03d148fd4c839a625 /res/scripts/underwater.lua | |
parent | 7e3b59b09399bf8da243fb4122caa2c9c10d2624 (diff) | |
download | tanetane-cd72ba5481705072b893d728e2f80931b5cca580.tar.gz tanetane-cd72ba5481705072b893d728e2f80931b5cca580.tar.bz2 tanetane-cd72ba5481705072b893d728e2f80931b5cca580.zip |
Wrote exit area scripts for underwater and time passage
Diffstat (limited to 'res/scripts/underwater.lua')
-rw-r--r-- | res/scripts/underwater.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/res/scripts/underwater.lua b/res/scripts/underwater.lua index 0b62ff5..f0dd29f 100644 --- a/res/scripts/underwater.lua +++ b/res/scripts/underwater.lua | |||
@@ -12,6 +12,20 @@ function underwater.leave() | |||
12 | SetAnimationSlowdown("lucas", 1) | 12 | SetAnimationSlowdown("lucas", 1) |
13 | end | 13 | end |
14 | 14 | ||
15 | function underwater.exit_area() | ||
16 | ExitAreaTransition() | ||
17 | underwater.leave() | ||
18 | ChangeMap("hallucination_hot_spring", "exit_area_from_underwater", ChangeMapOptions.DO_NOT_FADE) | ||
19 | MoveSpriteToWarp("kuma", "exit_area_from_underwater") | ||
20 | MoveSpriteToWarp("duster", "exit_area_from_underwater") | ||
21 | MoveSpriteToWarp("boney", "exit_area_from_underwater") | ||
22 | character():addSpriteToParty(getPlayerSprite(), getSpriteByAlias("kuma")) | ||
23 | character():addSpriteToParty(getPlayerSprite(), getSpriteByAlias("duster")) | ||
24 | character():addSpriteToParty(getPlayerSprite(), getSpriteByAlias("boney")) | ||
25 | RemoveFadeout(1000) | ||
26 | EnablePlayerControl() | ||
27 | end | ||
28 | |||
15 | function underwater.fish2() | 29 | function underwater.fish2() |
16 | StartCutscene() | 30 | StartCutscene() |
17 | DisplayMessage("* What are you complaining about?\nYou're so powerful now...\n\fYou owe it all to her.", "Fish", SpeakerType.BOY) | 31 | DisplayMessage("* What are you complaining about?\nYou're so powerful now...\n\fYou owe it all to her.", "Fish", SpeakerType.BOY) |