A test map and associated .msg files that demonstrate the things that can
be done with the test scripts and extended dialog files. The signs describe what should happen at each place, this map is intended to also track buggy behaviour and regressions. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12972 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
caf5e12e1c
commit
b136289de6
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
"location" : "testquest",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest2", "30"]],
|
||||
"post": [],
|
||||
"msg" : ["Thank you for getting me the apples $you"]
|
||||
},{
|
||||
"match" : ["yes"],
|
||||
"pre" : [["quest", "testquest2", "10"], ["item", "apple", "7"], ["token", "askapples", "yes"]],
|
||||
"post": [["settoken", "askapples", "no"], ["takeitem", "apples", "0"], ["quest", "testquest2", "40"], ["giveitem", "money", "20"]],
|
||||
"msg" : ["Wow, you got even more apples than I wanted, thank you so much, here's a couple of gold coins for you"]
|
||||
},{
|
||||
"match" : ["yes"],
|
||||
"pre" : [["quest", "testquest2", "10"], ["item", "apple", "6"], ["token", "askapples", "yes"]],
|
||||
"post": [["settoken", "askapples", "no"], ["takeitem", "apples", "6"], ["quest", "testquest2", "30"]],
|
||||
"msg" : ["Thank You for giving me the apples."]
|
||||
},{
|
||||
"match" : ["no"],
|
||||
"pre" : [["token", "askapples", "yes"]],
|
||||
"post": [["settoken", "askapples", "no"]],
|
||||
"msg" : ["Ok, speak to me again if you change your mind"]
|
||||
},{
|
||||
"match" : ["no","yes"],
|
||||
"pre" : [],
|
||||
"post": [],
|
||||
"msg" : ["I didn't ask a question"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest2", "10"], ["item", "apple", "6"]],
|
||||
"post": [["settoken", "askapples", "yes"]],
|
||||
"msg" : ["You have the apples? will you give them to me?"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest2", "20"]],
|
||||
"post": [],
|
||||
"msg" : ["What's the hold up? I already gave you my mcguffin."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest2", "10"]],
|
||||
"post": [["giveitem", "mcguffin"], ["quest", "testquest2", "20"]],
|
||||
"msg" : ["Struggling to get the apples? here, take my mcguffin to help you."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [["quest", "testquest2", "10"]],
|
||||
"msg" : ["Give me apples, I want 6 apples"]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"location" : "bothquest",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["*"],
|
||||
"pre" : [["token", "gave crown", "yes"]],
|
||||
"post": [],
|
||||
"msg" : ["You have already been crowned"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest", "50"], ["quest", "testquest2", "30"]],
|
||||
"post": [["giveitem", "crown of win"], ["settoken", "gave crown", "yes"]],
|
||||
"msg" : ["You completed both quests, well done, the crown of win is yours"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest" "50"], ["quest", "testquest2", "10"]],
|
||||
"post": [],
|
||||
"msg" : ["You have opened the door, but still need to recover the apples"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest2" "30"], ["quest", "testquest" "10"]],
|
||||
"post": [],
|
||||
"msg" : ["You have recovered the apples, but still need to complete the sword quest"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest" "50"]],
|
||||
"post": [],
|
||||
"msg" : ["You have opened the door, but there is another quest for you to do still"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest2" "30"]],
|
||||
"post": [],
|
||||
"msg" : ["You have recovered the apples, but there is another quest for you to do still"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [],
|
||||
"msg" : ["There are two quests here, complete them both and I will reward you."]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"location" : "scorn",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["treasure", "random"],
|
||||
"pre" : [["token", "polite", "yes"]],
|
||||
"post": [["givecontents", "pouch"], ["settoken", "polite", "no"]],
|
||||
"msg" : ["Here you go."]
|
||||
},{
|
||||
"match" : ["treasure", "random"],
|
||||
"pre" : [],
|
||||
"post": [["settoken", "choice", "treasure"]],
|
||||
"msg" : ["Say Please"]
|
||||
},{
|
||||
"match" : ["please"],
|
||||
"pre" : [["token", "choice", "dice"]],
|
||||
"post": [["giveitem", "Furry dice", "2"], ["settoken", "choice", "none"], ["settoken", "polite", "no"]],
|
||||
"msg" : ["Ok then, here you go"]
|
||||
},{
|
||||
"match" : ["please"],
|
||||
"pre" : [["token", "choice", "treasure"]],
|
||||
"post": [["givecontents", "pouch"], ["settoken", "choice", "none"], ["settoken", "polite", "no"]],
|
||||
"msg" : ["Ok then, here you go"]
|
||||
},{
|
||||
"match" : ["please"],
|
||||
"pre" : [],
|
||||
"post": [["settoken", "polite", "yes"]],
|
||||
"msg" : ["What do you want?"]
|
||||
},{
|
||||
"match" : ["dice", "furry"],
|
||||
"pre" : [["token", "polite", "yes"]],
|
||||
"post": [["giveitem", "Furry dice", "2"], ["settoken", "polite", "no"]],
|
||||
"msg" : ["Here you go."]
|
||||
},{
|
||||
"match" : ["dice", "furry"],
|
||||
"pre" : [],
|
||||
"post": [["settoken", "choice", "dice"]],
|
||||
"msg" : ["Say Please"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [["settoken", "choice", "offer"]],
|
||||
"msg" : ["I have 2 items, which I can give you, a random treasure, or some furry dice, but if you kill me, you will get neither. Which would you like?"]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"location" : "connectiontest",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest" "50"]],
|
||||
"post": [],
|
||||
"msg" : ["I've already opened the door."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest" "40"]],
|
||||
"post": [["connection", "4"], ["quest", "testquest" "50"]],
|
||||
"msg" : ["I'll just open the door for you."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest" "10"]["token", "pester", "1"]],
|
||||
"post": [],
|
||||
"msg" : ["I gave you a biccie already, $you; now do your quest."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest" "10"]],
|
||||
"post": [["settoken", "pester", "1"],["giveitem", "biccie"]],
|
||||
"msg" : ["You haven't got far enough in the quest yet, but have a biccie."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [["giveitem", "money", "74"]],
|
||||
"msg" : ["Hello, have 74 money"]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"location" : "friendlypeep",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["strong"],
|
||||
"pre" : [["level", "10"]],
|
||||
"post": [],
|
||||
"msg" : ["you are mighty."]
|
||||
},{
|
||||
"match" : ["strong"],
|
||||
"pre" : [],
|
||||
"post": [],
|
||||
"msg" : ["you are wimpy"]
|
||||
},{
|
||||
"match" : ["crash"],
|
||||
"pre" : [],
|
||||
"post": [["giveitem", "Royal Guard", "2"]],
|
||||
"msg" : ["Here, have a couple of pet knights"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["token", "seenbefore", "yes"], ["item", "money", "100"]],
|
||||
"post": [["takeitem", "money", "12"]],
|
||||
"msg" : ["Hello again $you, you are rich, gissa bob."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["token", "seenbefore", "yes"]],
|
||||
"post": [],
|
||||
"msg" : ["Hello again $you."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [["settoken", "seenbefore", "yes"]],
|
||||
"msg" : ["Hello I'm $me."]
|
||||
}
|
||||
|
||||
]}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"location" : "scorn",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["two", "2"],
|
||||
"pre" : [],
|
||||
"post": [["givecontents", "markers2"]],
|
||||
"msg" : ["Here you go, this set are in my inventory."]
|
||||
},{
|
||||
"match" : ["one", "1"],
|
||||
"pre" : [],
|
||||
"post": [["givecontents", "markers1"]],
|
||||
"msg" : ["Here you go, this set are in the gift box."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [],
|
||||
"msg" : ["I have 2 sets of markers, which I can give you, do you want set one or two?"]
|
||||
}
|
||||
]}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"location" : "testquest",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest", "50"]],
|
||||
"post": [],
|
||||
"msg" : ["The old man has opened the door for you, well done."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest" "40"], ["token", "pester", "1"]],
|
||||
"post": [],
|
||||
"msg" : ["I told you already, speak to the old man"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest", "40"]],
|
||||
"post": [["settoken", "pester", "1"]],
|
||||
"msg" : ["Speak to the old man, and he'll open the door for you"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest", "20"], ["item", "testquesttarget"]]
|
||||
"post": [["takeitem","testquesttarget"],["quest", "testquest", "40"]]
|
||||
"msg" : ["Thank you for returning my sword, Speak to the old man, and he'll open the door for you"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest", "30"]],
|
||||
"post": [],
|
||||
"msg" : ["You found a sword? it's mine, hand it over."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest", "20"]],
|
||||
"post": [],
|
||||
"msg" : ["You found my sword? Please give it to me."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["quest", "testquest", "10"]],
|
||||
"post": [],
|
||||
"msg" : ["Have you got my sword yet?."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [["quest", "testquest", "10"]],
|
||||
"msg" : ["Fetch the sword and bring it back to me."]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"location" : "scorn",
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["*"],
|
||||
"pre" : [["age", "tenminutes", "0", "0", "0", "80", "0"]],
|
||||
"post": [["marktime", "tenminutes"]],
|
||||
"msg" : ["Oh no, you waited too long, and I got bored, let's try again shall we? Speak to me again in 10 minutes"]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["age", "tenminutes", "0", "0", "0", "0", "10"]],
|
||||
"post": [["settoken", "tenminutes", "0"], ["giveitem", "biccie"]],
|
||||
"msg" : ["Well done, have a biccie."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [["token", "tenminutes", "0"]],
|
||||
"post": [["marktime", "tenminutes"]],
|
||||
"msg" : ["Speak to me again in 10 minutes, and I will give you a reward."]
|
||||
},{
|
||||
"match" : ["*"],
|
||||
"pre" : [],
|
||||
"post": [["marktime", "tenminutes"]],
|
||||
"msg" : ["Oh no!, you spoke to me too soon, no biccie for you. Speak to me again in 10 minutes."]
|
||||
}
|
||||
]}
|
Loading…
Reference in New Issue