summaryrefslogtreecommitdiff
path: root/npc/001-2-4
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-2-4')
-rw-r--r--npc/001-2-4/_import.txt7
-rw-r--r--npc/001-2-4/_warps.txt27
-rw-r--r--npc/001-2-4/books.txt102
-rw-r--r--npc/001-2-4/mapflags.txt1
-rw-r--r--npc/001-2-4/robin.txt65
-rw-r--r--npc/001-2-4/terry.txt23
6 files changed, 225 insertions, 0 deletions
diff --git a/npc/001-2-4/_import.txt b/npc/001-2-4/_import.txt
new file mode 100644
index 000000000..70c629cc6
--- /dev/null
+++ b/npc/001-2-4/_import.txt
@@ -0,0 +1,7 @@
+// Map 001-2-4: Library
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/001-2-4/_warps.txt",
+"npc/001-2-4/books.txt",
+"npc/001-2-4/mapflags.txt",
+"npc/001-2-4/robin.txt",
+"npc/001-2-4/terry.txt",
diff --git a/npc/001-2-4/_warps.txt b/npc/001-2-4/_warps.txt
new file mode 100644
index 000000000..dc331e978
--- /dev/null
+++ b/npc/001-2-4/_warps.txt
@@ -0,0 +1,27 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 001-2-4: Library warps
+001-2-4,48,41,0 warp #001-2-4_48_41 0,0,001-1,51,81
+001-2-4,57,29,0 warp #001-2-4_57_26 3,0,001-2-6,57,36
+001-2-4,52,27,0 script #001-2-4_52_27_h NPC_HIDDEN,0,0,{
+OnTouch:
+ warp "001-2-5", 28, 37;
+close;
+
+OnUnTouch:
+ doevent "#001-2-4_52_27::OnUnTouch";
+}
+001-2-4,52,27,0 script #001-2-4_52_27 NPC_ARTIS_IN_DOOR,3,3,{
+ close;
+OnTouch:
+ doorTouch;
+
+OnUnTouch:
+ doorUnTouch;
+
+OnTimer340:
+ doorTimer;
+
+OnInit:
+ doorInit;
+}
+
diff --git a/npc/001-2-4/books.txt b/npc/001-2-4/books.txt
new file mode 100644
index 000000000..e09324050
--- /dev/null
+++ b/npc/001-2-4/books.txt
@@ -0,0 +1,102 @@
+// Evol scripts.
+// Author:
+// gumi
+// Tirifto
+// Description:
+// moar books
+
+001-2-4,28,29,0 script #001-2-4-Book1 NPC_NO_SPRITE,{
+
+ doevent "@rules::OnShelfUse";
+ close;
+
+OnInit:
+ .sex = G_OTHER;
+ .distance = 1;
+}
+
+// FIXME: we need a no-sprite npc that is offset 1 tile north
+001-2-4,47,28,0 script #001-2-4-Book2 NPC_NO_SPRITE,{
+
+ function read_book {
+
+ setnpcdialogtitle l(.book_name$);
+
+ narrator S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("To get started with fishing, you'll need two things: a fishing rod and a bait."),
+ l("You just need one fishing rod, although you should take more than one single bait.");
+
+ @menu = 0; // reset for the rif
+
+ do
+ {
+ narrator S_NO_NPC_NAME,
+ l("Please select a chapter:");
+
+ mes "";
+
+ select
+ rif(@menu == 1, "► ") + l("Ch 1 — Fishing apparatus"),
+ rif(@menu == 2, "► ") + l("Ch 2 — Baits"),
+ rif(@menu == 3, "► ") + l("Ch 3 — Location"),
+ rif(@menu == 4, "► ") + l("Ch 4 — Casting"),
+ rif(@menu == 5, "► ") + l("Ch 5 — Reeling");
+
+ switch(@menu)
+ {
+ case 1:
+ narrator S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("You'll want your fishing rod to be flexible but solid."),
+ l("Comfortable grip is important especially for newcomers, since they'll be holding it for quite a while.");
+ break;
+ case 2:
+ narrator S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("You can use many diverse items to lure fishes."),
+ l("Some people prefer to catch fish using magic, but calling that \"fishing\" would be an insult to this traditional sport."),
+ l("Most common and widely popular in the fish realm are @@ and pieces of @@.",
+ getitemlink(SmallTentacles), getitemlink(Bread)),
+ l("Some types of fish also enjoy @@ quite a bit.",
+ getitemlink(Aquada)),
+ l("Some people, however, prefer to fish with more unorthodox baits, such as @@ or @@.",
+ getitemlink(UrchinMeat), getitemlink(TortugaTongue));
+ break;
+ case 3:
+ narrator S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Find yourself a nice dry spot on a coast where you can easily reach into deep water."),
+ l("Fishing next to shallow water is not going to work well, because fishes seldom go there."),
+ l("You can easily identify fishing spots, small bubbles and fishes are visible from the surface."),
+ l("Don't forget to come as close as possible to these spots!");
+ break;
+ case 4:
+ narrator S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("Toss the hook into deep water by clicking on where you want to cast it."),
+ l("Make sure to put on a bait after you click, though!"),
+ l("After that, stay still and be patient, but also alert!");
+ break;
+ case 5:
+ narrator S_FIRST_BLANK_LINE | S_LAST_NEXT,
+ l("To successfully catch a fish, you need to pull up your hook by clicking it, right after it submerges."),
+ l("Should you be too quick or wait too long, you will most likely fail.");
+ break;
+ }
+ } while (true);
+
+ end;
+ }
+
+OnShelfUse:
+ if (openbookshelf())
+ read_book;
+ bye;
+
+OnUse:
+ if (openbook())
+ read_book;
+ bye;
+
+OnInit:
+ .book_name$ = getitemname(FishingGuideVolI);
+ .sex = G_OTHER;
+ .distance = 1;
+ end;
+}
diff --git a/npc/001-2-4/mapflags.txt b/npc/001-2-4/mapflags.txt
new file mode 100644
index 000000000..1a66f6702
--- /dev/null
+++ b/npc/001-2-4/mapflags.txt
@@ -0,0 +1 @@
+001-2-4 mapflag town
diff --git a/npc/001-2-4/robin.txt b/npc/001-2-4/robin.txt
new file mode 100644
index 000000000..320cf1487
--- /dev/null
+++ b/npc/001-2-4/robin.txt
@@ -0,0 +1,65 @@
+// Evol scripts.
+// Author:
+// Reid
+// Description:
+// Librarian
+
+001-2-4,27,33,0 script Robin NPC_ROBIN,{
+
+ function need_help
+ {
+ speech S_LAST_NEXT,
+ l("Do you need help with something?");
+
+ switch (select(l("What kinds of books are there here?"),
+ l("Nothing.")))
+ {
+ case 1:
+ closedialog;
+ npctalk3 l("Mostly manuals and tutorials but you won't find out until you open one!");
+ break;
+ case 2:
+ closedialog;
+ npctalk3 l("Good day to you!");
+ }
+ return;
+ }
+
+
+ switch (rand(6))
+ {
+ case 0:
+ npctalkonce l("No matter what people tell you, words and ideas can change the world.");
+ break;
+ case 1:
+ npctalkonce l("In Artis they really do mythologize people when they die.");
+ break;
+ case 2:
+ npctalkonce l("What counts in a book is like so many things, not what is on the outside, but what is on the inside.");
+ break;
+ case 3:
+ npctalkonce l("An explorer left behind some incomplete manuscripts about the people and dangers in the land of Kaizei.");
+ break;
+ case 4:
+ speech S_LAST_NEXT,
+ l("Ow-oh!"),
+ l("Introduce yourself instead of poking me around. I almost fell from the lader, savage...");
+
+ setcamnpc "#001-2-4-Book1";
+
+ speech S_NO_NPC_NAME,
+ l("Go have a look at that shelf to my right, would you?"),
+ l("You clearly need to be more public-spirited.");
+ break;
+ default:
+ need_help;
+ break;
+ }
+
+ close;
+
+OnInit:
+ .sex = G_MALE;
+ .distance = 2;
+ end;
+}
diff --git a/npc/001-2-4/terry.txt b/npc/001-2-4/terry.txt
new file mode 100644
index 000000000..937b3ff08
--- /dev/null
+++ b/npc/001-2-4/terry.txt
@@ -0,0 +1,23 @@
+// Evol scripts.
+// Author:
+// Reid
+// Description:
+// Librarian
+
+001-2-4,51,35,4 script Terry NPC_TERRY,{
+ mesn;
+ mesq l("Hi.");
+ next;
+ mesq l("");
+ goto L_Quit;
+
+OnInit:
+ .sex = G_MALE;
+ .distance = 2;
+ .dir = 2;
+ end;
+
+L_Quit:
+ .dir = 2;
+ close;
+}