 |
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Thu Dec 21, 2006 6:53 am
Colouring lines |
ok... I got a completly green mud.. and I want to add some color to it, multiple colours a line maybe, or just certain parts to be colored, but I have no clue how to try this in zmud.
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4734 Location: Pensacola, FL, USA
|
Posted: Thu Dec 21, 2006 7:37 am |
#CW to only collor the pattern
#COLOR the do the whole line
#HELP %colorname/colorword have the names of the various numbers.. or you can call the ansi or hexidecimal number for the color. |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Thu Dec 21, 2006 8:01 am |
["Sakanito" Control Room] this is the room name, what I need to do is use information between the [] and then there are other things like the comms.. [General Communication] Name, "Oi?" where I want to color where is from, who its from and what its saying all differently
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4734 Location: Pensacola, FL, USA
|
Posted: Thu Dec 21, 2006 8:21 am |
i tend to use this for speech
#TR {, "*"} {#CW aqua}
as for what looks to be room names...
#TR {~[*~]} {#CW white}
names i normally color on an individual basis, or by guild (if its a guild mud), in the latter all the names go into an array @guildname
#TR {{@guildname}} {#CW blue}
and so on and so forth, take a look at the wildcards help file for help on how to make sure the pattern matches what you want |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Thu Dec 21, 2006 8:39 am |
so I cant color a line to be like
[Commtype (colorone)] Name (colortwo) says, "Text(colorthree)"
? |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4734 Location: Pensacola, FL, USA
|
Posted: Thu Dec 21, 2006 8:59 am |
you can do that.. in fact all three of my triggers would word in concert like that, just change
#TR {~[*~]} {#CW white}
to
#TR {~[Commtype~]} {#CW white}
if you want to have one trigger to do it all... you would need to look into more complex scripting commands like #PCOL, or using #SUB with mxp <color> tags. |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Fri Dec 22, 2006 8:13 am |
A voice comes over the speaker and says, "(*)" I use this as a trigger patter for a #PCOL and i made one that uses (*) says, "(*)" and it seems to trigger this one before, the orginal one I made. How can I change this?
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Dec 22, 2006 5:33 pm |
What's the second one supposed to match? If it's just (word) says, "(more words)", then you use %w instead of *:
#trigger {^(%w) says, "(*)"} {}
If speakers have the ability to have names that use symbols (hyphen, tilde, apostrophe, etc), then use %x instead. If it's more than one word, you're kind of screwed unless it's a fixed number and everyone has them. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Fri Dec 22, 2006 9:25 pm |
the problem is that says have to match on Firstname and Last name so would that just be (%w) (%w) says, and so on?
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Dec 22, 2006 10:04 pm |
yep. For further security, you may want to put a ^ in front so that CMud only matches at the beginning of the line. That will prevent the (%w) (%w) from matching on the wrong lines (ie, [a voice comes over the] speaker and says, "stuff happened, remain calm").
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
|
|