|
slash_2_2000 Beginner
Joined: 27 Jul 2005 Posts: 20
|
Posted: Fri Jul 29, 2005 12:30 pm
Colouring variables |
Okay, so I have a system set up in my MUD where I target a creature, then I automatically hit at that creature.
This is done by sending the name of the creature into a variable, @target. So, I decided to make life easier for myself by simply colouring that variable red using a #CW trigger, so I'd be able to identify what it was that I was targetting.
Except, this has caused a problem. Say I target... 'rat', this makes EVERYTHING with the three letters 'rat' in it appear red in that section. Like... irate, Fratley, ratchet. VERY irritating.
Of course, the same thing happens no matter what I target, as long as the letter appear in the order... Is there any way to tell zMud to ONLY colour the target rather than EVERYTHING with those letters in it? Like... only colour the full word instead of partial words etc? |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Fri Jul 29, 2005 2:00 pm |
i think %qrat%q does what ya want.
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Fri Jul 29, 2005 9:44 pm |
or \b instead of %q if using a regex
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
slash_2_2000 Beginner
Joined: 27 Jul 2005 Posts: 20
|
Posted: Sat Jul 30, 2005 9:20 am |
\b worked, thanks!
|
|
|
|
|
|