annotate data/npcs/guard.json @ 628:1fdfc7f03d98

Stop flying when you land.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 07 May 2011 20:30:25 +0200
parents 906fae3d3688
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
1 {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
2 "start" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
3 "text" : "Shoo, filthy fox! How did you get in here?",
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
4 "events" : [
289
16ffe6f5dbb8 Add fox.shape (which can be 'fox', 'human' or 'human_with_fan') to game.json. Use fox.shape in state checks in guard.json.
Simon Cross <hodgestar@gmail.com>
parents: 198
diff changeset
5 { "matches" : "world.fox.shape == 'human'", "next": "state.shapeshifted" },
16ffe6f5dbb8 Add fox.shape (which can be 'fox', 'human' or 'human_with_fan') to game.json. Use fox.shape in state checks in guard.json.
Simon Cross <hodgestar@gmail.com>
parents: 198
diff changeset
6 { "matches" : "world.fox.shape == 'human_with_fan'", "next": "state.disguised" }
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
7 ]
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
8 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
9 "shapeshifted" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
10 "text" : "Excuse me, ma’am. The gate is closed.",
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
11 "choices" : [
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
12 { "text": "Why is that?", "next": "state.monks" },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
13 { "text": "Let me out now!", "next": "state.staycalm" },
292
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
14 { "text": "Sayonara.", "next": "state.secondtry_human" }
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
15 ],
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
16 "events" : [
289
16ffe6f5dbb8 Add fox.shape (which can be 'fox', 'human' or 'human_with_fan') to game.json. Use fox.shape in state checks in guard.json.
Simon Cross <hodgestar@gmail.com>
parents: 198
diff changeset
17 { "matches" : "world.fox.shape == 'human_with_fan'", "next": "state.disguised" },
16ffe6f5dbb8 Add fox.shape (which can be 'fox', 'human' or 'human_with_fan') to game.json. Use fox.shape in state checks in guard.json.
Simon Cross <hodgestar@gmail.com>
parents: 198
diff changeset
18 { "matches" : "world.fox.shape == 'fox'", "next": "state.start" }
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
19 ]
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
20 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
21 "monks" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
22 "text" : "The monks have asked us not to let anybody out.",
292
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
23 "auto_next" : "state.noexceptions",
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
24 "auto_next_text" : "Pretty please?"
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
25 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
26 "noexceptions" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
27 "text" : "Sorry, no exceptions.",
292
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
28 "auto_next": "state.secondtry_human"
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
29 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
30 "staycalm" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
31 "text" : "Please stay calm. Perhaps you should go meditate?",
292
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
32 "auto_next": "state.secondtry_human"
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
33 },
292
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
34 "secondtry_fox" : {
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
35 "text" : "Shoo!",
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
36 "events" : [
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
37 { "matches" : "world.fox.shape == 'human_with_fan'", "next": "state.disguised" },
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
38 { "matches" : "world.fox.shape == 'human'", "next": "state.secondtry_human" }
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
39 ]
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
40 },
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
41 "secondtry_human" : {
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
42 "text" : "The gate is locked, and it’s staying locked.",
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
43 "events" : [
292
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
44 { "matches" : "world.fox.shape == 'human_with_fan'", "next": "state.disguised" },
93352ab52f2e Fix up possible inconsistencies in guard state machine fox shape handling by making liberal use of auto_next and splitting a state in two (one for the fox, one for the human).
Simon Cross <hodgestar@gmail.com>
parents: 289
diff changeset
45 { "matches" : "world.fox.shape == 'fox'", "next": "state.secondtry_fox" }
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
46 ]
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
47 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
48 "disguised" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
49 "text" : "Ah, good evening, young lady! I’m afraid the gate is still closed for the night...",
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
50 "choices" : [
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
51 { "text": "Even for me?", "next": "state.notsafe" },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
52 { "text": "Sayonara." }
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
53 ]
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
54 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
55 "notsafe" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
56 "text" : "Ah, well, it isn’t safe for pretty young women to be wandering around alone.",
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
57 "choices" : [
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
58 { "text": "It’s only for a moment. My house is just across the road.", "next": "state.hmm" }
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
59 ]
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
60 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
61 "hmm" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
62 "text" : "Hmm...",
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
63 "choices" : [
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
64 { "text": "You could come join me for some sake later.", "next": "state.okay" }
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
65 ]
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
66 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
67 "okay" : {
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
68 "text" : "Ah, well, okay! I guess I could make an exception, just this once... Just across the road, you say...",
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
69 "auto_next": "state.agreed"
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
70 },
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
71 "agreed" : {
500
906fae3d3688 Hook up three more tails.
Simon Cross <hodgestar@gmail.com>
parents: 461
diff changeset
72 "on_entry" : "npcs.guard.block = False; drop_item('tail_fireball')"
171
13e10b877f6c dialogue tree for temple guard
Adrianna Pińska <adrianna.pinska@gmail.com>
parents:
diff changeset
73 }
461
c6d1165bb16f Can talk your way past the guard
Neil Muller <drnlmuller@gmail.com>
parents: 292
diff changeset
74 }