summaryrefslogtreecommitdiff
path: root/npc/026-6/ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'npc/026-6/ctrl.c')
-rw-r--r--npc/026-6/ctrl.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/npc/026-6/ctrl.c b/npc/026-6/ctrl.c
new file mode 100644
index 000000000..f443e331a
--- /dev/null
+++ b/npc/026-6/ctrl.c
@@ -0,0 +1,40 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// The Impregnable Fortress Control Files
+// Quest: General_Fortress
+// (MaxFloor+2, internal, internal)
+
+// The antechamber has some traps you should avoid, but beyond the Blood Pact map
+// effect, it only has some support NPCs (banker and healer) if you completed the
+// Moubootaur Showdown earlier.
+
+// TODO: Validate the use of MKIF_LV_BXF
+// TODO: The main NPC which lets you out of here
+// TODO: The traps
+// TODO: The boss chamber (also, are mapflags working? This should be a Blood Pact)
+026-6,21,70,0, script #026-6Gate NPC_FANCY_CIRCLE,1,0,{
+ if (getq(General_Fortress) < 6) { die(); end; }
+ mesc l(".:: Impregnable Fortress, %sF ::.", "B6"), 3;
+ msObjective($MK_TEMPVAR >= MKIF_LV_B7F, l("Minimum wins: %d/%d", $MK_TEMPVAR, MKIF_LV_B7F));
+ mes "";
+ mesc l("Hint: The Boss Chamber lies herein ahead.");
+ close;
+
+L_Warp:
+ // Not unlocked
+ if ($GAME_STORYLINE >= 3 && $MK_TEMPVAR < MKIF_LV_B7F) {
+ mesc l("The gate is sealed shut."), 1;
+ mesc l("The monster army is still strong on this floor!"), 1;
+ mesc l("Minimum wins: %d/%d", $MK_TEMPVAR, MKIF_LV_B7F), 1;
+ close;
+ }
+ //warp "026-7", X, Y; // Or maybe just a slide
+ end;
+
+OnInit:
+ .distance=3;
+ end;
+}
+