summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/015-8/_import.txt1
-rw-r--r--npc/015-8/puzzle.txt39
2 files changed, 40 insertions, 0 deletions
diff --git a/npc/015-8/_import.txt b/npc/015-8/_import.txt
index b2d06836b..0258f7cbf 100644
--- a/npc/015-8/_import.txt
+++ b/npc/015-8/_import.txt
@@ -2,4 +2,5 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/015-8/_mobs.txt",
"npc/015-8/config.txt",
+"npc/015-8/puzzle.txt",
"npc/015-8/sealedshrine.txt",
diff --git a/npc/015-8/puzzle.txt b/npc/015-8/puzzle.txt
new file mode 100644
index 000000000..902fcc264
--- /dev/null
+++ b/npc/015-8/puzzle.txt
@@ -0,0 +1,39 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// PUZZLES and TRAPS submodule - Sagratha's Cave - 015-8
+// Uses setq3 - setq1 stage 3
+// NPC_FAKIR + NPC_STATUE_FAFA
+
+// Chasm at third seal
+015-8,120,158,0 script #SaggyPuzzleChasm NPC_HIDDEN,0,4,{
+ end;
+OnTouch:
+ npctalk3 l("A huge chasm you cannot cross.");
+ end;
+}
+
+015-8,124,158,0 script #SaggyPuzzleChasmSkip NPC_HIDDEN,0,4,{
+ end;
+OnTouch:
+ slide 119, 160;
+ end;
+}
+
+
+// Controls a chest/mimic on the trap room
+015-8,0,0,0 script #SaggyChestCtrl NPC_HIDDEN,{
+ end;
+
+OnDelay:
+ initnpctimer;
+ end;
+
+OnTimer80000:
+ stopnpctimer;
+OnInit:
+ monster "015-8", 119+rand2(-3, 3), 35+rand2(-3, 3), "Treasure Chest", any(BronzeChest,BronzeMimic), 1, "#SaggyChestCtrl::OnDelay";
+ end;
+}
+