aboutsummaryrefslogtreecommitdiff
path: root/building_guide/triggers.md
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-27 21:25:20 -0400
committerhistoria <[not public]>2026-06-27 21:25:20 -0400
commit87dacfbb3dd16e7f55a82361eace98f9a39d75c8 (patch)
treed548f75a37b5b8e960c5e5d111237e172650bb59 /building_guide/triggers.md
parent83f8f5447ec3baf85314ce7343f0e339d28bcc15 (diff)
downloadthehouseoficarus-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.md12
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.