From 665263cc27ab07bcdcca3803c11729dca27cbb50 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 19 Dec 2018 03:24:26 -0200 Subject: I don't think anyone would be insane enough to even attempt it, but add Master Dungeon. Once we estabilish the victory conditions, we can worry with rewards. (probably involves turning on a lot of switches and opening invisible walls) --- npc/018-2-1/warps.txt | 2 -- npc/018-2-2/main.txt | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/npc/018-2-1/warps.txt b/npc/018-2-1/warps.txt index a023803be..25cdc3e6a 100644 --- a/npc/018-2-1/warps.txt +++ b/npc/018-2-1/warps.txt @@ -70,8 +70,6 @@ OnTouch: closedialog; break; case 6: - mesc l("Work in Progress."), 1; - close; @HH_LEVEL=HH_MASTER; @HH_TIMER=0; warp "018-2-3", 132, 92; diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt index d504b072f..1fd22c882 100644 --- a/npc/018-2-2/main.txt +++ b/npc/018-2-2/main.txt @@ -17,6 +17,10 @@ OnPlayerCycle: end; } // TODO: Handle traps (We'll use isin() command because you can give 3~4 steps each counter) + if (rand(0,1000) <= @HH_LEVEL) { + dispbottom l("You step on a trap!"); + heal -(@HH_LEVEL*rand(2,5)), 0; + } // Continue the execution addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle"); @@ -271,6 +275,14 @@ OnInstanceInit: } freeloop(false); } + // HH_MASTER + freeloop(true); + for (.@i=0;.@i