{ "id": "bigroom",
"name": "Big room",
"south": { "node": "1stroom", "distance": 1},
"north": { "node": "bossroom", "distance": 2},
"east": { "node": "rightwing", "distance": 3} ,
"west": { "node": "leftwing", "distance": 3}
},
{ "id": "bossroom", "name": "Boss room", "south": {"node": "bigroom", "distance": 2} }
{ "id": "leftwing", "name": "Left Wing", "east": {"node": "bigroom", "distance": 3} }
{ "id": "rightwing", "name": "Right Wing", "west": { "node": "bigroom", "distance": 3 } }
],
"game": {
"win-condition": {
"source": "finalboss",
"condition": {
"type": "comparison",
"left": "hp",
"right": "0",
"symbol": "<="
}
},
"lose-condition": {
"source": "player",
"condition": {
"type": "comparison",
"left": "hp",
"right": "0",
"symbol": "<="
}
}
},
"rooms": {
"entrance": {
"description": {
"default": "You're at the entrance of the dungeon. There are two lit torches on each wall (one on your right and one on your left). You see only one path: ahead."
},
"items": [
{
"id": "littorch1",
"name": "Lit torch on the right",
"triggers": [
{
"action": "grab", //grab Lit torch on the right
"effect":{
"statusUpdate": "has light",
"target": "game",
}
}
] ,
"destination": "hand"
},
{
"id": "littorch2",
"name": "Lit torch on the left",
"triggers": [
{
"action": "grab", //grab Lit torch on the left
"effect":{
"statusUpdate": "has light",
"target": "game",
}
}
] ,
"destination": "hand"
}
] },
"1stroom": {
"description": {
"default": "You're in a very dark room. There are no windows and no source of light, other than the one at the entrance. You get the feeling you're not alone here.",
"conditionals": {
"has light": "The room you find yourself in appears to be empty, aside from a single chair in the right corner. There appears to be only one way out: deeper into the dungeon."
}
},
"items": [
{
"id": "chair",
"name": "Wooden chair",
"details": "It's a wooden chair, nothing fancy about it. It appears to have been sitting here, untouched, for a while now.",
"subitems": [
{ "id": "woodenleg",
"name": "Wooden leg",
"triggeractions": [
{ "action": "break", "target": "chair"}, //break
{ "action": "throw", "target": "chair"} //throw
],
"destination": "inventory",
"damage": 2
}
] }
] },
"bigroom": {
"description": {
"default": "You've reached the big room. On every wall are torches lighting every corner. The walls are painted white, and the ceiling is tall and filled with painted white stars on a black background. There is a gateway on either side and a big, wooden double door in front of you."









