Debian Codegraph @

scorn/misc/rhyz.msg

raw
1 {
2 "rules": [
3 {
4 "match" : ["*"],
5 "pre" : [["quest", "scorn/Rhyz", "=40"]],
6 "post" : [],
7 "msg" : ["Hello $you, nice to see you again."]
8 }, {
9 "match" : ["yes"],
10 "pre" : [["quest", "scorn/Rhyz", "10"], ["npctoken", "state", "1"], ["item", "potion of gem essence"]],
11 "post" : [["setnpctoken", "state", "0"], ["giveitem", "rhyzian amulet"], ["quest", "scorn/Rhyz", "40"], ["takeitem", "potion of gem essence"]],
12 "msg" : ["Great! Now I can continue with my experiments!\n\nHere, take this amulet as a token of my gratitude."]
13 }, {
14 "match" : ["yes"],
15 "pre" : [["quest", "scorn/Rhyz", "10"], ["npctoken", "state", "1"]],
16 "post" : [["setnpctoken", "state", "0"]],
17 "msg" : ["Hum, where is it then?"]
18 }, {
19 "match" : ["*"],
20 "pre" : [["npctoken", "state", "1"]],
21 "post" : [["setnpctoken", "state", "0"]],
22 "msg" : ["Well, come back when you'll have it, then, please."]
23 }, {
24 "match" : ["hi", "hello"],
25 "pre" : [["quest", "scorn/Rhyz", "10"]],
26 "post" : [["setnpctoken", "state", "1"]],
27 "msg" : ["Welcome back $you, did you get the potion from my friend?"],
28 "replies" : [["yes", "Yes, I got it.", "1"], ["no", "No, not yet, sorry.", "0"]]
29 }, {
30 "match" : ["*"],
31 "pre" : [["quest", "scorn/Rhyz", "10"]],
32 "post" : [],
33 "msg" : ["*grumble*"]
34 }, {
35 "match" : ["yes"],
36 "pre" : [["npctoken", "gem", "2"]],
37 "post" : [["setnpctoken", "gem", "0"], ["giveitem", "empty bottle"], ["quest", "scorn/Rhyz", "10"]],
38 "msg" : ["Thank you so much. I think he is somewhere in The Frolicing Mermaid in Navar. Bring this bottle to him, tell him that Terrance send you, and ask him to fill it for me. As a reward I'll let you try out one of the amulets."]
39 }, {
40 "match" : ["*"],
41 "pre" : [["npctoken", "gem", "2"]],
42 "post" : [["setnpctoken", "gem", "0"]],
43 "msg" : ["Ha well, maybe another time then. Take care."]
44 }, {
45 "match" : ["amulet"],
46 "pre" : [["npctoken", "gem", "1"]],
47 "post" : [["setnpctoken", "gem", "2"]],
48 "msg" : ["I am currently working with a fellow mage in Navar who has a similar gem, to make an amulet which can indicate the distance and direction to each gem, and hence to Scorn and Navar. Right now I need a special golden potion delivered from him, containing the essence of the magical energies of his gem. Can you help get some from him?"],
49 "replies" : [["yes", "Sure, what do you want me to do?", "1"], ["no", "I'm sorry, I'm quite busy for now.", "1"]]
50 }, {
51 "match" : ["gem", "purple", "desk"],
52 "pre" : [],
53 "post" : [["setnpctoken", "gem", "1"]],
54 "msg" : ["The gem in my desk was a work started by my father. It was made to have a strong and distinct magical energy which can be detected from a long way away. I am currently working on amulets to work with the gem."],
55 "replies" : [["amulet", "What kind of amulets?", "2"]]
56 }, {
57 "match" : ["rhyz"],
58 "pre" : [],
59 "post" : [],
60 "msg" : ["I am a descendent of the great Entorinaas Durdennis Rhyz. A long time ago, he set out to create the perfect \"warriard\", one highly adept with both combat and magic, however he failed. Recently I have come to believe that modern adventurers are becoming much like the \"warriards\" that my ancestor believed in, so I have been trying to continue his vision by encouraging adventurers."]
61 }, {
62 "match" : ["hide"],
63 "pre" : [],
64 "post" : [],
65 "msg" : ["I am hiding by instructions from the king of Scorn, he fears what may happen if his enemies get some of my works."]
66 }, {
67 "match" : ["hello"],
68 "pre" : [],
69 "post" : [],
70 "msg" : ["Hello. I am Terrance Rhyz. How may I help you?"],
71 "replies" : [["hide", "Why are you hiding in this place?", "2"], ["rhyz", "I'm sorry, but I'm not familiar with your name...", "0"]]
72 }, {
73 "match" : ["*"],
74 "pre" : [],
75 "post" : [],
76 "msg" : ["*grumble*"]
77 }
78 ]}