Changeset 289:16ffe6f5dbb8


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

Add fox.shape (which can be 'fox', 'human' or 'human_with_fan') to game.json. Use fox.shape in state checks in guard.json.

Location:
data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/game.json

    r288 r289  
    33        "item": null,
    44        "tails" : [],
     5        "shape": "fox",
    56        "cur_health" : 40,
    67        "max_health" : 40,
  • data/npcs/guard.json

    r198 r289  
    33        "text" : "Shoo, filthy fox! How did you get in here?",
    44        "events" : [
    5             { "matches" : "world.fox_is_shapeshifted", "next": "state.shapeshifted" },
    6             { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
     5            { "matches" : "world.fox.shape == 'human'", "next": "state.shapeshifted" },
     6            { "matches" : "world.fox.shape == 'human_with_fan'", "next": "state.disguised" }
    77        ]
    88    },
     
    1515        ],
    1616        "events" : [
    17             { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
     17            { "matches" : "world.fox.shape == 'human_with_fan'", "next": "state.disguised" },
     18            { "matches" : "world.fox.shape == 'fox'", "next": "state.start" }
    1819        ]
    1920    },
     
    3536        "text" : "The gate is locked, and it’s staying locked.",
    3637        "events" : [
    37             { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
     38            { "matches" : "world.fox.shape == 'human_with_fan'", "next": "state.disguised" }
    3839        ]
    3940    },
Note: See TracChangeset for help on using the changeset viewer.