From a2cbc04f86508708daa09affa5e9d73cc689b2ba Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 3 Aug 2026 17:15:50 -0400 Subject: feat: new color 'command', color tag system implemented --- data/help/color.yaml | 8 ++++++++ data/mobs/flight_attendant.yaml | 2 +- data/rooms/intro/1001.yaml | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'data') diff --git a/data/help/color.yaml b/data/help/color.yaml index b07ab17..82e8fed 100644 --- a/data/help/color.yaml +++ b/data/help/color.yaml @@ -48,6 +48,12 @@ description: | {B6 bold}mysterious vase{/} {g:C4,52}gradient text{/} + Color names can be used as inline tags too, so tagged text tracks the + current value of a color target (including any account override): + {command}look sign{/} + {mob}a feral wolf{/} + {item}credits{/} + Color targets: room_name Room name headers room_number Room number display (#id) @@ -69,6 +75,8 @@ description: | error Error messages say Player chat text dialog NPC conversation text + dialog_options Numbered dialog choices + command Command words shown in menus and help (bet, spin, look, ...) broadcast Room-wide event messages fire Firemaking messages eat_food Eating/healing messages diff --git a/data/mobs/flight_attendant.yaml b/data/mobs/flight_attendant.yaml index a0be1e8..85a7484 100644 --- a/data/mobs/flight_attendant.yaml +++ b/data/mobs/flight_attendant.yaml @@ -10,7 +10,7 @@ talk: sign_reminder: messages: - '"Yeah, just us two! Not a lot of people heading into the belt these days."' - - '"But we''ll be landing shortly! Please be sure {0B bold}look{/} at the information {0B bold}sign{/} so you''ll be all set for your final destination."' + - '"But we''ll be landing shortly! Please be sure {command}look{/} at the information {0B bold}sign{/} so you''ll be all set for your final destination."' start: condition: not: true diff --git a/data/rooms/intro/1001.yaml b/data/rooms/intro/1001.yaml index 5a61bba..3e04381 100644 --- a/data/rooms/intro/1001.yaml +++ b/data/rooms/intro/1001.yaml @@ -28,7 +28,7 @@ mobs: name: Inside Transport Shuttle objects: - description: - - text: "We hope you enjoy your trip on our shuttle! Your pilot is [TYLER].\n\nWhen you arrive at your final destination, please be aware of the following basic commands:\n\n{0B bold}Movement:{/} {0A}north{/}, {0A}south{/}, {0A}east{/}, {0A}west{/}, {0A}up{/}, {0A}down{/}\n{0B bold}Look:{/} {0A}look{/}, {0A}look {/}, and {0A}map{/}\n{0B bold}Items:{/} {0A}inv{/} to see your 28-slot inventory\n {0A}get {/}, {0A}drop {/}, {0A}wear {/}, {0A}remove {/}\n {0A}use on {/}\n {0A}eq{/} for equiped gear\n{0B bold}Comms:{/} {0A}talk {/} for NPC chat\n {0A}say {/} and {0A}global {/} for human chat\n{0B bold}Character:{/} {0A}score{/} and {0A}skills{/} for stats. \n{0B bold}Combat{/} {0A}attack {/}\n{0B bold}Skills{/} Many skills have shortcuts like {0A}mine{/}, {0A}fish{/}, or {0A}chop{/}\n{0B bold}Options{/} {0A}options{/} for a list of account options\n {0A}options {/} to change an option\n\nType {0C bold}what{/} for a list of possible common actions\n\nMake sure to check the {0A}help{/} pages, especially {0A}help newplayer{/}!" + - text: "We hope you enjoy your trip on our shuttle! Your pilot is [TYLER].\n\nWhen you arrive at your final destination, please be aware of the following basic commands:\n\n{0B bold}Movement:{/} {command}north{/}, {command}south{/}, {command}east{/}, {command}west{/}, {command}up{/}, {command}down{/}\n{0B bold}Look:{/} {command}look{/}, {command}look {/}, and {command}map{/}\n{0B bold}Items:{/} {command}inv{/} to see your 28-slot inventory\n {command}get {/}, {command}drop {/}, {command}wear {/}, {command}remove {/}\n {command}use on {/}\n {command}eq{/} for equiped gear\n{0B bold}Comms:{/} {command}talk {/} for NPC chat\n {command}say {/} and {command}global {/} for human chat\n{0B bold}Character:{/} {command}score{/} and {command}skills{/} for stats. \n{0B bold}Combat{/} {command}attack {/}\n{0B bold}Skills{/} Many skills have shortcuts like {command}mine{/}, {command}fish{/}, or {command}chop{/}\n{0B bold}Options{/} {command}options{/} for a list of account options\n {command}options {/} to change an option\n\nType {command}what{/} for a list of possible common actions\n\nMake sure to check the {command}help{/} pages, especially {command}help newplayer{/}!" hidden: true name: framed sign on_look: @@ -126,7 +126,7 @@ on_enter: give_item: "" heal: 0 messages: - - '{0B}Type{/} {0A}look sign{/} {0B}or{/} {0A}talk attendant{/} {0B}to get started{/}' + - '{0B}Type{/} {command}look sign{/} {0B}or{/} {command}talk attendant{/} {0B}to get started{/}' set_global_flags: {} set_player_flags: 1001_welcome: true @@ -149,7 +149,7 @@ on_enter: give_item: "" heal: 0 messages: - - '{0B}Type{/} {0A}help newplayer{/} {0B}for the new player''s guide. That''s it. Explore and have fun.{/}' + - '{0B}Type{/} {command}help newplayer{/} {0B}for the new player''s guide. That''s it. Explore and have fun.{/}' set_global_flags: {} set_player_flags: {} spawn_mob: null -- cgit v1.2.3