| 1 |
{ |
| 2 |
"location" : "scorn/oled", |
| 3 |
"rules": [ |
| 4 |
{ |
| 5 |
"match" : ["hello", "hi"], |
| 6 |
"pre" : [["token", "seenbefore", "yes"]], |
| 7 |
"post" : [], |
| 8 |
"msg" : ["Hello $you, would you like some coffee?"] |
| 9 |
}, { |
| 10 |
"match" : ["hello", "hi"], |
| 11 |
"pre" : [], |
| 12 |
"post" : [], |
| 13 |
"msg" : ["Hello stranger, would you like some coffee?."] |
| 14 |
}, { |
| 15 |
"match" : ["lady"], |
| 16 |
"pre" : [["token", "seenbefore", "yes"]], |
| 17 |
"post" : [], |
| 18 |
"msg" : ["I think her name was something like Jann or Ann...\nworks over at the 'Mule sometimes."] |
| 19 |
}, { |
| 20 |
"match" : ["amy"], |
| 21 |
"pre" : [], |
| 22 |
"post" : [], |
| 23 |
"msg" : ["Hey, whatever she told you is a lie ok.\nThat lady Mark was talking to was a sick friend of mine."] |
| 24 |
}, { |
| 25 |
"match" : ["mark"], |
| 26 |
"pre" : [], |
| 27 |
"post" : [], |
| 28 |
"msg" : ["Who? Never heard of him..."] |
| 29 |
}, { |
| 30 |
"match" : ["Eswald"], |
| 31 |
"pre" : [["quest", "scorn/CoffeeGoose", "60"]], |
| 32 |
"post" : [], |
| 33 |
"msg" : ["That skunk Eswald and his stupid goose, now that he's got it back, they are undercutting my prices again."] |
| 34 |
}, { |
| 35 |
"match" : ["Eswald"], |
| 36 |
"pre" : [["quest", "scorn/CoffeeGoose", "20"]], |
| 37 |
"post" : [], |
| 38 |
"msg" : ["You say that Eswald has lost his goose? That's fantastic news; they've been undercutting my prices for years. \n\n er... I mean oh dear, what a shame, I am sorry to hear that."] |
| 39 |
}, { |
| 40 |
"match" : ["Eswald"], |
| 41 |
"pre" : [], |
| 42 |
"post" : [], |
| 43 |
"msg" : ["That skunk Eswald and his stupid goose Undercutting my prices. One day..."] |
| 44 |
}, { |
| 45 |
"match" : ["no"], |
| 46 |
"pre" : [["token", "offercoffee", "yes"]], |
| 47 |
"post" : [["settoken", "offercoffee", "0"]], |
| 48 |
"msg" : ["No problem friend, come back later if you change your mind."] |
| 49 |
}, { |
| 50 |
"match" : ["yes", "like", "cup"], |
| 51 |
"pre" : [["token", "offercoffee", "yes"], ["item", "money", "3"]], |
| 52 |
"post" : [["giveitem", "Oled's coffee"], ["settoken", "offercoffee", "0"], ["takeitem", "money", "3"]], |
| 53 |
"msg" : ["Here you go, "] |
| 54 |
}, { |
| 55 |
"match" : ["yes", "like", "cup"], |
| 56 |
"pre" : [["token", "offercoffee", "yes"]], |
| 57 |
"post" : [["settoken", "offercoffee", "0"]], |
| 58 |
"msg" : ["You'll need money to pay for the coffee, friend."] |
| 59 |
}, { |
| 60 |
"match" : ["coffee", "fresh", "cup"], |
| 61 |
"pre" : [], |
| 62 |
"post" : [["settoken", "offercoffee", "yes"]], |
| 63 |
"msg" : ["Coffee is 3 silver a cup, would you like some?"] |
| 64 |
}, { |
| 65 |
"match" : ["*"], |
| 66 |
"pre" : [], |
| 67 |
"post" : [["settoken", "seenbefore", "yes"]], |
| 68 |
"msg" : ["Have a cup of coffee! Fresh coffee!"] |
| 69 |
} |
| 70 |
]} |