Page 1 of 1

Find RGB color of MUD text

Posted: Tue Feb 23, 2010 2:26 pm
by Vadi
This trigger will help you find the RGB color of a letter/character in MUD text. You can use that to replicate it in an echo with setFgColor or inside cecho, whichever.

How to use:
- import trigger
- change the substring pattern to the character you'd like to find the color of
- hit save, make the character appear again.
screenshot_502.png
screenshot_502.png (138.82 KiB) Viewed 4436 times

Re: Find RGB color of MUD text

Posted: Tue Feb 23, 2010 2:31 pm
by Vadi
Someone asked me to do this so they could create a custom color echo function. Here's a template for it (colors need to be adjusted) - save it to a script, and you'll be able to do echov("Hello!") and etc. in aliases/triggers.
Code: [show] | [select all] lua
function echov (...)
	setFgColor(255,255,255)
	echo("[")
	setFgColor(255,0,255)
	echo("Vadi")
	setFgColor(255,255,255)
	echo("]: " .. ...)
end