summary refs log tree commit diff stats
path: root/res/scripts/finale.lua
blob: 7e2333622d6ad4a8a66608b24cbef8702961cf25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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