summary refs log tree commit diff stats
path: root/res/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'res/scripts')
-rw-r--r--res/scripts/hallucination_beach.lua (renamed from res/scripts/map1.lua)10
-rw-r--r--res/scripts/hallucination_interior.lua (renamed from res/scripts/map2.lua)16
2 files changed, 13 insertions, 13 deletions
diff --git a/res/scripts/map1.lua b/res/scripts/hallucination_beach.lua index 7d6014a..be9277d 100644 --- a/res/scripts/map1.lua +++ b/res/scripts/hallucination_beach.lua
@@ -1,6 +1,6 @@
1map1 = {} 1hallucination_beach = {}
2 2
3function map1.script0001() 3function hallucination_beach.script0001()
4 StartCutscene() 4 StartCutscene()
5 SetAnimation("boney", "barking") 5 SetAnimation("boney", "barking")
6 local barkingNoise = LoopSound("barking_at_hallucination.wav") 6 local barkingNoise = LoopSound("barking_at_hallucination.wav")
@@ -25,11 +25,11 @@ function map1.script0001()
25 HideCutsceneBars() 25 HideCutsceneBars()
26end 26end
27 27
28function map1.off_right() 28function hallucination_beach.off_right()
29 ChangeMap("map2", "fromLeft") 29 ChangeMap("hallucination_interior", "fromLeft")
30end 30end
31 31
32function map1.test_trigger() 32function hallucination_beach.test_trigger()
33 StartCutscene() 33 StartCutscene()
34 PlaySound("boney_growl.wav") 34 PlaySound("boney_growl.wav")
35 DisplayMessage("* Hi! Welcome to the funky zone.", "", SpeakerType.NONE) 35 DisplayMessage("* Hi! Welcome to the funky zone.", "", SpeakerType.NONE)
diff --git a/res/scripts/map2.lua b/res/scripts/hallucination_interior.lua index 31b9e00..f0716dc 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/hallucination_interior.lua
@@ -1,10 +1,10 @@
1map2 = {} 1hallucination_interior = {}
2 2
3function map2.off_left() 3function hallucination_interior.off_left()
4 ChangeMap("map1", "fromRight") 4 ChangeMap("hallucination_beach", "fromRight")
5end 5end
6 6
7function map2.mailbox1() 7function hallucination_interior.mailbox1()
8 StartCutscene() 8 StartCutscene()
9 DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) 9 DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE)
10 ShowChoice("Yes", "No") 10 ShowChoice("Yes", "No")
@@ -24,7 +24,7 @@ function map2.mailbox1()
24 HideCutsceneBars() 24 HideCutsceneBars()
25end 25end
26 26
27function map2.join_claus() 27function hallucination_interior.join_claus()
28 StartCutscene() 28 StartCutscene()
29 SetAnimation("join_claus", "talk") 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) 30 DisplayMessage("* Say, Lucas. Whatcha up to?\n\f* It looks so fun! Let me join you!", "Claus", SpeakerType.MAN)
@@ -50,7 +50,7 @@ function map2.join_claus()
50 HideCutsceneBars() 50 HideCutsceneBars()
51end 51end
52 52
53function map2.mailbox_lightning() 53function hallucination_interior.mailbox_lightning()
54 StartCutscene() 54 StartCutscene()
55 DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) 55 DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE)
56 ShowChoice("Yes", "No") 56 ShowChoice("Yes", "No")
@@ -92,7 +92,7 @@ function map2.mailbox_lightning()
92 HideCutsceneBars(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) 92 HideCutsceneBars(CutsceneOptions.DO_NOT_CHANGE_ANIMATION)
93end 93end
94 94
95function map2.approach_doria() 95function hallucination_interior.approach_doria()
96 if gamestate.approached_doria then 96 if gamestate.approached_doria then
97 return 97 return
98 end 98 end
@@ -173,7 +173,7 @@ function map2.approach_doria()
173 HideCutsceneBars() 173 HideCutsceneBars()
174end 174end
175 175
176function map2.talk_to_ionia() 176function hallucination_interior.talk_to_ionia()
177 Halt("ionia") 177 Halt("ionia")
178 StartCutscene() 178 StartCutscene()
179 SetAnimation("ionia", "talk") 179 SetAnimation("ionia", "talk")