Add give/take money/item tests
parent
20b385f928
commit
5156b32d99
|
@ -4,7 +4,7 @@ width 20
|
|||
height 20
|
||||
msg
|
||||
Created: 2007-12-16 tchize
|
||||
Modified: 2010-04-27 Cavesomething
|
||||
Modified: 2022-10-08 Nicolas Weeger
|
||||
endmsg
|
||||
end
|
||||
arch grass_only
|
||||
|
@ -518,6 +518,8 @@ y 12
|
|||
arch npc_dialog
|
||||
name /test/granpa_dialog.msg
|
||||
end
|
||||
arch club
|
||||
end
|
||||
end
|
||||
arch grass_only
|
||||
x 6
|
||||
|
|
|
@ -2,21 +2,46 @@
|
|||
"location" : "test_grandpa_01",
|
||||
"rules": [
|
||||
{
|
||||
"match" : "hello|hi",
|
||||
"pre" : [["token", "hello","0"]],
|
||||
"post" : [["settoken", "hello","1"]],
|
||||
"msg" : ["Hello, lad!","Hi, young fellow!","Howdy!"]
|
||||
"match" : ["gi"],
|
||||
"pre" : [],
|
||||
"post" : [["giveitem", "club"]],
|
||||
"msg" : ["giving a club"]
|
||||
}, {
|
||||
"match": "hello|hi",
|
||||
"pre" :[["token", "hello","1"]],
|
||||
"post" :[["settoken", "hello", "*"]],
|
||||
"match" : ["tai"],
|
||||
"pre" : [],
|
||||
"post" : [["takeitem", "club", "0"]],
|
||||
"msg" : ["Taking all clubs"]
|
||||
}, {
|
||||
"match" : ["ti"],
|
||||
"pre" : [],
|
||||
"post" : [["takeitem", "club"]],
|
||||
"msg" : ["Taking a club"]
|
||||
}, {
|
||||
"match" : ["gm"],
|
||||
"pre" : [],
|
||||
"post" : [["giveitem", "money", "61"]],
|
||||
"msg" : ["Here you go"]
|
||||
}, {
|
||||
"match" : ["tm"],
|
||||
"pre" : [],
|
||||
"post" : [["takeitem", "money", "61"]],
|
||||
"msg" : ["Well, thanks."]
|
||||
}, {
|
||||
"match" : ["hi", "hello"],
|
||||
"pre" : [["token", "hello", "0"]],
|
||||
"post" : [["settoken", "hello", "1"]],
|
||||
"msg" : ["Hello, lad!", "Hi, young fellow!", "Howdy!"]
|
||||
}, {
|
||||
"match" : ["hi", "hello"],
|
||||
"pre" : [["token", "hello", "1"]],
|
||||
"post" : [["settoken", "hello", "*"]],
|
||||
"msg" : ["I've heard, you know, I'm not deaf *grmbl*"],
|
||||
"replies": [["really", "Are you sure?", 1]]
|
||||
} , {
|
||||
"match" : "*",
|
||||
"pre" : [["token", "hello","*"]],
|
||||
"replies" : [["really", "Are you sure?", "1"]]
|
||||
}, {
|
||||
"match" : ["*"],
|
||||
"pre" : [["token", "hello", "*"]],
|
||||
"post" : [["settoken", "hello", "*"]],
|
||||
"msg" : ["What ?", "Huh ?", "What do you want ?"],
|
||||
"replies": [["hi", "hello, there"]]
|
||||
"replies" : [["hi", "hello, there"]]
|
||||
}
|
||||
]}
|
||||
]}
|
||||
|
|
Loading…
Reference in New Issue