Mercurial > skaapsteker
annotate data/npcs/kitsune.json @ 496:3228239a0914
Fix item dropping bug.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 22:47:21 +0200 |
parents | b48c194c4af9 |
children | 4242066f771d |
rev | line source |
---|---|
215 | 1 { |
2 "start" : { | |
483
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
3 "on_entry" : "world.missions.haiku_losses = 0; world.missions.haiku_wins = 0", |
215 | 4 "text" : "I’ve been watching you for a time but I never thought you would get this far! You have been very wily and devious.", |
5 "auto_next": "state.onlyone" | |
6 }, | |
7 "onlyone" : { | |
8 "text" : "There can only be one kitsune in this world at a time. I did not think someone the likes of you would ever challenge me.", | |
9 "auto_next": "state.here" | |
10 }, | |
11 "here" : { | |
12 "text" : "But now we are here, face to face. How could you ever hope to defeat me?", | |
13 "choices" : [ | |
14 { "text": "In battle!", "next": "state.battle_start" }, | |
15 { "text": "In a haiku competition.", "next": "state.haiku_start" } | |
16 ] | |
17 }, | |
18 "battle_start" : { | |
19 "text" : "Take your best shot!", | |
20 "auto_next": "state.battle" | |
21 }, | |
22 "haiku_start" : { | |
23 "text" : "What? Play me at my own game? You can certainly try! You must beat me at two out of three challenges. Tell me which line is missing.", | |
24 "auto_next": "state.haiku1" | |
25 }, | |
26 "battle" : { | |
27 "events" : [ | |
294
74c875f7b1f5
Fill in remaining missions and make remaining npc state machines pass basic sanity tests.
Simon Cross <hodgestar@gmail.com>
parents:
220
diff
changeset
|
28 { "matches" : "world.missions.final_battle_lost", "next": "state.lost" }, |
74c875f7b1f5
Fill in remaining missions and make remaining npc state machines pass basic sanity tests.
Simon Cross <hodgestar@gmail.com>
parents:
220
diff
changeset
|
29 { "matches" : "world.missions.final_battle_won", "next": "state.won" } |
215 | 30 ] |
31 }, | |
32 "haiku1" : { | |
33 "text" : "Over the wintry\nforest, winds howl in rage\n...?", | |
34 "choices" : [ | |
35 { "text": "remaining in it?", "next": "state.haiku_wrong" }, | |
36 { "text": "the end of autumn.", "next": "state.haiku_wrong" }, | |
37 { "text": "with no leaves to blow.", "next": "state.haiku_right" }, | |
38 { "text": "the Galaxy.", "next": "state.haiku_wrong" }, | |
39 { "text": "and it passes by.", "next": "state.haiku_wrong" } | |
40 ] | |
41 }, | |
42 "haiku2" : { | |
43 "text" : "A dead chrysanthemum\nand yet - isn't there still something\n...?", | |
44 "choices" : [ | |
45 { "text": "remaining in it?", "next": "state.haiku_right" }, | |
46 { "text": "the end of autumn.", "next": "state.haiku_wrong" }, | |
47 { "text": "with no leaves to blow.", "next": "state.haiku_wrong" }, | |
48 { "text": "the Galaxy.", "next": "state.haiku_wrong" }, | |
49 { "text": "and it passes by.", "next": "state.haiku_wrong" } | |
50 ] | |
51 }, | |
52 "haiku3" : { | |
53 "text" : "First day of spring--\nI keep thinking about\n...?", | |
54 "choices" : [ | |
55 { "text": "remaining in it?", "next": "state.haiku_wrong" }, | |
56 { "text": "the end of autumn.", "next": "state.haiku_right" }, | |
57 { "text": "with no leaves to blow.", "next": "state.haiku_wrong" }, | |
58 { "text": "the Galaxy.", "next": "state.haiku_wrong" }, | |
59 { "text": "and it passes by.", "next": "state.haiku_wrong" } | |
60 ] | |
61 }, | |
62 "haiku_right" : { | |
483
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
63 "on_entry" : "world.missions.haiku_wins += 1", |
215 | 64 "events" : [ |
483
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
65 { "matches" : "world.missions.haiku_wins == 1 and world.missions.haiku_losses == 0", "next": "state.haiku_1win_0loss" }, |
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
66 { "matches" : "world.missions.haiku_wins == 1 and world.missions.haiku_losses == 1", "next": "state.haiku_1win_1loss" }, |
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
67 { "matches" : "world.missions.haiku_wins == 2", "next": "state.haiku_2wins" } |
215 | 68 ] |
69 }, | |
70 "haiku_1win_0loss" : { | |
71 "text" : "Correct. Hmm, let’s try a harder one.", | |
72 "auto_next": "state.haiku2" | |
73 }, | |
74 "haiku_1win_1loss" : { | |
75 "text" : "That’s right! Who would have thought? One more try...", | |
76 "auto_next": "state.haiku3" | |
77 }, | |
78 "haiku_2wins" : { | |
79 "text" : "Yes – that’s correct! How could this be?", | |
80 "auto_next": "state.won" | |
81 }, | |
82 "haiku_wrong" : { | |
483
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
83 "on_entry" : "world.missions.haiku_losses += 1", |
215 | 84 "text" : "Ha, that’s wrong! One point to me.", |
85 "events" : [ | |
483
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
86 { "matches" : "world.missions.haiku_losses == 1 and world.missions.haiku_wins == 0", "next": "state.haiku2" }, |
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
87 { "matches" : "world.missions.haiku_losses == 1 and world.missions.haiku_wins == 1", "next": "state.haiku3" }, |
b48c194c4af9
Some haiku and encoding fixes.
Jeremy Thurgood <firxen@gmail.com>
parents:
294
diff
changeset
|
88 { "matches" : "world.missions.haiku_losses == 2", "next": "state.lost" } |
215 | 89 ] |
90 }, | |
91 "lost" : { | |
92 "text" : "Haha! Nobody can withstand the might and wit of the kitsune! You are defeated, fox. Out of my sight.", | |
93 "auto_next": "state.start" | |
94 }, | |
95 "won" : { | |
96 "text" : "What? How? No! This is impossible – how could you defeat me? My power... slipping... my tails! Gone! Noooo...", | |
97 "auto_next": "state.defeated" | |
98 }, | |
99 "defeated" : { | |
100 } | |
101 } |