diff options
author | Reid <reidyaro@gmail.com> | 2015-12-28 02:47:10 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2015-12-28 02:47:10 +0100 |
commit | 3b1c1393f1703024d53514bc7a2a76aaa66794ba (patch) | |
tree | 09fccad1637fff6de18fc4e6a13f63fb4828ae5a | |
parent | 71712890610b7419848033113b157a4425412f27 (diff) | |
download | serverdata-3b1c1393f1703024d53514bc7a2a76aaa66794ba.tar.gz serverdata-3b1c1393f1703024d53514bc7a2a76aaa66794ba.tar.bz2 serverdata-3b1c1393f1703024d53514bc7a2a76aaa66794ba.tar.xz serverdata-3b1c1393f1703024d53514bc7a2a76aaa66794ba.zip |
Update Enora script with a more advanced scripting template.
-rw-r--r-- | npc/001-1/enora.txt | 166 |
1 files changed, 108 insertions, 58 deletions
diff --git a/npc/001-1/enora.txt b/npc/001-1/enora.txt index 2013e8d2..f7c94792 100644 --- a/npc/001-1/enora.txt +++ b/npc/001-1/enora.txt @@ -8,70 +8,120 @@ // Values: // 0 Default. // 1 BlackSmith quest delivered. -// 2 Light Armor Shop quest delivered. -// 3 Market quest delivered. -// 4 Hill quest delivered. +// 2 BlackSmith gave the sword. +// 3 Light Armor Shop quest delivered. +// 4 Light Armor Shop gave the cloths. +// 5 Market quest delivered. +// 6 Market gave the potion. +// 7 Hill quest delivered. +// 8 Fluffy killed. + 001-1,176,113,0 script Enora#001-1 NPC_HUMAN_FEMALE_NOOB,{ - speech - l("Hey! You must be @@.", strcharinfo(0)), - l("Julia has told me how they found you at sea, on a raft with a logo of--"); - l("I mean LOG! Made of log!"), - l("I also hear you have lost all your memories? That's a shame."), - l("I'm sure you would have some interesting stories to tell!"); + function enora_memories { + speech 5, + l("It's so exciting to meet somebody with amnesia!"), + l("Do you, like, remember nothing at all? Or do you have SOME memories of your past?"), + l("What happens when you try to think about it?"), + l("Does your mind go all fuzzy or is that your head will explode??"), + l("Try doing that now!"); + + + switch (select (l("Okay, but there won't be any explosions."), + l("Don't get too excited about it..."))) + { + case 1: + narrator 5, + l("You concentrate and try to summon old memories from within your mind."), + l("All you can find is thick mist and the cold hard wood of your raft."), + l("A headache hits you and you lose your concentration."); + + speech 4, + l("So? You haven't exploded yet! Are you getting anything?"); + + select (l("Not really. All I got was a headache...")); + + speech 5, + l("It's like your memories are locked away in your head! Cool!"); + + break; + case 2: + break; + } + } + + function enora_first_quest { + speech 5, + l("You probably don't have much business in this city as you don't remember who you are."), + l("So I was going to ask if maybe you would be interested in giving me a hand with a few errands."); + + switch (select(l("I guess so. What's in it for me?"), + l("Of course! What do you need?"))) + { + case 1: + speech 5, + l("Oh, don't worry about it, there will be a compensation for your hard labor!"); + break; + case 2: + mes ""; + break; + } - switch (select(l("Remembering who I am would also be very nice..."), - l("I'd like to be somebody with exciting stories!"))) + // First quest here + } + + function enora_legion { + speech 5, + l("Test"), + l("Test"); + } + + .@q = getq(ArtisQuests_Enora); + + if (.@q == 0) { - case 1: - speech 1, - l("Yeah, that too... It's so exciting to meet somebody with amnesia!"), - l("Do you, like, remember nothing at all? Or do you have SOME memories of your past?"), - l("What happens when you try to think about it?"), - l("Does your mind go all fuzzy?"), - l("Try doing that now!"); - - select (l("Don't get too excited about it...")); - - speech 1, - l("Uh, sorry. I got carried away."), - l("Do you ever get really curious about something and--"), - l("Hm, I guess you wouln't know if you do. You know, with your... Condition and all..."); - - switch (select(l("Forget about the amnesia!"), - l("Back to the point..."))) - { - case 1: - speech 1, - l("Hehe, I see what you did there. You certainly didn't lose your sense of humour."); - - select (l("Ugh, you're lucky I didn't.")); - - speech 1, - l("Anyway, you probably don't have much business in this city as you..."), - l("Uhm... Don't know who you are."), - l("I was going to ask if maybe you would be interested in giving me a hand with a few errands."); - - switch (select(l("I guess so. What's in it for me?"), - l("Of course! What do you need?"))) - { - case 1: - speech 1, - l("Oh, don't worry about it, there will be a compensation for your hard labor!"); - break; - case 2: - break; - } - break; - case 2: - break; - } - - break; - case 2: - break; + speech 4, + l("Hey! You must be @@.", strcharinfo(0)), + l("Julia has told me how they found you at sea, on a raft with a logo of--"), + l("I mean LOG! Made of log!"), + l("I also hear you have lost all your memories? That's a shame."), + l("I'm sure you would have some interesting stories to tell!"); } + else + { + speech 4, + l("Hey @@!", strcharinfo(0)), + l("What brings you here today?"); + } + + do + { + menuint + rif(.@q == 0, l("She told me that had some tasks for me.")), 0, + rif(.@q == 2 || .@q == 4 || .@q == 6, l("I have your package.")), 1, + rif(.@q > 1, l("What is this legion?")), 2, + l("I wish I could remember something..."), 3, + rif (.@q != 0, l("Nothing.")), 4; + + switch (@menuret) + { + case 0: + enora_first_quest; + break; + case 1: + case 2: + enora_legion; + break; + case 3: + enora_memories; + break; + case 4: + speech 5, + l("Please come back anytime!"); + break; + } + } while (@menuret != 4); closedialog; close; |