summary refs log tree commit diff stats
path: root/res/scripts/map1.lua
blob: 7d6014a6d5c2a39dadbff7c65b0e540479c64a1f (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
map1 = {}

function map1.script0001()
  StartCutscene()
  SetAnimation("boney", "barking")
  local barkingNoise = LoopSound("barking_at_hallucination.wav")

  SetAnimation("flint", "talk")
  DisplayMessage("* Lucas. It's me, Flint. Your father.\n\f* I found Claus. He's here. After three years I've finally found your brother.\n\fAre you ready to see him again?", "Flint", SpeakerType.MAN)
  ShowChoice("Yes", "No")
  WaitForEndOfMessage()

  SetAnimation("boney", "crouch")
  StopSound(barkingNoise)
  PlaySound("boney_growl.wav")

  if GetChoiceSelection() == 0 then
    DisplayMessage("* I can hear the tremor in your voice, Lucas.\n\fLies are little games a mouth plays while the person attached withers away slowly.\n\fClaus is coming, whether you like it or not.\nWill you be able to look him in the eye?", "Flint", SpeakerType.MAN)
  else
    DisplayMessage("* Look at me when I'm talking to you, Lucas.\n\f* When Claus gets home, we won't need you anymore.\nYou're nothing compared to him.", "Flint", SpeakerType.MAN)
  end

  WaitForEndOfMessage()
  SetAnimation("flint", "still")
  HideCutsceneBars()
end

function map1.off_right()
  ChangeMap("map2", "fromLeft")
end

function map1.test_trigger()
  StartCutscene()
  PlaySound("boney_growl.wav")
  DisplayMessage("* Hi! Welcome to the funky zone.", "", SpeakerType.NONE)
  WaitForEndOfMessage()
  HideCutsceneBars()
end