comparison data/npcs/kitsune.json @ 483:b48c194c4af9

Some haiku and encoding fixes.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 09 Apr 2011 22:05:27 +0200
parents 74c875f7b1f5
children 4242066f771d
comparison
equal deleted inserted replaced
482:200d25350d87 483:b48c194c4af9
1 { 1 {
2 "start" : { 2 "start" : {
3 "on_entry" : "world.haiku_losses = 0; world.haiku_wins = 0", 3 "on_entry" : "world.missions.haiku_losses = 0; world.missions.haiku_wins = 0",
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.", 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" 5 "auto_next": "state.onlyone"
6 }, 6 },
7 "onlyone" : { 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.", 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.",
58 { "text": "the Galaxy.", "next": "state.haiku_wrong" }, 58 { "text": "the Galaxy.", "next": "state.haiku_wrong" },
59 { "text": "and it passes by.", "next": "state.haiku_wrong" } 59 { "text": "and it passes by.", "next": "state.haiku_wrong" }
60 ] 60 ]
61 }, 61 },
62 "haiku_right" : { 62 "haiku_right" : {
63 "on_entry" : "world.haiku_wins += 1", 63 "on_entry" : "world.missions.haiku_wins += 1",
64 "events" : [ 64 "events" : [
65 { "matches" : "world.haiku_wins == 1 and world.haiku_losses == 0", "next": "state.haiku_1win_0loss" }, 65 { "matches" : "world.missions.haiku_wins == 1 and world.missions.haiku_losses == 0", "next": "state.haiku_1win_0loss" },
66 { "matches" : "world.haiku_wins == 1 and world.haiku_losses == 1", "next": "state.haiku_1win_1loss" }, 66 { "matches" : "world.missions.haiku_wins == 1 and world.missions.haiku_losses == 1", "next": "state.haiku_1win_1loss" },
67 { "matches" : "world.haiku_wins == 2", "next": "state.haiku_2wins" } 67 { "matches" : "world.missions.haiku_wins == 2", "next": "state.haiku_2wins" }
68 ] 68 ]
69 }, 69 },
70 "haiku_1win_0loss" : { 70 "haiku_1win_0loss" : {
71 "text" : "Correct. Hmm, let’s try a harder one.", 71 "text" : "Correct. Hmm, let’s try a harder one.",
72 "auto_next": "state.haiku2" 72 "auto_next": "state.haiku2"
78 "haiku_2wins" : { 78 "haiku_2wins" : {
79 "text" : "Yes – that’s correct! How could this be?", 79 "text" : "Yes – that’s correct! How could this be?",
80 "auto_next": "state.won" 80 "auto_next": "state.won"
81 }, 81 },
82 "haiku_wrong" : { 82 "haiku_wrong" : {
83 "on_entry" : "world.haiku_losses += 1", 83 "on_entry" : "world.missions.haiku_losses += 1",
84 "text" : "Ha, that’s wrong! One point to me.", 84 "text" : "Ha, that’s wrong! One point to me.",
85 "events" : [ 85 "events" : [
86 { "matches" : "world.haiku_losses == 1 and world.haiku_wins == 0", "next": "state.haiku2" }, 86 { "matches" : "world.missions.haiku_losses == 1 and world.missions.haiku_wins == 0", "next": "state.haiku2" },
87 { "matches" : "world.haiku_losses == 1 and world.haiku_wins == 1", "next": "state.haiku3" }, 87 { "matches" : "world.missions.haiku_losses == 1 and world.missions.haiku_wins == 1", "next": "state.haiku3" },
88 { "matches" : "world.haiku_losses == 2", "next": "state.lost" } 88 { "matches" : "world.missions.haiku_losses == 2", "next": "state.lost" }
89 ] 89 ]
90 }, 90 },
91 "lost" : { 91 "lost" : {
92 "text" : "Haha! Nobody can withstand the might and wit of the kitsune! You are defeated, fox. Out of my sight.", 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" 93 "auto_next": "state.start"