From 087ad55b3293290750fd4fc3c31e7c141d53d307 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 30 Oct 2018 22:38:57 -0200 Subject: Triggers, and now is bed time. Later I code the main event, and test. And the noobs event too... --- npc/023-2/mk.txt | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 4 deletions(-) (limited to 'npc/023-2') diff --git a/npc/023-2/mk.txt b/npc/023-2/mk.txt index c3007e185..b88e67633 100644 --- a/npc/023-2/mk.txt +++ b/npc/023-2/mk.txt @@ -4,9 +4,14 @@ // Description: // Nivalis Liberation Day +// The Walking Monster King 023-2,121,35,0 script The Monster King#NLib NPC_MONSTERKING,{ end; +OnTouch: + percentheal -100, -100; + end; + OnInit: .sex = G_MALE; .distance = 5; @@ -26,12 +31,10 @@ OnHour00: case 4: movenpc(.name$, 102, 63, DIR_WEST); break; case 5: - movenpc(.name$, 81, 59, DIR_EAST); break; + movenpc(.name$, 81, 59, DIR_NORTH); break; case 6: - movenpc(.name$, 76, 48, DIR_WEST); break; - case 7: movenpc(.name$, 53, 53, DIR_SOUTH); break; - case 8: + case 7: movenpc(.name$, 36, 99, DIR_SOUTH); break; default: channelmes("#world", "A bug happened: Monster King # Nivalis Liberation Day - Value Out of Range."); disablenpc .name$; break; @@ -40,3 +43,93 @@ OnHour00: end; } + +// Floor triggers +023-2,121,35,0 script #NLIB_T01 NPC_HIDDEN,1,2,{ + +OnTouch: + if ($NLIB_DAY == 1) { + @QNL3=1; + dispbottom l("I've found the Monster King."); + } + end; +} + + +023-2,110,36,0 script #NLIB_T02 NPC_HIDDEN,2,2,{ + +OnTouch: + if ($NLIB_DAY == 2) { + @QNL3=1; + dispbottom l("I've found the Monster King."); + } else if ($NLIB_DAY < 2) { + slide 114, 36; + dispbottom l("I should not veer off too much the path."); + } + end; +} + +023-2,105,50,0 script #NLIB_T03 NPC_HIDDEN,2,2,{ + +OnTouch: + if ($NLIB_DAY == 3) { + @QNL3=1; + dispbottom l("I've found the Monster King."); + } else if ($NLIB_DAY < 3) { + slide 104, 48; + dispbottom l("I should not veer off too much the path."); + } + end; +} + +023-2,104,62,0 script #NLIB_T04 NPC_HIDDEN,0,0,{ + +OnTouch: + if ($NLIB_DAY == 4) { + @QNL3=1; + dispbottom l("I've found the Monster King."); + } else if ($NLIB_DAY < 4) { + slide 104, 61; + dispbottom l("I should not veer off too much the path."); + } + end; +} + +023-2,86,59,0 script #NLIB_T05 NPC_HIDDEN,2,5,{ + +OnTouch: + if ($NLIB_DAY == 5) { + @QNL3=1; + dispbottom l("I've found the Monster King."); + } else if ($NLIB_DAY < 5) { + slide 91, 61; + dispbottom l("I should not veer off too much the path."); + } + end; +} + +023-2,53,49,0 script #NLIB_T06 NPC_HIDDEN,0,5,{ + +OnTouch: + if ($NLIB_DAY == 6) { + @QNL3=1; + dispbottom l("I've found the Monster King."); + } else if ($NLIB_DAY < 6) { + slide 55, 48; + dispbottom l("I should not veer off too much the path."); + } + end; +} + +023-2,35,90,0 script #NLIB_T07 NPC_HIDDEN,0,2,{ + +OnTouch: + if (gettime(2) < 25 || gettime(2) > 35) { + slide 39, 89; + dispbottom l("I should not go ahead... yet."); + } + end; +} + + +// Event -- cgit v1.2.3-60-g2f50