diff options
| author | historia <[not public]> | 2026-06-27 21:25:20 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-27 21:25:20 -0400 |
| commit | 87dacfbb3dd16e7f55a82361eace98f9a39d75c8 (patch) | |
| tree | d548f75a37b5b8e960c5e5d111237e172650bb59 /building_guide/triggers.md | |
| parent | 83f8f5447ec3baf85314ce7343f0e339d28bcc15 (diff) | |
| download | thehouseoficarus-87dacfbb3dd16e7f55a82361eace98f9a39d75c8.tar.gz | |
feat: room-specific objects can be defined inline in room yaml
Diffstat (limited to 'building_guide/triggers.md')
| -rw-r--r-- | building_guide/triggers.md | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/building_guide/triggers.md b/building_guide/triggers.md index fa97e3a..8d6454c 100644 --- a/building_guide/triggers.md +++ b/building_guide/triggers.md @@ -32,13 +32,15 @@ triggers: ``` The sign object itself is unchanged — its `on_look` simply sets the flag. The trigger -and the object are cleanly separated: +and the object are cleanly separated. The sign is an inline object in room `1001`: ```yaml -# data/objects/unique/1001_sign.yaml -on_look: - set_player_flags: - 1001_look_sign: true +# data/rooms/intro/1001.yaml +objects: + - name: sign + on_look: + set_player_flags: + 1001_look_sign: true ``` This separation is deliberate. The object sets flags. The trigger watches flags. |
