comparison data/npcs/guard.json @ 198:4e7ca5cf57fa

syntax fix for accessing world properties
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Wed, 06 Apr 2011 22:15:44 +0200
parents 13e10b877f6c
children 16ffe6f5dbb8
comparison
equal deleted inserted replaced
197:6696ffd51ac2 198:4e7ca5cf57fa
1 { 1 {
2 "start" : { 2 "start" : {
3 "text" : "Shoo, filthy fox! How did you get in here?", 3 "text" : "Shoo, filthy fox! How did you get in here?",
4 "events" : [ 4 "events" : [
5 { "matches" : "world.fox_is_shapeshifted()", "next": "state.shapeshifted" }, 5 { "matches" : "world.fox_is_shapeshifted", "next": "state.shapeshifted" },
6 { "matches" : "world.fox_is_disguised()", "next": "state.disguised" } 6 { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
7 ] 7 ]
8 }, 8 },
9 "shapeshifted" : { 9 "shapeshifted" : {
10 "text" : "Excuse me, ma’am. The gate is closed.", 10 "text" : "Excuse me, ma’am. The gate is closed.",
11 "choices" : [ 11 "choices" : [
12 { "text": "Why is that?", "next": "state.monks" }, 12 { "text": "Why is that?", "next": "state.monks" },
13 { "text": "Let me out now!", "next": "state.staycalm" }, 13 { "text": "Let me out now!", "next": "state.staycalm" },
14 { "text": "Sayonara.", "next": "state.secondtry" } 14 { "text": "Sayonara.", "next": "state.secondtry" }
15 ], 15 ],
16 "events" : [ 16 "events" : [
17 { "matches" : "world.fox_is_disguised()", "next": "state.disguised" } 17 { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
18 ] 18 ]
19 }, 19 },
20 "monks" : { 20 "monks" : {
21 "text" : "The monks have asked us not to let anybody out.", 21 "text" : "The monks have asked us not to let anybody out.",
22 "choices" : [ 22 "choices" : [
32 "auto_next": "state.secondtry" 32 "auto_next": "state.secondtry"
33 }, 33 },
34 "secondtry" : { 34 "secondtry" : {
35 "text" : "The gate is locked, and it’s staying locked.", 35 "text" : "The gate is locked, and it’s staying locked.",
36 "events" : [ 36 "events" : [
37 { "matches" : "world.fox_is_disguised()", "next": "state.disguised" } 37 { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
38 ] 38 ]
39 }, 39 },
40 "disguised" : { 40 "disguised" : {
41 "text" : "Ah, good evening, young lady! I’m afraid the gate is still closed for the night...", 41 "text" : "Ah, good evening, young lady! I’m afraid the gate is still closed for the night...",
42 "choices" : [ 42 "choices" : [