From 0e60567a7a0addb9421769ee7be7853bfa8788cb Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 19 Sep 2026 03:15:59 -0400 Subject: refactor: simplifcation, change how rooms are stored in player yaml, remove legacy code --- building_guide/behaviors.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'building_guide/behaviors.md') diff --git a/building_guide/behaviors.md b/building_guide/behaviors.md index 3063677..26c12ec 100644 --- a/building_guide/behaviors.md +++ b/building_guide/behaviors.md @@ -479,10 +479,10 @@ talk: ### Interaction Reference The unified **Trigger** shape is the shared wrapper used by every event block: `on_use`, -`on_look`, `on_kill`, `on_traverse`, `on_enter`, `on_exit`, `on_flag_change`, -`on_global_flag_change`, and global trigger files (`data/triggers/*.yaml`). When a block's -list of Triggers is evaluated, the first whose filters pass fires and its `steps` run as a -scripted sequence (first-match-wins). +`on_look`, `on_kill`, `on_traverse`, `on_enter`, `on_exit`, and flag-trigger files under +`data/triggers/player_flag/` or `data/triggers/global_flag/` (`on_player_flag` / +`on_global_flag`). When a block's list of Triggers is evaluated, the first whose filters +pass fires and its `steps` run as a scripted sequence (first-match-wins). | Field | Scope | Description | |-------|-------|-------------| @@ -490,8 +490,8 @@ scripted sequence (first-match-wins). | `item_id` | on_use/on_look/on_kill | `on_use`: required item (`use on `); empty = bare `use `. `on_look`: only fires if carrying this item. `on_kill`: only fires if wielding this weapon. | | `condition` | all | Optional Trigger-level gate (Condition struct). | | `steps` | all | Ordered list of Step entries run as a scripted sequence. | -| `on_player_flag` | on_flag_change only | Player flag this trigger watches. | -| `on_global_flag` | on_global_flag_change only | Global flag this trigger watches. | +| `on_player_flag` | flag-trigger files only | Player flag this trigger watches. | +| `on_global_flag` | flag-trigger files only | Global flag this trigger watches. | | `value` | flag triggers | Optional value-match filter. | Talk node/option actions still use the NodeAction shape (`action:` with the effect fields -- cgit v1.2.3