From d9b5c57c91ba77b840ede8c4385229cf004f5747 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 15 Feb 2021 15:49:58 -0500 Subject: Added heart glyph and gamestate script object --- res/scripts/common.lua | 2 ++ res/scripts/map2.lua | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'res/scripts') diff --git a/res/scripts/common.lua b/res/scripts/common.lua index 422d157..caab86a 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua @@ -30,6 +30,8 @@ SpriteLayer = { ABOVE = 1 } +gamestate = {} + function Delay(time) while time > 0 do time = time - coroutine.yield() diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 1249f7d..c4b588c 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua @@ -67,5 +67,16 @@ function map2.mailbox_lightning() end function map2.approach_doria() - SetAnimation("doria", "hearts") + if gamestate.approached_doria then + return + end + + gamestate.approached_doria = true + + StartCutscene() + SetDirection("doria", Direction.DOWN_RIGHT) + SetAnimation("doria", "talk") + DisplayMessage("* Oh my!\n* Is that our little Kumatora I spy? `", "Doria", SpeakerType.MAN) + + HideCutsceneBars() end -- cgit 1.4.1