From 065d5dbac17664666d6a83583141d4cdf0bb691c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 12 Mar 2021 16:41:25 -0500 Subject: Interacting with Kuma and Duster in the finale The hot spring is also a little bigger now, because I'm using an enclosure to keep Lucas in, instead of setting the tiles to being solid or not. #20 --- res/scripts/finale.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'res/scripts/finale.lua') diff --git a/res/scripts/finale.lua b/res/scripts/finale.lua index 2493473..7e23336 100644 --- a/res/scripts/finale.lua +++ b/res/scripts/finale.lua @@ -3,15 +3,37 @@ finale = {} function finale.init() character():breakUpParty(getPlayerSprite()) + AddEnclosureZone("lucas", "hotspring_enclosure") + MoveSpriteToWarp("kuma", "kumatora_start") SetDirection("kuma", Direction.UP) SetAnimation("kuma", "swim_still") + MakeSpriteSolid("kuma") + SetInteractionScript("kuma", "talk_to_kuma") MoveSpriteToWarp("duster", "duster_start") SetDirection("duster", Direction.RIGHT) SetAnimation("duster", "swim_still") + MakeSpriteSolid("duster") + SetInteractionScript("duster", "talk_to_duster") MoveSpriteToWarp("boney", "boney_start") SetDirection("boney", Direction.DOWN) SetAnimation("boney", "asleep") end + +function finale.talk_to_kuma() + SetDirection("kuma", Direction.UP) + StartCutscene() + DisplayMessage("* Kumatora doesn't respond.\n\f* She is grumbling to herself, and picking at the grass growing over the wall.", "", SpeakerType.NONE) + WaitForEndOfMessage() + HideCutsceneBars() +end + +function finale.talk_to_duster() + SetDirection("duster", Direction.RIGHT) + StartCutscene() + DisplayMessage("* Duster doesn't respond.\n\f* He is simply staring at his own reflection in the water.", "", SpeakerType.NONE) + WaitForEndOfMessage() + HideCutsceneBars() +end -- cgit 1.4.1