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


Joined: 22 Jul 2002
Posts: 32
Location: USA

PostPosted: Fri Jul 11, 2003 10:31 am   

i give up
 
i know what i am looking for is in the previous posts somewhere, but i can not remember what post it is in or when it was posted, i have been searching for hours now. all i am looking for is to be able to make a trigger that looks for ansi color 14 only...i do not care what is on the line....just that it be color 14...and it to fire when ever a line is in color 14...someone please help
Reply with quote
moksha
Novice


Joined: 13 Oct 2002
Posts: 37
Location: United Kingdom

PostPosted: Fri Jul 11, 2003 12:00 pm   
 
Blade

Something like this should work.

#TRIGGER {^*$} {#say triggered} "" {notrig|color|line=14}

Moksha
Reply with quote
blade
Novice


Joined: 22 Jul 2002
Posts: 32
Location: USA

PostPosted: Fri Jul 11, 2003 11:54 pm   
 
um will not work for me at all....i messed with all the options, guess i should try looking in the forum again....what i do remember about the post i am looking for used sometype of code in the pattern line and it did not need line color or ansi color options checked
Reply with quote
Coulane
Newbie


Joined: 22 Jun 2003
Posts: 3
Location: Sweden

PostPosted: Sat Jul 12, 2003 12:38 am   
 
maybe the MXP trigger can be of help?
not sure, just a suggestion...
Reply with quote
blade
Novice


Joined: 22 Jul 2002
Posts: 32
Location: USA

PostPosted: Sat Jul 12, 2003 2:30 am   
 
thanks...read the mxp help file ...do not think that is what i am looking for...i will probably just have to set aside a couple of hours and search the forum again. thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jul 12, 2003 2:51 am   
 
If, by "ansi color 14" you mean yellow, which is the color produced by %ansi( 14), then "color|line=14" option should do it.

Just paste this into your command line. You can edit the #MESS portion after you're convinced it's working. It will trigger on any line beginning with yellow. It won't trigger on lines that begin with blue and then have yellow later.
#TR {*} {#MESS This is the color 14 trigger} {} {color|line=14}

NOTE: Yellow is the default color for commands. This trigger will fire whenever you input MUD commands if you are using the default color set and have Echo Commands and/or Echo Scripts selected in Prefs. It could get very annoying.

NOTE: There doesn't seem to be much purpose to merely being informed that a line begins with, or contains, yellow. If you were to share the intended use, the chances are you'd get a much more useful solution.

Note to Moksha: You don't need the anchors, ^ and $, for this trigger. I'm not sure why anyone would bother using any anchor with * as the pattern, but it's particularly puzzling to understand anchoring both ends.
Reply with quote
blade
Novice


Joined: 22 Jul 2002
Posts: 32
Location: USA

PostPosted: Sat Jul 12, 2003 4:10 am   
 
thanks for all the help....for some reason color 14 becomes red when i put your trigger in the command line lightbulb. i think i may have some settings that are wrong somehow...but then i am really confused since zmud displays all the colors that achaea sends to it properly. also config colour for achaea has yellow being #11, and the color i want is blue which is actually 12 for achaea...so it appears i am going to have fun trying to work on this. i will just take the time to search the forum since i know what i am looking for is in there. just will have to take the time. thanks for all the help
Reply with quote
moksha
Novice


Joined: 13 Oct 2002
Posts: 37
Location: United Kingdom

PostPosted: Sat Jul 12, 2003 11:01 am   
 
Lightbulb

Thanks for the tip, I hadn't given it much thought as I anchor all the triggers I make pretty much on autopilot. When I did think about it - I got puzzled too :)

Moksha
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jul 12, 2003 4:02 pm   
 
The linecolor option depends on the numbers used by zMUD, not the ones used by Achaea, and actually it depends on the ANSI sequence zMUD uses for that particular color. In this case it's looking for bright blue, which is zMUD color 9, and has the ANSI sequence ESC[54m, while the color sent by Achaea is ESC[1;34m which also produces bright blue but doesn't match. It looks like you won't be able to match Achaea's bright blue using the linecolor option.

If you are just trying to match the exits line, you're better off with a normal trigger.
#TR {You see* exit* leading} {#MESS 2 That was an exit line -- %trigger}
Reply with quote
blade
Novice


Joined: 22 Jul 2002
Posts: 32
Location: USA

PostPosted: Sat Jul 12, 2003 7:50 pm   
 
Lightbulb....question for you..um how do you find out what ansi sequence that a mud is sending to zmud for the various colors? and in the settings there is a place - i think enter these to override zmuds ansi sequence...how do i get these and pending i do...will it make my linecolor triggers work then ?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Jul 12, 2003 8:55 pm   
 
You could make a new trigger, select the ansi option, cut and paste the mudoutput into the trigger and see the codes.

You could see the nitty gritty stuff with
#DEBUG file1.txt file2.txt
<see the stuff you want>
#DEBUG
then examine those files for the codes sent.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jul 12, 2003 9:46 pm   
 
What are you using this trigger for? I asked before and you didn't answer. Please answer. Color triggers are difficult to get working right and should usually be avoided if there's a way to trigger off the text. WHAT IS THIS TRIGGER FOR?

If it's to detect the exits, I already gave you a trigger which doesn't rely color. Please use it.

I used the select-and-paste method to determine the codes. That is
select the text in the main window
create or edit a trigger in the editor, with Ansi selected in options
paste the pattern using Ctrl-V

I don't know of any way to override what zMUD is looking for in a linecolor trigger. I consider it a waste of time to search for one.

I've done you the courtesy of answering your questions. PLEASE ANSWER MINE.
Reply with quote
blade
Novice


Joined: 22 Jul 2002
Posts: 32
Location: USA

PostPosted: Sun Jul 13, 2003 4:15 am   
 
there is my problem Lightbulb...i can use text to trigger on exits...that is not why i want a trigger that fires on any blue line...what i desire is a trigger that fires on room names...specifically the color of since it would be insane to make a trigger for every room name in my mud...i asked for blue instead of tan...cause i like to work things out on my own, just ask for basics that i need to know...hence my question a trigger that fires on blue and any line that is blue no matter the text. i do not just want it for room names...there are other things i can adapt it too which is what i am seeking....i need the foundation ...which is the trigger that will fire on a specific line color...and i can build from there....apparently that is going to be difficult for me since linecolor option is not working...anyway thanks for all the input sorry i offended you
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jul 13, 2003 5:12 am   
 
Not offended, just frustrated. Sorry. I was asking because I expected the knowledge would make it easier to help you.

Tan is zMUD color 6, and should work with linecolor. It's the bright colors (8-15) that won't. zMUD and Achaea don't use the same numbers though.

If you do need to trigger on bright colors, you can still use ANSI triggers. They are a bit more difficult but the general method is to highlight the text you want to trigger on, then use Ctrl-V to paste that text into the Pattern field in the trigger editor. This will provide the ANSI codes being used, and you can then modify the text to the pattern you need.
Reply with quote
blade
Novice


Joined: 22 Jul 2002
Posts: 32
Location: USA

PostPosted: Sun Jul 13, 2003 5:06 pm   
 
thanks Lightbulb and TonDiening cut and past with ansi option works for me...by the way anyone wondering : %e[1;34m in the pattern line will fire on any blue line in achaea since that was my original question....not sure why it works Lightbulb ...but it works...now to start working on options....*grin*
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