Mercurial > skaapsteker
view data/npcs/kitsune.json @ 270:e47efa33903b
Fixed key sequence handling.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 08 Apr 2011 17:13:25 +0200 |
parents | 2d5dfec4cd11 |
children | 74c875f7b1f5 |
line wrap: on
line source
{ "start" : { "on_entry" : "world.haiku_losses = 0; world.haiku_wins = 0", "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.", "auto_next": "state.onlyone" }, "onlyone" : { "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.", "auto_next": "state.here" }, "here" : { "text" : "But now we are here, face to face. How could you ever hope to defeat me?", "choices" : [ { "text": "In battle!", "next": "state.battle_start" }, { "text": "In a haiku competition.", "next": "state.haiku_start" } ] }, "battle_start" : { "text" : "Take your best shot!", "auto_next": "state.battle" }, "haiku_start" : { "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.", "auto_next": "state.haiku1" }, "battle" : { "events" : [ { "matches" : "world.battle_lost", "next": "state.lost" }, { "matches" : "world.battle_won", "next": "state.won" } ] }, "haiku1" : { "text" : "Over the wintry\nforest, winds howl in rage\n...?", "choices" : [ { "text": "remaining in it?", "next": "state.haiku_wrong" }, { "text": "the end of autumn.", "next": "state.haiku_wrong" }, { "text": "with no leaves to blow.", "next": "state.haiku_right" }, { "text": "the Galaxy.", "next": "state.haiku_wrong" }, { "text": "and it passes by.", "next": "state.haiku_wrong" } ] }, "haiku2" : { "text" : "A dead chrysanthemum\nand yet - isn't there still something\n...?", "choices" : [ { "text": "remaining in it?", "next": "state.haiku_right" }, { "text": "the end of autumn.", "next": "state.haiku_wrong" }, { "text": "with no leaves to blow.", "next": "state.haiku_wrong" }, { "text": "the Galaxy.", "next": "state.haiku_wrong" }, { "text": "and it passes by.", "next": "state.haiku_wrong" } ] }, "haiku3" : { "text" : "First day of spring--\nI keep thinking about\n...?", "choices" : [ { "text": "remaining in it?", "next": "state.haiku_wrong" }, { "text": "the end of autumn.", "next": "state.haiku_right" }, { "text": "with no leaves to blow.", "next": "state.haiku_wrong" }, { "text": "the Galaxy.", "next": "state.haiku_wrong" }, { "text": "and it passes by.", "next": "state.haiku_wrong" } ] }, "haiku_right" : { "on_entry" : "world.haiku_wins += 1", "events" : [ { "matches" : "world.haiku_wins == 1 and world.haiku_losses == 0", "next": "state.haiku_1win_0loss" }, { "matches" : "world.haiku_wins == 1 and world.haiku_losses == 1", "next": "state.haiku_1win_1loss" }, { "matches" : "world.haiku_wins == 2", "next": "state.haiku_2wins" } ] }, "haiku_1win_0loss" : { "text" : "Correct. Hmm, let’s try a harder one.", "auto_next": "state.haiku2" }, "haiku_1win_1loss" : { "text" : "That’s right! Who would have thought? One more try...", "auto_next": "state.haiku3" }, "haiku_2wins" : { "text" : "Yes – that’s correct! How could this be?", "auto_next": "state.won" }, "haiku_wrong" : { "on_entry" : "world.haiku_losses += 1", "text" : "Ha, that’s wrong! One point to me.", "events" : [ { "matches" : "world.haiku_losses == 1 and world.haiku_wins == 0", "next": "state.haiku2" }, { "matches" : "world.haiku_losses == 1 and world.haiku_wins == 1", "next": "state.haiku3" }, { "matches" : "world.haiku_losses == 2", "next": "state.lost" } ] }, "lost" : { "text" : "Haha! Nobody can withstand the might and wit of the kitsune! You are defeated, fox. Out of my sight.", "auto_next": "state.start" }, "won" : { "text" : "What? How? No! This is impossible – how could you defeat me? My power... slipping... my tails! Gone! Noooo...", "auto_next": "state.defeated" }, "defeated" : { } }