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-b93c2d0d6712master
parent
22e874afb9
commit
30f469526c
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["2", "two"],
|
||||
"pre" : [],
|
||||
"post" : [],
|
||||
"msg" : ["You said 2."]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["3", "three"],
|
||||
"pre" : [],
|
||||
"post" : [],
|
||||
"msg" : ["You said 3."]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["4", "four"],
|
||||
"pre" : [],
|
||||
"post" : [],
|
||||
"msg" : ["You said 4."]
|
||||
},{
|
||||
"include" : ["test/quest_handling/girl5.msg"]
|
||||
}
|
||||
]}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"rules": [
|
||||
{
|
||||
"match" : ["5", "five"],
|
||||
"pre" : [],
|
||||
"post" : [],
|
||||
"msg" : ["You said 5."]
|
||||
}
|
||||
]}
|
|
@ -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."]
|
||||
}
|
||||
]}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue