From 2725e2927a1595c7b100d942d1f14146252adeb7 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 04:46:40 -0400 Subject: feat: who, global chat, removed redundant YAML IDs --- building_guide/quests.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'building_guide/quests.md') diff --git a/building_guide/quests.md b/building_guide/quests.md index b5f18fa..a764f8e 100644 --- a/building_guide/quests.md +++ b/building_guide/quests.md @@ -1,8 +1,9 @@ ## Complete Quest Example: "Clear the Rats" +> **Filenames are IDs.** Every mob/object/room file below has no `id:` field — its filename is its ID (e.g. `quest_giver.yaml` → `quest_giver`). Nested `- id:` under a room's `objects:`/`mobs:` are references and stay. + ### 1. Quest giver mob (`data/mobs/quest_giver.yaml`) ```yaml -id: "quest_giver" name: "Elder" unique: true protected: true @@ -57,7 +58,6 @@ Talk configs are inline on the mob under the `talk:` key. No separate behavior f ### 2. Rat mobs (`data/mobs/rat.yaml`) ```yaml -id: "rat" name: "giant rat" attack: 2 strength: 1 @@ -72,7 +72,6 @@ drops: ### 3. Cellar room (`data/rooms/20.yaml`) ```yaml -id: 20 name: "Cellar" description: "A damp, dark cellar. The floor scuttles with movement." exits: @@ -87,7 +86,6 @@ mobs: ### 4. Room 1 with quest giver (`data/rooms/1.yaml`) ```yaml -id: 1 name: "Town Square" description: "Cobblestone paths lead in all directions. The Elder stands near the fountain." exits: -- cgit v1.2.3