From 45967984a959680e9bbf8db85229b52dbcebf466 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 12 Dec 2021 13:10:09 -0300 Subject: Add failsafes --- npc/080-1/final.txt | 3 +++ npc/081-2/logic.txt | 18 +++++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/npc/080-1/final.txt b/npc/080-1/final.txt index e288a275..a287c6c1 100644 --- a/npc/080-1/final.txt +++ b/npc/080-1/final.txt @@ -195,6 +195,9 @@ OnPayFunds: if (mobcount(getmap(), "#X21BarrierF::OnKil")) { dispbottom strcharinfo(0) + " : " + l("This clearly is not a real gate; Most likely an illusion to prevent access. I should be able to dispel it by killing the guardians."); + slide 84, 137; + if (checkcell(getmap(), 84, 135, cell_chkpass)) + setcells .@mapd$, 81, 131, 86, 135, 1, "X21LF@"+X21ID(); end; } delcells("X21LF@"+X21ID()); diff --git a/npc/081-2/logic.txt b/npc/081-2/logic.txt index 6cecaf6e..5a985cce 100644 --- a/npc/081-2/logic.txt +++ b/npc/081-2/logic.txt @@ -175,8 +175,12 @@ OnInit: 081-2,103,213,0 script #X21Barrier1 NPC_HIDDEN,4,1,{ @inst = instance_id() + 1; - if (!'XMAS21CANDLE) + if (!'XMAS21CANDLE) { dispbottom l("Northern Lights")+" : "+l("The strong shall yield the %s to enlighten the way, according to the established sequence.", b(l("powder"))); + slide 105, 214; + if (checkcell(getmap(), 105, 212, cell_chkpass)) + setcells .@mapa$, 103, 211, 107, 212, 1, "X21L1@"+X21ID(); + } end; OnInit: .distance=1; @@ -187,8 +191,12 @@ OnInit: /* Seeds Puzzle - See 2021.txt */ 081-2,127,129,0 script #X21Barrier2 NPC_HIDDEN,4,0,{ - if (!'XMAS21TREE) + if (!'XMAS21TREE) { npctalkonce l("In this year Christmas, kids shall play ball. Once the Christmas Tree is set, the festivities may proceed."); + slide 127, 130; + if (checkcell(getmap(), 127, 128, cell_chkpass)) + setcells .@mapa$, 124, 127, 131, 128, 1, "X21L2@"+X21ID(); + } end; OnInit: .distance=1; @@ -230,8 +238,12 @@ OnInit: /* Ambush Puzzle */ 081-2,49,73,0 script #X21Barrier3 NPC_HIDDEN,2,0,{ - if (!'XMAS21AMBUSH) + if (!'XMAS21AMBUSH) { npctalkonce l("One room, Seventeen buttons, Three truths, and a lever to bring joy to the children."); + slide 49, 74; + if (checkcell(getmap(), 49, 72, cell_chkpass)) + setcells .@mapa$, 47, 71, 51, 72, 1, "X21L3@"+X21ID(); + } end; OnInit: .distance=1; -- cgit v1.2.3-60-g2f50