diff options
| author | historia <[not public]> | 2026-07-10 00:43:29 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-10 00:43:29 -0400 |
| commit | 6e7c0b3ec4253bb58a815979b1f4574d08cb1f53 (patch) | |
| tree | dbff1952bdbf14cd58a6128775e263b53fc64ec1 /data/triggers/player_flag | |
| parent | 9836513d287396fabcba85956366e6410d7363ef (diff) | |
| download | thehouseoficarus-6e7c0b3ec4253bb58a815979b1f4574d08cb1f53.tar.gz | |
feat(admin): add triggers to rooms, add global triggers
Diffstat (limited to 'data/triggers/player_flag')
| -rw-r--r-- | data/triggers/player_flag/announce_99.yaml | 6 | ||||
| -rw-r--r-- | data/triggers/player_flag/example_player_welcome.yaml | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/data/triggers/player_flag/announce_99.yaml b/data/triggers/player_flag/announce_99.yaml new file mode 100644 index 0000000..a6f0e9e --- /dev/null +++ b/data/triggers/player_flag/announce_99.yaml @@ -0,0 +1,6 @@ +# Example global trigger: announces when a player reaches level 99 in any skill. +# The game code sets the player flag 'announce_99_skill' to the skill name +# (e.g. "attack", "strength") when a player hits level 99. +on_player_flag: announce_99_skill +steps: + - broadcast_global: "%p has reached level 99 %v!" diff --git a/data/triggers/player_flag/example_player_welcome.yaml b/data/triggers/player_flag/example_player_welcome.yaml new file mode 100644 index 0000000..0ecb02b --- /dev/null +++ b/data/triggers/player_flag/example_player_welcome.yaml @@ -0,0 +1,8 @@ +steps: + - messages: + - You feel a warm welcome, {0B italic}%p{/}. + - wait: 5 + - broadcast: '%p has been welcomed!' + - {} +on_player_flag: example_player_welcome +value: true |
