Mercurial > skaapsteker
changeset 215:4ac8ef4b44c3
boss fight dialog
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Thu, 07 Apr 2011 00:38:47 +0200 |
parents | 6e7faba82c21 |
children | 023eea4ad4a5 |
files | data/npcs/kitsune.json |
diffstat | 1 files changed, 101 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/npcs/kitsune.json Thu Apr 07 00:38:47 2011 +0200 @@ -0,0 +1,101 @@ +{ + "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" : { + } +} \ No newline at end of file