From 87dacfbb3dd16e7f55a82361eace98f9a39d75c8 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 27 Jun 2026 21:25:20 -0400 Subject: feat: room-specific objects can be defined inline in room yaml --- building_guide/triggers.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'building_guide/triggers.md') 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. -- cgit v1.2.3