summary refs log tree commit diff stats
path: root/res/scripts
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-18 12:32:53 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-18 12:32:53 -0500
commitc1a62ba1459cf849b5ee965aa461e10695bb0b01 (patch)
treed2dbd6493c2ea367f8673b6557ed0ac136cf71f8 /res/scripts
parentaac57db782718bf40a7adea15baf8d6b899ea925 (diff)
downloadtanetane-c1a62ba1459cf849b5ee965aa461e10695bb0b01.tar.gz
tanetane-c1a62ba1459cf849b5ee965aa461e10695bb0b01.tar.bz2
tanetane-c1a62ba1459cf849b5ee965aa461e10695bb0b01.zip
Started adding event where Claus joins the party
Diffstat (limited to 'res/scripts')
-rw-r--r--res/scripts/map2.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 295a0c1..3c3a5d9 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua
@@ -24,6 +24,32 @@ function map2.mailbox1()
24 HideCutsceneBars() 24 HideCutsceneBars()
25end 25end
26 26
27function map2.join_claus()
28 StartCutscene()
29 SetAnimation("join_claus", "talk")
30 DisplayMessage("* Say, Lucas. Whatcha up to?\n\f* It looks so fun! Let me join you!", "Claus", SpeakerType.MAN)
31 ShowChoice("Yes", "No")
32 WaitForEndOfMessage()
33
34 if GetChoiceSelection() == 0 then
35 DisplayMessage("* Yes!\n\f* Okay, then I'll be at the very end!\n* Thanks!", "Claus", SpeakerType.MAN)
36 WaitForEndOfMessage()
37
38 local clausId = getSpriteByAlias("join_claus")
39 character():addSpriteToParty(getPlayerSprite(), clausId)
40 transform():undoCollision(clausId)
41
42 local clausSprite = getSprite(clausId)
43 clausSprite.persistent = true
44 else
45 DisplayMessage("* You won't let me join in?\nWhy not? Why not?\n\f* Why won't you let me join in?", "Claus", SpeakerType.MAN)
46 WaitForEndOfMessage()
47 end
48
49 SetAnimation("join_claus", "still")
50 HideCutsceneBars()
51end
52
27function map2.mailbox_lightning() 53function map2.mailbox_lightning()
28 StartCutscene() 54 StartCutscene()
29 DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) 55 DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE)