Changeset 311:5250c77b352a


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

Hook up kaneda2 and tetsuo converstaion.

Location:
data/npcs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/npcs/kaneda2.json

    r297 r311  
    22    "start" : {
    33        "text" : "Tetsuo-san, I would be delighted to conclude our business negotiation!",
    4         "events" : [
    5             { "matches" : "npcs.tetsuo.state ==  'joy'", "next": "state.signing" }
    6         ]
     4        "auto_next" : "state.signing",
     5        "on_exit" : "switch_to('tetsuo')"
    76    },
    87    "signing" : {
    98        "text" : "Of course, it’s just a matter of me signing the agreement.",
    10         "events" : [
    11             { "matches" : "npcs.tetsuo.state ==  'inspect'", "next": "state.ofcourse" }
    12         ]
     9        "auto_next": "state.ofcourse",
     10        "on_exit" : "switch_to('tetsuo')"
    1311    },
    1412    "ofcourse" : {
     
    2321    "preposterous" : {
    2422        "text" : "Preposterous terms! What do you take me for, a fool?",
    25         "events" : [
    26             { "matches" : "npcs.tetsuo.state ==  'shoddy'", "next": "state.pah" }
    27         ]
     23        "auto_next" : "state.pah",
     24        "on_exit" : "switch_to('tetsuo')"
    2825    },
    2926    "pah" : {
    3027        "text" : "Pah, is this how you conduct business in the country?",
    31         "events" : [
    32             { "matches" : "npcs.tetsuo.state ==  'cheat'", "next": "state.insult" }
    33         ]
     28        "auto_next" : "state.insult",
     29        "on_exit" : "switch_to('tetsuo')"
    3430    },
    3531    "insult" : {
    3632        "text" : "Such insult! The deal is off!",
    37         "events" : [
    38             { "matches" : "npcs.tetsuo.state ==  'riddance'", "next": "state.gone" }
    39         ]
     33        "auto_next": "state.gone",
     34        "on_exit" : "switch_to('tetsuo')"
    4035    },
    4136    "gone" : {
  • data/npcs/tetsuo.json

    r207 r311  
    22    "start" : {
    33        "events" : [
    4             { "matches" : "npcs.kaneda2.state ==  'start'", "next": "state.joy" }
     4            { "matches" : "npcs.kaneda2.state !=  'start'", "next": "state.joy" }
    55        ]
    66    },
    77    "joy" : {
    88        "text" : "Kaneda-san, nothing would bring me more joy.",
    9         "events" : [
    10             { "matches" : "npcs.kaneda2.state ==  'signing'", "next": "state.inspect" }
    11         ]
     9        "auto_next" : "state.inspect",
     10        "on_exit" : "switch_to('kaneda2')"
    1211    },
    1312    "inspect" : {
    1413        "text" : "Naturally, as soon as I inspect the goods.",
    15         "events" : [
    16             { "matches" : "npcs.kaneda2.state ==  'ofcourse'", "next": "state.inspecting" }
    17         ]
     14        "auto_next" : "state.inspecting",
     15        "on_exit" : "switch_to('kaneda2')"
    1816    },
    1917    "inspecting" : {
     
    2422    "shoddy" : {
    2523        "text" : "You should speak! The shoddy nature of your goods is simply unacceptable.",
    26         "events" : [
    27             { "matches" : "npcs.kaneda2.state ==  'pah'", "next": "state.cheat" }
    28         ]
     24        "auto_next" : "state.cheat",
     25        "on_exit" : "switch_to('kaneda2')"
    2926    },
    3027    "cheat" : {
    3128        "text" : "At least we don’t cheat our buyers with damaged goods like you city folk!",
    32         "events" : [
    33             { "matches" : "npcs.kaneda2.state ==  'insult'", "next": "state.riddance" }
    34         ]
     29        "auto_next" : "state.riddance",
     30        "on_exit" : "switch_to('kaneda2')"
    3531    },
    3632    "riddance" : {
    3733        "text" : "Good riddance.",
    38         "events" : [
    39             { "matches" : "npcs.kaneda2.state ==  'gone'", "next": "state.done" }
    40         ]
     34        "auto_next": "state.done"
    4135    },
    4236    "done" : {
Note: See TracChangeset for help on using the changeset viewer.