From 88530b61ff77b4e9af38dcd5673d311738f54578 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 25 Feb 2021 22:15:04 -0500 Subject: Lucas wades into hot spring alone when Ionia is there --- res/maps/hallucination_hot_spring.tmx | 7 ++++++- res/scripts/hallucination_hot_spring.lua | 30 ++++++++++++++++++++---------- 2 files changed, 26 insertions(+), 11 deletions(-) (limited to 'res') diff --git a/res/maps/hallucination_hot_spring.tmx b/res/maps/hallucination_hot_spring.tmx index 60b25d2..2bb840d 100644 --- a/res/maps/hallucination_hot_spring.tmx +++ b/res/maps/hallucination_hot_spring.tmx @@ -1,5 +1,5 @@ - + @@ -41,6 +41,11 @@ + + + + + diff --git a/res/scripts/hallucination_hot_spring.lua b/res/scripts/hallucination_hot_spring.lua index 6713e0c..df4084c 100644 --- a/res/scripts/hallucination_hot_spring.lua +++ b/res/scripts/hallucination_hot_spring.lua @@ -13,16 +13,26 @@ function hallucination_hot_spring.off_right() ChangeMap("hallucination_cliff", "fromLeft") end -function hallucination_hot_spring.testing_lucas_submerge() - StartCutscene(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) - ShowExpression("lucas", "surprise") - Delay(1000) - RemoveExpression("lucas") - Delay(2000) - SetAnimation("lucas", "submerge!") - Delay(200) - PlaySound("splash_submerge.wav") - WaitForAnimation("lucas") +function hallucination_hot_spring.enter_hot_spring() + if gamestate.ionia_in_water then + StartCutscene(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) + character():breakUpParty(getPlayerSprite()) + getSprite(getPlayerSprite()).paused = false + character():moveInDirection(getPlayerSprite(), Direction.UP) + Delay(500) + character():stopDirecting(getPlayerSprite()) + getSprite(getPlayerSprite()).paused = true + SetDirection("lucas", Direction.DOWN) + Delay(1000) + ShowExpression("lucas", "surprise") + Delay(1000) + RemoveExpression("lucas") + Delay(2000) + SetAnimation("lucas", "submerge!") + Delay(200) + PlaySound("splash_submerge.wav") + WaitForAnimation("lucas") + end end function hallucination_hot_spring.testing_lucas_resurface() -- cgit 1.4.1