summary refs log tree commit diff stats
path: root/res/scripts/map1.lua
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-12 00:33:19 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-12 00:33:19 -0500
commit5ecd0f428dd8292a17c5013c525a4f5d3967acb8 (patch)
tree0068b66a1183f822909f115a142fae3869a3b09f /res/scripts/map1.lua
parent19be2ac58b09c5240a32e6a4f41cd9f6cda03d07 (diff)
downloadtanetane-5ecd0f428dd8292a17c5013c525a4f5d3967acb8.tar.gz
tanetane-5ecd0f428dd8292a17c5013c525a4f5d3967acb8.tar.bz2
tanetane-5ecd0f428dd8292a17c5013c525a4f5d3967acb8.zip
Scripts are organised per-map now
Diffstat (limited to 'res/scripts/map1.lua')
-rw-r--r--res/scripts/map1.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/res/scripts/map1.lua b/res/scripts/map1.lua new file mode 100644 index 0000000..7d6014a --- /dev/null +++ b/res/scripts/map1.lua
@@ -0,0 +1,38 @@
1map1 = {}
2
3function map1.script0001()
4 StartCutscene()
5 SetAnimation("boney", "barking")
6 local barkingNoise = LoopSound("barking_at_hallucination.wav")
7
8 SetAnimation("flint", "talk")
9 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)
10 ShowChoice("Yes", "No")
11 WaitForEndOfMessage()
12
13 SetAnimation("boney", "crouch")
14 StopSound(barkingNoise)
15 PlaySound("boney_growl.wav")
16
17 if GetChoiceSelection() == 0 then
18 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)
19 else
20 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)
21 end
22
23 WaitForEndOfMessage()
24 SetAnimation("flint", "still")
25 HideCutsceneBars()
26end
27
28function map1.off_right()
29 ChangeMap("map2", "fromLeft")
30end
31
32function map1.test_trigger()
33 StartCutscene()
34 PlaySound("boney_growl.wav")
35 DisplayMessage("* Hi! Welcome to the funky zone.", "", SpeakerType.NONE)
36 WaitForEndOfMessage()
37 HideCutsceneBars()
38end