From d56dd53791a0f0b8d6c5fb284ef44a770525f27a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 22:09:16 -0300 Subject: Add the puzzles controller to Sagratha's Cave. It also comes with a bonus chest/mimic on a "trap" room --- npc/015-8/_import.txt | 1 + npc/015-8/puzzle.txt | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 npc/015-8/puzzle.txt 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; +} + -- cgit v1.2.3-60-g2f50