CMUD Window issue

Need some help with your MUD client? Forgot your password? Get help here.
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
Dread
Great Adventurer
Posts: 188
Joined: 12 Mar 2010 23:53

CMUD Window issue

Post by Dread » 22 Feb 2015 07:50

With the help of people here, I have used the gmcp trigger to echo comm text to another window named Converse. Can someone explain to me how to change the styling for the window? I cannot seem to change the font color, size, anything.


Thanks.

User avatar
Amorana
Rising Hero
Posts: 304
Joined: 04 Nov 2013 20:26

Re: CMUD Window issue

Post by Amorana » 22 Feb 2015 15:09

In the same trigger that you cap it in, you should include whatever you would like to do to the text. I'm not familiar with changing size of text, but you can, for example, change the color using #color.

So if your trigger says:
#capture 1 Converse

Just make it (for example):
#color blue
#capture 1 Converse
Zhar wrote: "Man, this guild I'm in is so god damn powerful! Please nerf or I'll have to leave it because it's no fun any more..."

Dread
Great Adventurer
Posts: 188
Joined: 12 Mar 2010 23:53

Re: CMUD Window issue

Post by Dread » 22 Feb 2015 18:29

This is the script text of what I am using:

#Class variables
DisplaySayInAnotherWindow = %gmcp.Comm.Channel.Message
#Class 0
Converse:#print {%ansi(bold,green)@DisplaySayInAnotherWindow%ansi(reset)}


Do you know what the possible options are in the parentheses containing (bold,green)? If I add another comma and put in a number, I get italicized and highlighted text.

Einar
Apprentice
Posts: 41
Joined: 29 Mar 2012 13:44

Re: CMUD Window issue

Post by Einar » 22 Feb 2015 21:51

ansi

Syntax: %ansi(fore,back)
Related: %color, #COLOR, #PCOL, #CW

return the ANSI codes for the given colors. Can use a numeric value such as generated by the %color function.

You can also modify the fore and back attributes with the strings:
high highlight (select highlighted color)
bold bold text
rev reverse video
blink blinking text
under underlined text

Recognized color names:
black, blue, green, cyan, red, magenta, brown, gray, yellow, white

The words "default" and "reset" will reset the colour to its default value, as in the code ESC[0m.

Examples

#SHOW %ansi(high,red)Hello %ansi(blink,blue,white)World

displays "Hello" in bright red and "World" in blinking blue letters on a white background

#show %ansi(yellow)Hello %ansi(reset)World

displayes "Hello" in yellow and "World" in the default colour.

I hope that will help.

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/