diff options
Diffstat (limited to 'worldbuilding_guide/doors.md')
| -rw-r--r-- | worldbuilding_guide/doors.md | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/worldbuilding_guide/doors.md b/worldbuilding_guide/doors.md index afe4556..1e9fb7a 100644 --- a/worldbuilding_guide/doors.md +++ b/worldbuilding_guide/doors.md @@ -8,20 +8,15 @@ A button in room 3 opens a door in room 7. Anyone can press it. Once pressed, th ```yaml id: door_button name: stone button -behavior: button_toggle hidden: true -``` - -**Button behavior** (`data/behaviors/button_toggle.yaml`): -```yaml -id: button_toggle -type: toggle -message: "You press the stone button. You hear grinding stone in the distance." -set_flags: - secret_door_open: true # WORLD flag -check: - flag: secret_door_open - not: true # only works when door is closed +use_interactions: + - condition: + flag: secret_door_open + not: true + message: "You press the stone button. You hear grinding stone in the distance." + action: + set_flags: + secret_door_open: true ``` **Room 3** — contains the button: |
