Debian Codegraph @

scorn/shops/eswald.msg

raw
1 {
2 "location" : "scorn/eswald",
3 "rules": [
4 {
5 "match" : ["yes", "like"],
6 "pre" : [["token", "offercoffee", "yes"], ["item", "money", "1"], ["quest", "scorn/CoffeeGoose", "100"]],
7 "post" : [["giveitem", "Eswald's superior coffee"], ["settoken", "offercoffee", "0"], ["takeitem", "money", "1"]],
8 "msg" : ["Here you go, a cup of the best coffee you'll ever drink."]
9 }, {
10 "match" : ["yes", "like"],
11 "pre" : [["token", "offercoffee", "yes"], ["quest", "scorn/CoffeeGoose", "100"]],
12 "post" : [["settoken", "offercoffee", "0"]],
13 "msg" : ["Sorry $you, but 1 silver is the lowest I can do, even for you..."]
14 }, {
15 "match" : ["no"],
16 "pre" : [["quest", "scorn/CoffeeGoose", "100"], ["token", "offercoffee", "yes"]],
17 "post" : [["settoken", "offercoffee", "0"]],
18 "msg" : ["Ok, come back if you change your mind."]
19 }, {
20 "match" : ["*"],
21 "pre" : [["quest", "scorn/CoffeeGoose", "100"]],
22 "post" : [["settoken", "offercoffee", "yes"]],
23 "msg" : ["Welcome back to to Eswald's coffee shop, $you, would you like some of the finest brew east of Navar? Only 1 silver to you, because of all you did for me!"]
24 }, {
25 "match" : ["no"],
26 "pre" : [["quest", "scorn/CoffeeGoose", "20"], ["token", "askgoose", "yes"]],
27 "post" : [["settoken", "askgoose", "0"]],
28 "msg" : ["Well, keep looking, "]
29 }, {
30 "match" : ["yes", "found"],
31 "pre" : [["quest", "scorn/CoffeeGoose", "20"], ["token", "askgoose", "yes"], ["item", "EsmeraldaTheGoose"]],
32 "post" : [["settoken", "askgoose", "0"], ["giveitem", "money", "5000"], ["quest", "scorn/CoffeeGoose", "100"], ["takeitem", "EsmeraldaTheGoose"]],
33 "msg" : ["You found her! Here is your reward. Thanks $you.\n\n Esmeralda has the finest nose...er... beak for coffee in the kingdom.\n Oled will be so jealous of my coffee."]
34 }, {
35 "match" : ["yes", "found"],
36 "pre" : [["quest", "scorn/CoffeeGoose", "20"], ["token", "askgoose", "yes"]],
37 "post" : [["settoken", "askgoose", "0"]],
38 "msg" : ["You have, that's fantastic! bring her back here and I'll pay you your reward."]
39 }, {
40 "match" : ["*"],
41 "pre" : [["quest", "scorn/CoffeeGoose", "20"]],
42 "post" : [["settoken", "askgoose", "yes"]],
43 "msg" : ["Have you found Esmerelda yet?"]
44 }, {
45 "match" : ["clue", "idea", "lead", "lost", "suspicious"],
46 "pre" : [["quest", "scorn/CoffeeGoose", "20"]],
47 "post" : [],
48 "msg" : ["Well Oled has always been jealous of my goose..."]
49 }, {
50 "match" : ["special"],
51 "pre" : [["quest", "scorn/CoffeeGoose", "20"]],
52 "post" : [],
53 "msg" : ["I'm not telling, you might not bring her back...."]
54 }, {
55 "match" : ["*"],
56 "pre" : [["quest", "scorn/CoffeeGoose", "20"]],
57 "post" : [],
58 "msg" : ["Have you had any luck finding my goose?"]
59 }, {
60 "match" : ["yes", "interested", "goose"],
61 "pre" : [["quest", "scorn/CoffeeGoose", "10"]],
62 "post" : [["quest", "scorn/CoffeeGoose", "20"]],
63 "msg" : ["Why, thank you, Her name is Esmeralda, she's a special goose."]
64 }, {
65 "match" : ["*"],
66 "pre" : [["quest", "scorn/CoffeeGoose", "10"]],
67 "post" : [],
68 "msg" : ["Yes, Yes, I know, my coffee is terrible, I'm truely very sorry, it just hasn't been the same since I lost my goose. \n\n You wouldn't be interested in finding her for me would you?"]
69 }, {
70 "match" : ["*"],
71 "pre" : [["token", "scorn/CoffeeGoose", "10"]],
72 "post" : [],
73 "msg" : ["Yes, Yes, I know, my coffee is terrible, I'm truely very sorry, it just hasn't been the same since I lost my goose. \n\n You wouldn't be interested in finding her for me would you?"]
74 }, {
75 "match" : ["no"],
76 "pre" : [["token", "offercoffee", "yes"]],
77 "post" : [["settoken", "offercoffee", "0"], ["settoken", "badcoffee", "yes"]],
78 "msg" : ["I'm not surprised, no one else does either nowadays"]
79 }, {
80 "match" : ["yes", "like"],
81 "pre" : [["token", "offercoffee", "yes"], ["item", "money", "2"]],
82 "post" : [["giveitem", "Eswald's inferior coffee"], ["settoken", "offercoffee", "0"], ["settoken", "badcoffee", "yes"], ["takeitem", "money", "2"]],
83 "msg" : ["Here you go, I apologise for the quality"]
84 }, {
85 "match" : ["yes", "like"],
86 "pre" : [["token", "offercoffee", "yes"], ["token", "freebie", "yes"]],
87 "post" : [["settoken", "offercoffee", "no"], ["settoken", "badcoffee", "yes"], ["takeitem", "money", "2"]],
88 "msg" : ["You'll need to pay for coffee, friend, I may not have many customers, but I can't give it away free you know."]
89 }, {
90 "match" : ["yes", "like"],
91 "pre" : [["token", "offercoffee", "yes"]],
92 "post" : [["giveitem", "Eswald's inferior coffee"], ["settoken", "offercoffee", "no"], ["settoken", "badcoffee", "yes"], ["takeitem", "money", "2"], ["settoken", "freebie", "yes"]],
93 "msg" : ["You haven't even got two silver coins to rub together? Here, have the coffee anyway, you clearly need a hand-out, and no one is buying it nowadays anyway"]
94 }, {
95 "match" : ["coffee"],
96 "pre" : [],
97 "post" : [["settoken", "offercoffee", "yes"]],
98 "msg" : ["Would you like to buy some coffee, only 2 silver a cup?"]
99 }, {
100 "match" : ["hello", "hi"],
101 "pre" : [["token", "seenbefore", "yes"]],
102 "post" : [],
103 "msg" : ["Hello $you, would you like to buy some coffee?"]
104 }, {
105 "match" : ["hello", "hi"],
106 "pre" : [],
107 "post" : [["settoken", "seenbefore", "yes"]],
108 "msg" : ["Hello stranger. would you like to buy some coffee?"]
109 }, {
110 "match" : ["*"],
111 "pre" : [],
112 "post" : [["settoken", "seenbefore", "yes"]],
113 "msg" : ["Welcome to Eswald's coffee shop, serving, well, something vaguely coffee-like anyway."]
114 }
115 ]}