
If you want any help though, I'll gladly throw in my two or three cents. Especially now that my life is much less chaotic.

{ name: "town"
, level: 0,
, exits: {
"down" : { name: "dlvl 1"
, level: 1,
, exits: {
"down" : ....
"up" : (reference back to town level },
"..." : ...
}
}
}
[
{
"name": "granite wall",
"display": {"ascii": {"symbol": "#", "color": [180, 180, 180]}},
"flags": ["OBSTRUCT"],
"interactions": [
{
"action": "tunnel",
"procs": [{"name": "tunnel", "difficulty": 2}]
}
]
},
{
"name": "door",
"display": {"ascii": {"symbol": "+", "color": [128, 64, 0]}},
"flags": ["OBSTRUCT"],
"interactions": [
{
"action": "open",
"procs": [{"name": "print smart message",
"messageString": "<2> opened the door."},
{"name": "replace terrain", "newTerrain": "open door"}]
}
]
},
{
"name": "open door",
"display": {"ascii": {"symbol": "'", "color": [128, 64, 0]}},
"interactions": [
{
"action": "close",
"procs": [{"name": "print smart message",
"messageString": "<2> closed the door."},
{"name": "replace terrain", "newTerrain": "door"}]
}
]
},
{
"name": "decorative floor tile",
"display": {"ascii": {"symbol": ".", "color": [128, 128, 255]}}
}
]
Leave a comment: