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
Enathe
Novice


Joined: 17 Nov 2001
Posts: 34
Location: USA

PostPosted: Fri Apr 08, 2005 3:02 pm   

Trigger from Color
 
Hey all,

Trying to make a trigger based on the color of a word. Output looks like this:

[Left Right]

At different times either the left or the right will be colored red. I am supposed to yank to the one that is NOT red.

Any suggestions would be great.

Thanks

Enathe
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Fri Apr 08, 2005 4:02 pm   
 
You could make this overly complicated if you wanted to but I always did prefer the quick and dirty solutions to these things...

#TRIGGER {^~[%e[1;31mLeft%e[0m} {#SEND {right}}
#TRIGGER {^%e[1;31mRight%e[0m~]$} {#SEND {left}}

After you create these two make sure the ANSI color trigger and Case Sensitive options are enabled...
Reply with quote
Enathe
Novice


Joined: 17 Nov 2001
Posts: 34
Location: USA

PostPosted: Fri Apr 08, 2005 4:41 pm   
 
The left side works fantastic, but the right doesn't work at all.

I tried editing a little, but nothing I tried worked.

Any suggestions?
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Fri Apr 08, 2005 4:46 pm   
 
Ahh crud, sorry about that... I left in the caret (^) for the right side...
Remove it and it should start working

Embarassed
Reply with quote
Enathe
Novice


Joined: 17 Nov 2001
Posts: 34
Location: USA

PostPosted: Fri Apr 08, 2005 4:51 pm   
 
You are a magician of script my friend.

Thanks for the assistance!
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