|
radboi22 Novice
Joined: 19 Jan 2008 Posts: 30
|
Posted: 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 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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. |
|
|
|
radboi22 Novice
Joined: 19 Jan 2008 Posts: 30
|
Posted: Fri Mar 20, 2009 2:35 am |
awesome thanks!
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|