diff options
| author | historia <[not public]> | 2026-07-09 16:09:35 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-09 16:09:35 -0400 |
| commit | b8c90886ef1f3afb8d908aac89028bd177836cae (patch) | |
| tree | 7e566a7e308e7531bbb7d6a3a39239e789f69a3c /building_guide/conditions.md | |
| parent | c705ae942573984784ef501bf8198f61f5206ddd (diff) | |
| download | thehouseoficarus-b8c90886ef1f3afb8d908aac89028bd177836cae.tar.gz | |
feat(admin): multi-select with shift+drag for common bulk operations
Diffstat (limited to 'building_guide/conditions.md')
| -rw-r--r-- | building_guide/conditions.md | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/building_guide/conditions.md b/building_guide/conditions.md deleted file mode 100644 index 2fb3d7a..0000000 --- a/building_guide/conditions.md +++ /dev/null @@ -1,83 +0,0 @@ -## Conditions Reference - -Conditions are used in talk option guards, talk node conditions, exit gates, -on-enter scripts, on_use / on_look / on_kill interactions, -exit on_traverse interactions, room descriptions, object descriptions, and -trigger value matching. - -### Simple conditions - -A bare `global_flag:` / `player_flag:` check passes when the flag is **set to a truthy -value** (`true`, a non-zero number, a non-empty string). Add `value:` only when -you need to match a specific value (e.g. a numeric quest stage). `not: true` -inverts any check. - -```yaml -# Check a global flag is set -condition: - flag: gate_open - -# Check a global flag is NOT set -condition: - flag: gate_open - not: true - -# Check a player flag is set -condition: - player_flag: finished_tutorial - -# Check a player flag is NOT set (e.g. only on the first visit) -condition: - player_flag: finished_tutorial - not: true - -# Match a specific (non-boolean) value -condition: - player_flag: quest_stage - value: 3 - -# Check if player has an item -condition: - has_item: bronze_key - -# Check if player does NOT have an item -condition: - has_item: bronze_key - not: true - -# Check if player has enough credits -condition: - min_credits: 50 -``` - -### Compound conditions - -All must pass: -```yaml -condition: - all_of: - - flag: gate_open - - has_item: pass_stub -``` - -Any one must pass: -```yaml -condition: - any_of: - - has_item: bronze_key - - has_item: iron_key - - player_flag: master_of_unlocking -``` - -Nested compounds: -```yaml -condition: - all_of: - - player_flag: quest_started - - any_of: - - has_item: wolf_pelt - - has_item: bear_pelt -``` - ---- - |
