Updates to the quest test map and a number of .msg files that demonstrate

how to use include to source rules from different files.


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13008 282e977c-c81d-0410-88c4-b93c2d0d6712
master
cavesomething 2010-04-27 17:13:03 +00:00
parent 22e874afb9
commit 30f469526c
6 changed files with 76 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"rules": [
{
"match" : ["2", "two"],
"pre" : [],
"post" : [],
"msg" : ["You said 2."]
}
]}

View File

@ -0,0 +1,9 @@
{
"rules": [
{
"match" : ["3", "three"],
"pre" : [],
"post" : [],
"msg" : ["You said 3."]
}
]}

View File

@ -0,0 +1,11 @@
{
"rules": [
{
"match" : ["4", "four"],
"pre" : [],
"post" : [],
"msg" : ["You said 4."]
},{
"include" : ["test/quest_handling/girl5.msg"]
}
]}

View File

@ -0,0 +1,9 @@
{
"rules": [
{
"match" : ["5", "five"],
"pre" : [],
"post" : [],
"msg" : ["You said 5."]
}
]}

View File

@ -0,0 +1,19 @@
{
"location" : "test/includegirl",
"rules": [
{
"match" : ["1", "one"],
"pre" : [],
"post" : [],
"msg" : ["You said 1."]
},{
"include" : ["test/quest_handling/girl2.msg"]
},{
"include" : ["test/quest_handling/girl3.msg", "test/quest_handling/girl4.msg"]
},{
"match" : ["*"],
"pre" : [],
"post" : [],
"msg" : ["You didn't say a number to me."]
}
]}

View File

@ -5,7 +5,7 @@ width 20
height 10
msg
Created: 2010-03-22 Cavesomething
Modified: 2010-03-30 Cavesomething
Modified: 2010-04-27 Cavesomething
endmsg
end
arch graymarble
@ -1150,10 +1150,28 @@ end
arch graymarble
x 19
end
arch dancing_girl
x 19
type 0
stand_still 1
arch event_say
name test/quest_handling/girlmain.msg
title Python
slaying /python/dialog/npc_dialog.py
end
end
arch graymarble
x 19
y 1
end
arch sign
msg
This dancing girl uses rules from multiple files that include each other.
say a number between 1 and 6, and you will get a response.
endmsg
x 19
y 1
end
arch graymarble
x 19
y 2