diff options
Diffstat (limited to 'building_guide/hidden_objects.md')
| -rw-r--r-- | building_guide/hidden_objects.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/building_guide/hidden_objects.md b/building_guide/hidden_objects.md index e79c026..65940d6 100644 --- a/building_guide/hidden_objects.md +++ b/building_guide/hidden_objects.md @@ -2,9 +2,10 @@ Objects with `hidden: true` don't appear in the room's object listing. Players discover them by reading room descriptions or trying commands. The object is still fully interactable — `push gate`, `look gate`, etc. +**The filename is the ID** (`secret_lever.yaml` → `secret_lever`); don't add an `id:` field (see `objects.md`). + ```yaml # data/objects/secret_lever.yaml -id: secret_lever name: stone lever hidden: true description: "A cleverly concealed lever behind a loose stone." @@ -30,7 +31,6 @@ By default an object matches its `name` (word-prefix matching) and the words in its `id`. Add `aliases` to accept extra names: ```yaml -id: 1002_shuttle name: landing craft # matches "landing", "craft", "landing craft" aliases: [shuttle, ship] # also matches "shuttle" and "ship" hidden: true @@ -53,7 +53,6 @@ same shared object can appear only while a player's flags warrant it (e.g. durin an intro) and vanish on return visits. ```yaml -id: 1002_crowd name: crowd of people aliases: [people, crowd, passengers] hidden: true |
