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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
radboi22
Novice


Joined: 19 Jan 2008
Posts: 30

PostPosted: Fri Mar 20, 2009 1:11 am   

Using Colors to help with Parsing?
 
If I want a trigger to trigger off of a certain color from the MUD, how would I do that? Can someone give me an example?
IE: The room name is always the same unique color, I want to use that color to parse the Room name.

THANKS ALOT =D
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Mar 20, 2009 2:33 am   
 
In the session window, highlight the text from the mud that you want to trigger on.
Type ctrl-c to copy the text.
Click on Settings to open the package editor.
In the package editor, click New|New Trigger.
In the check boxes at the bottom of the window, checkmark ANSI Trigger.
Click in the Pattern box at the top.
Type ctrl-v to paste the text.

The pasted text should include the ansi codes if the ANSI Trigger is marked when you paste.
Reply with quote
radboi22
Novice


Joined: 19 Jan 2008
Posts: 30

PostPosted: Fri Mar 20, 2009 2:35 am   
 
awesome thanks!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Mar 20, 2009 9:55 pm   
 
It sort of depends. There's some difference between a color trigger and an ansi trigger (for #capture purposes?), so you can do it the ansi way like Rahab shows or just check the color box and pick the color using the colorpicker next to the option.
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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