game: Westmark als erste generische Karte — Gebiets-Loader, Trigger, Begegnungen aus Daten

This commit is contained in:
torsten 2026-11-17 16:35:30 +01:00
parent 42f581172a
commit 2c14fbf89c
18 changed files with 1227 additions and 30 deletions

View file

@ -508,6 +508,9 @@
"maps": {
"glob": "maps/*.json",
"felder": {
"id": {
"typ": "string"
},
"name": {
"typ": "string",
"pflicht": true
@ -537,6 +540,44 @@
"laenge": "height",
"zeilen": "width"
},
"blocked": {
"typ": "list",
"laenge": "height",
"zeilen": "width"
},
"spawn": {
"typ": "dict"
},
"encounters": {
"typ": "dict"
},
"triggers": {
"typ": "list",
"element": {
"id": {
"typ": "string",
"pflicht": true
},
"x": {
"typ": "int",
"pflicht": true
},
"y": {
"typ": "int",
"pflicht": true
},
"encounter": {
"typ": "string",
"verweis": "encounters"
},
"once": {
"typ": "bool"
},
"text": {
"typ": "string"
}
}
},
"objects": {
"typ": "list",
"element": {
@ -551,6 +592,9 @@
"y": {
"typ": "int",
"pflicht": true
},
"blocked": {
"typ": "bool"
}
}
},

View file

@ -0,0 +1,158 @@
{
"schema": 1,
"entries": {
"westmark": {
"id": "westmark",
"name": "Westmark",
"kind": "overland",
"width": 20,
"height": 10,
"legend": {
".": "battle_erde_96px_1",
",": "tile_grasland_96px",
"w": "tile_wald_96px",
"h": "tile_huegel_96px",
"s": "tile_steppe_96px",
"g": "tile_gebirge_96px",
"p": "battle_stein_96px_1"
},
"tiles": [
"gwwwwwwggggggggggggg",
"gwwwwwww,,,,hhphhhhg",
"gwwwww,,,,,,hh.hhh,g",
"gwwww,,,,,,,hh.hhh,g",
"g,,..............,,g",
"gss,,,,,,.,,,,,,,,,g",
"gssss.....,,,,,,,,,g",
"gssss,,,,.,,,,,pp,,g",
"ggsss,,,ppp,,,,pp,,g",
"gsss,,,,ppp,,,,,,,,g"
],
"blocked": [
"#......#############",
"#..................#",
"#..................#",
"#..................#",
"#..................#",
"#..................#",
"#..................#",
"#..................#",
"##.................#",
"#..................#"
],
"spawn": {
"x": 9,
"y": 8
},
"objects": [
{
"id": "objekt_tor_96px",
"x": 9,
"y": 9,
"blocked": false
},
{
"id": "objekt_fackel_96px",
"x": 8,
"y": 9,
"blocked": false
},
{
"id": "objekt_fackel_96px",
"x": 10,
"y": 9,
"blocked": false
},
{
"id": "objekt_grabstein_96px",
"x": 14,
"y": 1,
"blocked": false
},
{
"id": "objekt_wagen_96px",
"x": 2,
"y": 7
},
{
"id": "objekt_fass_96px",
"x": 2,
"y": 8
},
{
"id": "objekt_kiste_96px",
"x": 3,
"y": 8
},
{
"id": "objekt_fackel_96px",
"x": 1,
"y": 6,
"blocked": false
},
{
"id": "objekt_geroell_96px",
"x": 15,
"y": 7
},
{
"id": "objekt_grabstein_96px",
"x": 16,
"y": 8,
"blocked": false
},
{
"id": "objekt_fackel_96px",
"x": 16,
"y": 7,
"blocked": false
}
],
"npcs": [],
"exits": [
{
"x": 9,
"y": 9,
"to": "garana"
}
],
"triggers": [
{
"id": "krypta_eingang",
"x": 14,
"y": 1,
"encounter": "krypta",
"once": true,
"text": "Ein Grabstein, halb im Hang versunken. Die Stufen führen hinab."
},
{
"id": "oger_lager",
"x": 4,
"y": 6,
"encounter": "oger_am_wegrand",
"once": true,
"text": "Zerbrochene Wagenräder, ein erloschenes Feuer. Etwas Großes ist hier."
},
{
"id": "kapelle",
"x": 15,
"y": 8,
"once": true,
"text": "Verwitterte Steine, ein umgestürzter Grabstein. Niemand ist hier."
}
],
"encounters": {
"chance": 14,
"tiles": [
"tile_wald_96px",
"tile_huegel_96px"
],
"table": [
"goblins_drei",
"goblins_fuenf",
"orks_und_goblins"
]
}
}
}
}