From 5ecd0f428dd8292a17c5013c525a4f5d3967acb8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 12 Feb 2021 00:33:19 -0500 Subject: Scripts are organised per-map now --- res/scripts/map1.lua | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 res/scripts/map1.lua (limited to 'res/scripts/map1.lua') 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 @@ +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 -- cgit 1.4.1