summaryrefslogtreecommitdiff
path: root/npc/002-1/luca.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/002-1/luca.txt')
-rw-r--r--npc/002-1/luca.txt348
1 files changed, 348 insertions, 0 deletions
diff --git a/npc/002-1/luca.txt b/npc/002-1/luca.txt
new file mode 100644
index 00000000..bbfa1861
--- /dev/null
+++ b/npc/002-1/luca.txt
@@ -0,0 +1,348 @@
+
+002-1,112,26,0 script Luca NPC102,{
+ function minf;
+
+ if (BaseLevel >= 35) goto L_Teach;
+
+ if (BaseLevel >= 25) goto L_Teach_soon;
+
+ mesn l("Luca the Hunter");
+ mesq l("Ouch! It hurts, this wound I got from battle.");
+ next;
+ menu
+ l("Tell me about it"), L_Exp,
+ l("Nevermind"), L_Nev;
+
+L_Exp:
+ mesn l("Luca the Hunter");
+ mesq l("I was just coming back from a long journey. I ran into a group of scorpions and started fighting them for experience.");
+ next;
+ mesn l("Luca the Hunter");
+ mesq l("Then, out of a cave came a BLACK one! I had NEVER seen it before!");
+ next;
+ mesn l("Luca the Hunter");
+ mesq l("Luckily I had a camera with me! Here's a picture of it... Let me find it, I put it in my pocket somewhere...");
+ next;
+ mesn l("Luca the Hunter");
+ mesq l("Oh man! My pockets have been ripped clean off!");
+ close;
+
+L_Nev:
+ mesn l("Luca the Hunter");
+ mesq l("Hmpf!");
+ close;
+
+L_Teach_soon:
+ mesn l("Luca the Hunter");
+ mesq l("You've grown quite a bit stronger since I first saw you, strolling around town like that! You know, if you train a little more, maybe we can help each other out a little?");
+ close;
+
+L_Teach:
+ if (getskilllv(SKILL_POOL)) goto L_Teachmore;
+
+ mesn l("Luca the Hunter");
+ mes "\"Hey there! You've become quite the adventurer, haven't you? I think it's time that someone taught you some basic skills.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"If you want, I can help with that!\"";
+ next;
+ menu
+ "Sure, that sounds fun!", L_Next,
+ "I'm not interested.", L_Nev;
+
+L_Next:
+ mesn l("Luca the Hunter");
+ mes "\"All right! It's not all that easy, though. First you have to learn how to focus. That's because you can learn many skills, but you can't focus on all of them all the time.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"When you can do that, you can learn some real skills, and when you know them, you can come back to me to tell me which ones you want to focus on. Deal?\"";
+ next;
+ menu
+ "Yeah!", L_Teach0_follow,
+ "Certainly!", L_Teach0_follow,
+ "Wait... what do you mean?", L_Explain,
+ "Please explain some more.", L_Explain,
+ "No.", L_Nev;
+
+L_Teach0_follow:
+ if (getskilllv(SKILL_POOL)) goto L_Teachmore;
+
+ mesn l("Luca the Hunter");
+ mes "\"Great! Now, before I can give you that skill, I have to make sure that those stories about you are all true and that you really are experienced enough.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"So I'm going to ask you some easy questions.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"First, who is the man who guards the entrance to the old Tulimshar underground arena?\"";
+ next;
+ input .@answer$;
+ if (.@answer$ != "Phaet" && .@answer$ != "phaet") goto L_wronganswer;
+ mesn l("Luca the Hunter");
+ mes "\"Good. Next, what's the name of the pipe-smoker who lives on top of Lore Mountain and makes leathery goods there?\"";
+ next;
+ input .@answer$;
+ if (.@answer$ != "Pachua" && .@answer$ != "pachua") goto L_wronganswer;
+ mesn l("Luca the Hunter");
+ mes "\"Great! One more: Who was the adventurer who built Dimond's Cove for Dimond?\"";
+ next;
+ input .@answer$;
+ if (.@answer$ != "Merlin" && .@answer$ != "merlin") goto L_wronganswer;
+ mesn l("Luca the Hunter");
+ mes "Luca laughs in excitement.";
+ mes "\"All right! You're the real thing, my friend!\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"Now stand over there. This should only take a second...\"";
+ mes "He takes off a pendant he is wearing and holds it up.";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"See that fang at the end of the chain? Keep staring at it.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "He starts swinging the pendant back and forth.";
+ mes "\"And whatever you do, don't blink. Don't look away, and don't blink.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "The world slows down around you as you focus on the pendant going back...";
+ next;
+ mes "and forth...";
+ next;
+ mes "and back...";
+ next;
+ mes "and forth...";
+ next;
+ mes "and back...";
+ next;
+ mes "and...";
+ next;
+ mes "You feel relaxed.";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"... still there?\"";
+ mes "You hear the sound of fingers snapping. Why would someone do that on such a calm day?";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"Oh, good... I think it worked. Nice job!\"";
+ mes "He grins.";
+ mes "[You gain 10,000 experience points]";
+ mes "[You learned Skill Focus]";
+ learnskill SKILL_POOL, 1;
+ getexp 10000, 0;
+ next;
+ goto L_Teachmore;
+
+L_wronganswer:
+ mesn l("Luca the Hunter");
+ mesq l("No, that was wrong. I suppose you're not as experienced as I thought you'd be.");
+ close;
+
+L_Explain:
+ mesn l("Luca the Hunter");
+ mesq l("Alright, what do you want to know?");
+ next;
+ goto L_Explain_loop;
+
+L_Explain_loop:
+ menu
+ "What's skill focus?", L_explain_focus,
+ "What skills are there?", L_explain_skills,
+ "How do skills work?", L_explain_work,
+ "Thanks, I think I got it!", L_Next;
+
+L_explain_focus:
+ mesn l("Luca the Hunter");
+ mes "\"Well, you can learn many, many skills. But you can't really use all of them at once, not even old Auldsbels' head is big enough for that! So you have to focus.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"But you can change that focus whenever you want. It works like this: You come to me, you tell me what you want to focus on, and we do exercises until it's stuck in your head.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"If there's not enough space in your head, you'll first have to stop thinking about some other thing. There's an exercise I learned to do that, so when you talk to me you can just let me know what you want to forget.\"";
+ next;
+ mesn l("Luca the Hunter");
+ if (getskilllv(SKILL_POOL) == 0)
+ mesq l("Right now you can't focus on anything yet, so I'll first have to teach you a simple skill to keep your focus.");
+ if (getskilllv(SKILL_POOL) == 1)
+ mesq l("Right now you can only focus on one thing at a time. So if you want to change what your focus is, you have to forget whatever else you've focused on");
+ if (getskilllv(SKILL_POOL) > 1)
+ mesq l("You can focus on %d skills right now.", getskilllv(SKILL_POOL));
+ next;
+ mesn l("Luca the Hunter");
+ mesq l("You can come back to me to focus or unfocus a skill whenever you want, I'm here all day.");
+ next;
+ mesq l("For unfocusing you need to bring a potion; a special potion. That potion is not the easiest to get, but I am sure you are able to.");
+ next;
+ goto L_Explain_loop;
+
+L_explain_skills:
+ mesn l("Luca the Hunter");
+ mes "\"Well, I don't really know... lots, I think. I can teach you brawling, which is good when you've run out of arrows or don't have a weapon around.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"But there's other skills around. Some mages need special skills to concentrate, so ask around in that crowd, if that's your thing.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"I've also heard that there is someone in Hurnscald who can help you make your body more resistant against some things. But body and mind belong together, so you probably have to focus for that, too.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"Other than that, just ask around! There have to be some people who can teach you something...\"";
+ next;
+ goto L_Explain_loop;
+
+L_explain_work:
+ mesn l("Luca the Hunter");
+ mes "\"Well, skills allow you to be better in some things, or allow to do what you couldn't do without them. When you've learned a skill and are focusing on it, then it affects what you do.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"Now, when you start out with a skill, you won't be very good at it yet. But if you keep practicing you'll learn how to get better.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"My old teacher always called that getting `skill points' and that you can see them with [F5], whoever that is. And something about a limit on how many points can be acquired.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"She also said that with this [F5] thing you can get better at those skills, and that it costs you as many skill points as the level you want to go to.\"";
+ next;
+ mesn l("Luca the Hunter");
+ mes "\"She always would have one cactus potion too many... but she was an amazing teacher.\"";
+ mes "He nods emphatically.";
+ next;
+ goto L_Explain_loop;
+
+// FIXME Placeholder
+L_Teachmore:
+ mesn l("Luca the Hunter");
+ mes "\"Good to see you again!\"";
+ next;
+ mesn;
+ mesq l("Sorry %%i I am really really REALLY busy right now. Maybe later, when I find my toolset, we can start focusing on something.");
+ if (!getskilllv(SKILL_POOL)) close;
+ .@t=getactivatedpoolskilllist();
+ mes "";
+ mes l("Focus list:");
+ mesc l("%s : %s", l("Mallard's Eye"),
+ (isfocused(SKILL_MALLARDS_EYE) ? l("Yes") : l("No")));
+ mesc l("%s : %s", l("Brawling"),
+ (isfocused(SKILL_BRAWLING) ? l("Yes") : l("No")));
+ mesc l("%s : %s", l("Speed"),
+ (isfocused(SKILL_SPEED) ? l("Yes") : l("No")));
+ mesc l("%s : %s", l("Resist Ailment"),
+ (isfocused(SKILL_RESIST_POISON) ? l("Yes") : l("No")));
+ mesc l("%s : %s", l("Astral Soul"),
+ (isfocused(SKILL_ASTRAL_SOUL) ? l("Yes") : l("No")));
+ mesc l("%s : %s", l("Raging"),
+ (isfocused(SKILL_RAGING) ? l("Yes") : l("No")));
+ menuint
+ l("I'm done for now, thanks!"), -3,
+ l("Can you explain skills again?"), -2,
+ l("Can you teach me a skill?"), -1,
+ rif(getskilllv(SKILL_MALLARDS_EYE),
+ l("%s Mallards Eye", minf(SKILL_MALLARDS_EYE))),
+ SKILL_MALLARDS_EYE,
+ rif(getskilllv(SKILL_BRAWLING),
+ l("%s Brawling", minf(SKILL_BRAWLING))),
+ SKILL_BRAWLING,
+ rif(getskilllv(SKILL_SPEED),
+ l("%s Speed", minf(SKILL_SPEED))),
+ SKILL_SPEED,
+ rif(getskilllv(SKILL_RESIST_POISON),
+ l("%s Resist Ailment", minf(SKILL_RESIST_POISON))),
+ SKILL_RESIST_POISON,
+ rif(getskilllv(SKILL_ASTRAL_SOUL),
+ l("%s Astral Soul", minf(SKILL_ASTRAL_SOUL))),
+ SKILL_ASTRAL_SOUL,
+ rif(getskilllv(SKILL_RAGING),
+ l("%s Raging", minf(SKILL_RAGING))),
+ SKILL_RAGING;
+ mes "";
+ switch (@menuret) {
+ case -3: close;
+ case -2: goto L_Explain;
+ case -1:
+ if (getskilllv(SKILL_BRAWLING))
+ goto L_Teach_nothing;
+ else
+ goto L_Teach_brawling;
+ break;
+ default:
+ if (FOCUSING & getpoolskillFID(@menuret)) {
+ if (!countitem(GrimaceOfDementia)) goto L_Nopotion;
+ unpoolskill(@menuret);
+ delitem GrimaceOfDementia, 1;
+ mesc l("Focus removed"), 1;
+ } else {
+ .@s = poolskill(@menuret);
+ if (.@s)
+ mesc l("Focus added"), 2;
+ else
+ mesc l("Impossible to focus. You can only focus %d skills at a time.", .@t), 1;
+ }
+ }
+ goto L_Teachmore;
+
+
+L_Nopotion:
+ if (MAGIC_FLAGS & MFLAG_KNOWS_UNFOCUS_RECIPE) {
+ mesn l("Luca the Hunter");
+ mesq l("Hey, you really need that dementia potion for unfocusing.");
+ next;
+ mesq l("Come back when you've found a suitable alchemist who can mix such a potion.");
+ } else {
+ mesn l("Luca the Hunter");
+ mesq l("Unfocusing is one of the harder parts though, because it is sunk in. You see?");
+ next;
+ mesq l("So to remove that mental focus we will need a special potion.");
+ next;
+ mesq l("Maybe you should consult some very skilled alchemists.");
+ next;
+ mesq l("Ah yes, of course you will need a recipe. Although the alchemist usually knows it.");
+ next;
+ mesq l("The potion is called Grimace of Dementia. So the alchemist will know for sure.");
+ MAGIC_FLAGS = MAGIC_FLAGS | MFLAG_KNOWS_UNFOCUS_RECIPE;
+ }
+ next;
+ goto L_Teachmore;
+
+L_Teach_brawling:
+ mesn l("Luca the Hunter");
+ mes "\"Well, yes, I can teach you brawling. It's a nice thing, if you have nothing left but your hands to defend yourself.\"";
+ next;
+ mes "He is laughing.";
+ mes "\"And is handy, if some sapling starts getting naughty.\"";
+ next;
+ mes "He raises his hands in front of his face and clenches his fists.";
+ mes "\"Ok, let's go! Hold your hands like this.\"";
+ next;
+ mes ".......";
+ next;
+ mes "Some bruises later.";
+ mes "\"Great! I think, you got it.\"";
+ next;
+ @SUP_id = SKILL_BRAWLING;
+ @SUP_lvl = 1;
+ @SUP_name$ = "Brawling";
+ @SUP_xp = .Exp_BRAWLING;
+ callfunc "SkillUp";
+ @SUP_id = 0;
+ @SUP_lvl = 0;
+ @SUP_name$ = "";
+ @SUP_xp = 0;
+ close;
+
+L_Teach_nothing:
+ mesn l("Luca the Hunter");
+ mes "\"I was able to teach you brawling. For other professions you should visit someone else.\"";
+ next;
+ mes "\"You see, I am an adventurer. Everybody has his tricks. But you really should visit someone who is a teacher, not an adventurer, now.\"";
+ next;
+ goto L_Teachmore;
+
+OnInit:
+ .Exp_BRAWLING = 2000;
+ .distance=5;
+ end;
+
+function minf {
+ return (isfocused(getarg(0)) ? l("Unfocus") : l("Focus"));
+}
+}