Armageddon General Discussion Board

General => Code Discussion => Topic started by: anvilsmith on April 05, 2020, 02:49:55 PM

Title: Give the two hands in the equipment list a special color
Post by: anvilsmith on April 05, 2020, 02:49:55 PM
Right now, all equipment entries shown by the eq and look commands, including <primary hand>,
<secondary hand> and <both hands>, are white. If these entries were shown in, say, yellow, then every time someone would type eq or look [someone], they could quickly see whether they or the other person carry items (such as weapons) in their hands. This is useful when:
* you forget to equip your weapons before fighting, or tools before crafting
* you forget to unequip your weapons after fighting, or tools after crafting
* you want to check whether you've put away your sparring weapons
* someone comes in deliberately wielding weapons, and you miss that

I'm proposing that the text looks like this:
<across back>            a small jozhal-hide backpack
<around neck>            a dusky chitin neckguard
<on arms>                a pair of one-striped studded sleeves
<on hands>               a pair of chitin-plated leather gloves
<primary hand>           a jagged-edged bone longknife
<secondary hand>         an obsidian dagger
<on legs>                a set of scrab-shell greaves
<on feet>                a pair of dark-leather boots

This shouldn't be hard to implement.
Thoughts? Ideas?
Title: Re: Give the two hands in the equipment list a special color
Post by: mansa on April 05, 2020, 04:13:54 PM
I like it.
Title: Re: Give the two hands in the equipment list a special color
Post by: Jarvis on April 05, 2020, 04:22:35 PM
Yes please
Title: Re: Give the two hands in the equipment list a special color
Post by: Brokkr on April 05, 2020, 04:46:58 PM
There are currently alternatives until/if such a change occurs.

prompt %A will give you constant feedback via your prompt if you are armed, no need to check equipment.

assess -v [opponenet] will tell you if they are armed, as the last line of the output.
Title: Re: Give the two hands in the equipment list a special color
Post by: 9001 on April 05, 2020, 06:04:08 PM
Getting this effect with Mudlet would be fairly simple if you make a trigger that catches <primary hand> and <secondary hand>, and then sets the foreground color. I don't use Mushclient, but I'd guess it and other clients would be able to do the same thing. Here's how the trigger would look in Mudlet.

(https://i.imgur.com/AgPtrVJ.png)
Title: Re: Give the two hands in the equipment list a special color
Post by: cnemus on April 05, 2020, 06:39:12 PM
Ctrl+Alt+h will bring up highlight in Mushclient. You can select any word or phrase, and what color you want it to appear as.
Title: Re: Give the two hands in the equipment list a special color
Post by: Lotion on April 06, 2020, 11:30:39 PM
Quote from: cnemus on April 05, 2020, 06:39:12 PM
Ctrl+Alt+h will bring up highlight in Mushclient. You can select any word or phrase, and what color you want it to appear as.
OOh thanks for this. Previouly I was using triggers to highlight entire lines. Being able to highlight specific words is a major boon.
Title: Re: Give the two hands in the equipment list a special color
Post by: Kyviantre on April 07, 2020, 12:35:58 AM
Quote from: cnemus on April 05, 2020, 06:39:12 PM
Ctrl+Alt+h will bring up highlight in Mushclient. You can select any word or phrase, and what color you want it to appear as.
That is super helpful!  Thank you Cnemus!
Title: Re: Give the two hands in the equipment list a special color
Post by: Delirium on April 07, 2020, 03:13:18 PM
I've had trouble getting MUSHclient's highlight code to work while including the < > symbols, so my trigger looks like this, which colors the whole line:

^\<(primary|secondary|both) (hand|hands)\>(.*?)$

Make sure "enabled" and "regular expression" are checked. Then change color and style to whatever you like.