Auto Alias Quote Colorer(mIRC) 1.8.0

How to get on and use IRC Darkmyst.net and our DoD Discord server.
Death
Posts: 101
Joined: Fri Sep 15, 2023 10:35 pm

Auto Alias Quote Colorer(mIRC) 1.8.0

Post by Death »
This will allow you to use aliases easier, which the RPG relies on often so that text is colored and distinctive and character names are always seen, whether someone is using the nick or not. This is especially useful if you have multiple characters, whether in our RPGs or elsewhere. This was created by Daedalus.

Installation
Put the file aaqc.mrc in this zip into your scripts folder and then either go to your script editor in mirc and go to remotes, then File > Load > Auto_Quote_Colorer.mrc, or open the script and copy the contents, pasting them into your remotes. It is recommended to put this script in its own file, for separation of concerns, and easier debugging.

Usage
Go to the Aliases tab and alter your aliases as such:

How they look before the change(or similar):

/aliasname /say <characterName> $1-

Example:

/ch /say <~Chris> $1-

What they are changed to:

/aliasname /say $chrcol(<charactername>,actionColorNumber,SpeakingColorNumber,$1-)

If you want either of the two colors to not be colors/colorless, then simply replace the number with the control+k symbol.

/ch /say $chrcol(<~Chris>,10,14,$1-)

Advanced Usage
Due to how mirc handles identifiers, a slight work-around must be made to use colored backgrounds for the alias:

/ch /say $chrcol(<~Chris Wales>,$+(10,$chr(44),7),$+(5,$chr(44),4),$1-)

or

/ch /say $chrcol(<~Chris Wales>,10 $+ $chr(44) $+ 7,5 $+ $chr(44) $+ 4,$1-)

Parameters
/A /say $chrcol(B,C,D,E{text}F,$1-)

A = Command to use
B = Character name
C = Preferred action color number (no control+k symbol unless colorless)
D = Preferred Quotation color number (no control+k symbol unless colorless)
E = (optional) Opening marker, such as ".oO("
F = (optional) Closing marker, such as ")"
The E/F parameter may be repeated as necessary to add additional markers, just as long as $1-(or similar) is the last parameter in the list.

Color(with the control+k symbol intact) E, F, and {text} to match color scheme desired

Example:

/ch /say $chrcol(<~Some Name>,10,14,.oO({text}),$1-)

The additional snippets may contain normally color-coded text, as long as {text} is present between the start and end bits. Each additional snippet is separated by a comma. Example:

/ch /say $chrcol(<~Some Name>,10,14,.oO({text}),~{text}~,$1-)

The {text} portion is a marker to indicate where to split; do not actually change the '{text}' bit in the {text} snippet.

Note: If either of the color numbers is a single digit, you may pad it, by adding a zero in front of it. If it were the color of 3, it would become 03. If it were 5, it would become 05, and so on. This isn't required, but it is recommended.

Note, only one version of the script can be active at a time; if upgrading, replace your current version with the new one.
Attachments
daedalus11069-auto-alias-quote-colorer.zip
(4.74 KiB) Downloaded 80 times