Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
slash_2_2000
Beginner


Joined: 27 Jul 2005
Posts: 20

PostPosted: 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?
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Fri Jul 29, 2005 2:00 pm   
 
i think %qrat%q does what ya want.
_________________
http://www.Aardwolf.com
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
slash_2_2000
Beginner


Joined: 27 Jul 2005
Posts: 20

PostPosted: Sat Jul 30, 2005 9:20 am   
 
\b worked, thanks!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net