Changeset 524:4242066f771d


Ignore:
Timestamp:
04/09/11 21:46:07 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
35613562343333383161326663393434643831656633316665336637626161313861396136303565
Message:

Hook up if choices in haiku battle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/npcs/kitsune.json

    r483 r524  
    1313        "choices" : [
    1414            { "text": "In battle!", "next": "state.battle_start" },
    15             { "text": "In a haiku competition.", "next": "state.haiku_start" }
     15            { "text": "In a haiku competition.", "next": "state.haiku_start", "if": "len(world.fox.scrolls) > 0" }
    1616        ]
    1717    },
     
    3333        "text" : "Over the wintry\nforest, winds howl in rage\n...?",
    3434        "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" }
     35            { "text": "remaining in it?", "next": "state.haiku_wrong", "if": "'remaining in it?' in world.fox.scrolls" },
     36            { "text": "the end of autumn.", "next": "state.haiku_wrong", "if": "'the end of autumn.' in world.fox.scrolls" },
     37            { "text": "with no leaves to blow.", "next": "state.haiku_right", "if": "'with no leaves to blow.' in world.fox.scrolls" },
     38            { "text": "the Galaxy.", "next": "state.haiku_wrong", "if": "'the Galaxy.' in world.fox.scrolls" },
     39            { "text": "and it passes by.", "next": "state.haiku_wrong", "if": "'and it passes by.' in world.fox.scrolls" }
    4040        ]
    4141    },
     
    4343        "text" : "A dead chrysanthemum\nand yet - isn't there still something\n...?",
    4444        "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" }
     45            { "text": "remaining in it?", "next": "state.haiku_right", "if": "'remaining in it?' in world.fox.scrolls" },
     46            { "text": "the end of autumn.", "next": "state.haiku_wrong", "if": "'the end of autumn.' in world.fox.scrolls" },
     47            { "text": "with no leaves to blow.", "next": "state.haiku_wrong", "if": "'with no leaves to blow.' in world.fox.scrolls" },
     48            { "text": "the Galaxy.", "next": "state.haiku_wrong", "if": "'the Galaxy.' in world.fox.scrolls" },
     49            { "text": "and it passes by.", "next": "state.haiku_wrong", "if": "'and it passes by.' in world.fox.scrolls" }
    5050        ]
    5151    },
     
    5353        "text" : "First day of spring--\nI keep thinking about\n...?",
    5454        "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" }
     55            { "text": "remaining in it?", "next": "state.haiku_wrong", "if": "'remaining in it?' in world.fox.scrolls" },
     56            { "text": "the end of autumn.", "next": "state.haiku_right", "if": "'the end of autumn.' in world.fox.scrolls" },
     57            { "text": "with no leaves to blow.", "next": "state.haiku_wrong", "if": "'with no leaves to blow.' in world.fox.scrolls" },
     58            { "text": "the Galaxy.", "next": "state.haiku_wrong" , "if": "'the Galaxy.' in world.fox.scrolls"},
     59            { "text": "and it passes by.", "next": "state.haiku_wrong", "if": "'and it passes by.' in world.fox.scrolls" }
    6060        ]
    6161    },
Note: See TracChangeset for help on using the changeset viewer.