From d6f98afd597eb05726a745756775ac45e6c9fecc Mon Sep 17 00:00:00 2001 From: Reid Date: Sun, 24 Jan 2016 02:31:40 +0100 Subject: Add savepoints on #29. --- npc/001-2-29/_import.txt | 1 + npc/001-2-29/savepoint.txt | 113 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 npc/001-2-29/savepoint.txt (limited to 'npc/001-2-29') diff --git a/npc/001-2-29/_import.txt b/npc/001-2-29/_import.txt index c6cca273..cf9ad44e 100644 --- a/npc/001-2-29/_import.txt +++ b/npc/001-2-29/_import.txt @@ -2,3 +2,4 @@ npc: npc/001-2-29/_warps.txt npc: npc/001-2-29/edouard.txt npc: npc/001-2-29/mapflags.txt +npc: npc/001-2-29/savepoint.txt diff --git a/npc/001-2-29/savepoint.txt b/npc/001-2-29/savepoint.txt new file mode 100644 index 00000000..3977b473 --- /dev/null +++ b/npc/001-2-29/savepoint.txt @@ -0,0 +1,113 @@ +// Evol scripts. +// Author: +// Reid +// Description: +// Saves locations in 001-2-29 map. + +001-2-29,29,28,0 script #001-2-29-1 NPC_SAVE_POINT,0,0,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 28; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; + +OnPCDieEvent: + PC_Is_Dead = 1; + close; +} + +001-2-29,29,35,0 script #001-2-29-2 NPC_SAVE_POINT,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 35; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; +} + +001-2-29,29,42,0 script #001-2-29-3 NPC_SAVE_POINT,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 42; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; +} + +001-2-29,29,49,0 script #001-2-29-4 NPC_SAVE_POINT,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 49; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; +} -- cgit v1.2.3-70-g09d2