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

Stop flying when you land.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 07 May 2011 20:30:25 +0200
parents 58843eca336b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
153
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
1 {
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
2 "start" : {
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
3 "text" : "Oh poor thing, a tailless fox! What happened to you, little one?",
325
efa037c3c82c Streamline initial conversation with monk.
Simon Cross <hodgestar@gmail.com>
parents: 299
diff changeset
4 "auto_next_text" : "Grrrr...",
efa037c3c82c Streamline initial conversation with monk.
Simon Cross <hodgestar@gmail.com>
parents: 299
diff changeset
5 "auto_next": "state.unfortunate"
153
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
6 },
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
7 "unfortunate" : {
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
8 "text" : "Unfortunate, I’m sure. That’s why I keep my lucky fox tail handy.",
325
efa037c3c82c Streamline initial conversation with monk.
Simon Cross <hodgestar@gmail.com>
parents: 299
diff changeset
9 "auto_next_text" : "Yip yip!",
efa037c3c82c Streamline initial conversation with monk.
Simon Cross <hodgestar@gmail.com>
parents: 299
diff changeset
10 "auto_next" : "state.you_dont_speak"
153
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
11 },
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
12 "you_dont_speak" : {
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
13 "text" : "You don’t speak, of course. Forgive a silly old man. I lose my senses when I haven’t had my tea! Mmm, a fine brew of oolong! But there’s a demon in the attic and I’m too scared to fetch the tea leaves. Pity you don’t understand me, or you could get me a cup!",
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
14 "auto_next": "state.no_tea"
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
15 },
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
16 "no_tea" : {
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
17 "text" : "Oh, what I wouldn’t do for a cup of tea.",
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
18 "events" : [
299
22d71135e497 Fix fox-has-tea-for-monk state check.
Simon Cross <hodgestar@gmail.com>
parents: 287
diff changeset
19 { "matches" : "world.fox.item == 'teacupfull'", "next": "state.got_tea" }
153
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
20 ]
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
21 },
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
22 "got_tea" : {
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
23 "text" : "My tea! Oh, heavenly! Such aroma, what a taste... Just what I need. Mmm...",
287
f512e874b2e7 Add monk and kumiko missions to game.json and to monk and kumiko.
Simon Cross <hodgestar@gmail.com>
parents: 284
diff changeset
24 "auto_next": "state.distracted",
511
58843eca336b Kill the tea cup when the monk takes it.
Simon Cross <hodgestar@gmail.com>
parents: 478
diff changeset
25 "on_exit" : "world.missions.monk_tea = True; world.fox.item = None"
153
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
26 },
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
27 "distracted" : {
478
77cfc17ac949 Have monk drop shapeshifting tail (or at least call the function that should do that).
Simon Cross <hodgestar@gmail.com>
parents: 325
diff changeset
28 "on_entry" : "drop_item('tail_shapeshift')"
153
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
29 }
704d23022f09 Start of dialogue tree / NPC state machine support.
Simon Cross <hodgestar@gmail.com>
parents:
diff changeset
30 }