From ab2597b22ccdb71116992aec78080d9858358d04 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 7 Jul 2026 16:24:27 -0400 Subject: rename flags to global_flags (differentiate from player_flags) --- data/help/inspect.yaml | 2 +- data/help/setflag.yaml | 7 ------- data/help/setglobalflag.yaml | 7 +++++++ data/mobs/examples/guard.yaml | 2 +- data/objects/iron_gate.yaml | 4 ++-- data/rooms/example_unused/agility2/99999202.yaml | 2 +- data/rooms/intro/1001.yaml | 24 ++++++++++++------------ 7 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 data/help/setflag.yaml create mode 100644 data/help/setglobalflag.yaml (limited to 'data') diff --git a/data/help/inspect.yaml b/data/help/inspect.yaml index 14dfe45..c52f69f 100644 --- a/data/help/inspect.yaml +++ b/data/help/inspect.yaml @@ -2,5 +2,5 @@ name: inspect description: |- Admin-only. Dumps detailed diagnostic information about your current room, including exits, objects, mobs, item spawns, on-enter steps, - triggers, world flags, your player flags, and connected players. + triggers, global flags, your player flags, and connected players. Usage: inspect diff --git a/data/help/setflag.yaml b/data/help/setflag.yaml deleted file mode 100644 index 7a164d6..0000000 --- a/data/help/setflag.yaml +++ /dev/null @@ -1,7 +0,0 @@ -name: setflag -description: |- - Admin-only. Sets a world flag. World flags are shared by all players. - If no value is given, sets the flag to true. - Values can be: true, false, an integer, or a string. - Usage: setflag [value] - Example: setflag gate_open true diff --git a/data/help/setglobalflag.yaml b/data/help/setglobalflag.yaml new file mode 100644 index 0000000..3f6fc2e --- /dev/null +++ b/data/help/setglobalflag.yaml @@ -0,0 +1,7 @@ +name: setglobalflag +description: |- + Admin-only. Sets a global flag. Global flags are shared by all players. + If no value is given, sets the flag to true. + Values can be: true, false, an integer, or a string. + Usage: setglobalflag [value] + Example: setglobalflag gate_open true diff --git a/data/mobs/examples/guard.yaml b/data/mobs/examples/guard.yaml index bd20f24..2eee6e0 100644 --- a/data/mobs/examples/guard.yaml +++ b/data/mobs/examples/guard.yaml @@ -24,7 +24,7 @@ talk: - text: '"Goodbye."' has_pass: action: - set_flags: + set_global_flags: gate_open: true messages: - '"Let me see that..." He examines your pass and nods. "Alright, I''ll open the gate for you."' diff --git a/data/objects/iron_gate.yaml b/data/objects/iron_gate.yaml index ee60d36..44599ae 100644 --- a/data/objects/iron_gate.yaml +++ b/data/objects/iron_gate.yaml @@ -4,10 +4,10 @@ hidden: true name: iron gate use_interactions: - condition: - flag: gate_open + global_flag: gate_open not: true value: true message: You push the heavy iron gate open. action: - set_flags: + set_global_flags: gate_open: true diff --git a/data/rooms/example_unused/agility2/99999202.yaml b/data/rooms/example_unused/agility2/99999202.yaml index c4e068a..346a235 100644 --- a/data/rooms/example_unused/agility2/99999202.yaml +++ b/data/rooms/example_unused/agility2/99999202.yaml @@ -11,7 +11,7 @@ on_enter: - message: Type 'balance' to cross the pipe. condition: null delay: 0 - set_flags: {} + set_global_flags: {} set_player_flags: {} broadcast: "" broadcast_global: "" diff --git a/data/rooms/intro/1001.yaml b/data/rooms/intro/1001.yaml index 1ea5301..93bf7ac 100644 --- a/data/rooms/intro/1001.yaml +++ b/data/rooms/intro/1001.yaml @@ -11,7 +11,7 @@ exits: condition: all_of: [] any_of: [] - flag: "" + global_flag: "" has_item: "" min_credits: 0 not: false @@ -36,7 +36,7 @@ objects: give_item: "" heal: 0 reputation_cost: 0 - set_flags: {} + set_global_flags: {} set_player_flags: 1001_look_sign: true take_item: "" @@ -66,7 +66,7 @@ on_enter: condition: all_of: [] any_of: [] - flag: "" + global_flag: "" has_item: "" min_credits: 0 not: true @@ -77,7 +77,7 @@ on_enter: give_item: "" heal: 0 message: '{0B bold}Welcome to The House of Icarus{/}' - set_flags: {} + set_global_flags: {} set_player_flags: {} spawn_mob: null take_item: "" @@ -87,7 +87,7 @@ on_enter: condition: all_of: [] any_of: [] - flag: "" + global_flag: "" has_item: "" min_credits: 0 not: true @@ -98,7 +98,7 @@ on_enter: give_item: "" heal: 0 message: '{0B}Type{/} {0A}look sign{/} {0B}or{/} {0A}talk attendant{/} {0B}to get started{/}' - set_flags: {} + set_global_flags: {} set_player_flags: 1001_welcome: true spawn_mob: null @@ -109,7 +109,7 @@ on_enter: condition: all_of: [] any_of: [] - flag: "" + global_flag: "" has_item: "" min_credits: 0 not: true @@ -120,14 +120,14 @@ on_enter: give_item: "" heal: 0 message: '{0B}Type{/} {0A}help newplayer{/} {0B}for the new player''s guide. That''s it. Explore and have fun.{/}' - set_flags: {} + set_global_flags: {} set_player_flags: {} spawn_mob: null take_item: "" teleport: 0 triggers: - id: "" - on_flag: "" + on_global_flag: "" on_player_flag: 1001_look_sign room: 0 steps: @@ -138,7 +138,7 @@ triggers: give_item: "" heal: 0 message: The cabin shakes as the small craft touches down - set_flags: {} + set_global_flags: {} set_player_flags: {} spawn_mob: null take_item: "" @@ -150,7 +150,7 @@ triggers: give_item: "" heal: 0 message: The pistons hiss as the rear staircase opens - set_flags: {} + set_global_flags: {} set_player_flags: {} spawn_mob: null take_item: "" @@ -162,7 +162,7 @@ triggers: give_item: "" heal: 0 message: "" - set_flags: {} + set_global_flags: {} set_player_flags: 1001_touchdown: true spawn_mob: null -- cgit v1.2.3