Find RGB color of MUD text

Share your scripts and packages with other Mudlet users.
Post Reply
User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Find RGB color of MUD text

Post 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 3584 times
Attachments
find-color-trigger.xml
(1.28 KiB) Downloaded 662 times

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Find RGB color of MUD text

Post 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

Post Reply