Changeset 321:b244d01a8881


Ignore:
Timestamp:
04/08/11 22:49:54 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Hook up kaneda and kumiko.

Location:
data/npcs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/npcs/kaneda.json

    r197 r321  
     1
    12{
    23    "start" : {
     
    78    "kumiko" : {
    89        "text" : "Ah, here is the fabled beauty, Kumiko.",
    9         "events" : [
    10             { "matches" : "npcs.kumiko.state ==  'kaneda'", "next": "state.tear" }
    11         ]
     10        "auto_next" : "state.tear",
     11        "on_exit" : "switch_to('kumiko')"
    1212    },
    1313    "tear" : {
    1414        "text" : "When I heard of your legendary charm, I rushed to your home right away. It is true what they say about your radiant glow. Ah, but what’s this? A tear?",
    15         "events" : [
    16             { "matches" : "npcs.kumiko.state ==  'jumped'", "next": "state.vase" }
    17         ]
     15        "auto_next": "state.vase",
     16        "on_exit" : "switch_to('kumiko')"
    1817    },
    1918    "vase" : {
    2019        "text" : "Hmm, well, never mind that. Do show me around your charming home. Hmm? Is that a broken vase I see?",
    21         "events" : [
    22             { "matches" : "npcs.kumiko.state ==  'fallen'", "next": "state.hmm" }
    23         ]
     20        "auto_next": "state.hmm",
     21        "on_exit" : "switch_to('kumiko')"
    2422    },
    2523    "hmm" : {
    2624        "text" : "Hmm.",
    27         "events" : [
    28             { "matches" : "npcs.kumiko.state ==  'shallwe'", "next": "state.smell" }
    29         ]
     25        "auto_next" : "state.smell",
     26        "on_exit" : "switch_to('kumiko')"
    3027    },
    3128    "smell" : {
    3229        "text" : "Yes. But only if you explain that horrible smell!",
    33         "events" : [
    34             { "matches" : "npcs.kumiko.state ==  'dropped'", "next": "state.wontstand" }
    35         ]
     30        "auto_next" : "state.wontstand",
     31        "on_exit" : "switch_to('kumiko')"
    3632    },
    3733    "wontstand" : {
    3834        "text" : "Kumiko-san, I won’t stand for this! A torn kimono, a house in disarray, dirt everywhere and that pungent stench. You are clearly no home maker! And to blame it all on a fox?",
    39         "events" : [
    40             { "matches" : "npcs.kumiko.state ==  'but'", "next": "state.wonthear" }
    41         ]
     35        "auto_next": "state.wonthear",
     36        "on_exit" : "switch_to('kumiko')"
    4237    },
    4338    "wonthear" : {
    4439        "text" : "I won’t hear any more from you.",
    45         "auto_next": "state.gone"
     40        "auto_next": "state.gone",
     41        "on_exit" : "switch_to('kumiko')"
    4642    },
    4743    "gone" : {
  • data/npcs/kumiko.json

    r287 r321  
    3030    "kaneda" : {
    3131        "text" : "Kaneda-san! I have been waiting for you.",
    32         "events" : [
    33             { "matches" : "npcs.kaneda.state == 'tear'", "next": "state.jumped" }
    34         ]
     32        "auto_next" : "state.jumped",
     33        "on_exit" : "switch_to('kaneda')"
    3534    },
    3635    "jumped" : {
    3736        "text" : "Oh, Kaneda-san, a dirty little fox jumped on me just as you were approaching and ripped my kimono.",
    38         "events" : [
    39             { "matches" : "npcs.kaneda.state == 'vase'", "next": "state.fallen" }
    40         ]
     37        "auto_next": "state.fallen",
     38        "on_exit" : "switch_to('kaneda')"
    4139    },
    4240    "fallen" : {
    4341        "text" : "I am sorry, Kaneda-san, it must just have fallen over. It was probably pushed by that mean-spirited fox.",
    44         "events" : [
    45             { "matches" : "npcs.kaneda.state == 'hmm'", "next": "state.shallwe" }
    46         ]
     42        "auto_next": "state.shallwe",
     43        "on_exit" : "switch_to('kaneda')"
    4744    },
    4845    "shallwe" : {
    4946        "text" : "Shall we- go on?",
    50         "events" : [
    51             { "matches" : "npcs.kaneda.state == 'smell'", "next": "state.dropped" }
    52         ]
     47        "auto_next": "state.dropped",
     48        "on_exit" : "switch_to('kaneda')"
    5349    },
    5450    "dropped" : {
    5551        "text" : "I- A fox came in and dropped an old fish?",
    56         "events" : [
    57             { "matches" : "npcs.kaneda.state == 'wontstand'", "next": "state.but" }
    58         ]
     52        "auto_next": "state.but",
     53        "on_exit" : "switch_to('kaneda')"
    5954    },
    6055    "but" : {
    6156        "text" : "But-",
    62         "events" : [
    63             { "matches" : "npcs.kaneda.state == 'wonthear'", "next": "state.curse" }
    64         ]
     57        "auto_next": "state.curse",
     58        "on_exit" : "switch_to('kaneda')"
    6559    },
    6660    "curse" : {
    6761        "text" : "Curse you, fox! I’ll be doomed to a peasant life forever!",
     62        "auto_next": "state.sob",
    6863        "on_exit": "world.missions.kumiko_disgraced = True"
     64    },
     65    "sob" : {
     66        "text" : "*sob*"
    6967    }
    7068}
Note: See TracChangeset for help on using the changeset viewer.