[TF] matching different login specs
Brought to you by:
kenkeys
|
From: renniefan at yahoo.c. (G. Morse) - 2003-05-04 22:40:20
|
I code staff on some of the various games I play on, so, I quite often am lurking DARK. Even so, there are certain people that I always want to be able to communicate with. To those people, I send out a greeting message. I know it's annoying to many to automate greetings, but, these are acceptable to all parties ahead of time. :) I've written triggers to watch for these people when they connect. I get different messages as to whether they're connecting, depending on where I am, where they are, and what game I'm playing. Here are the three varieties: [Monitor] Izzy has connected. <Watch> Izzy has connected. Izzy has connected. I need to be able to match on all three, but, it is possible that I'm in the same location, and will get two of the three (the last one, and one of the other two). That's because the last is a general game connect message for anyone in the same room as you. I only want to match to the generic "Izzy has connected." if one of the previous two don't match AND Izzy has connected :). It might look like this: <Watch> Izzy has connected. Izzy has connected. when Izzy connects. I don't want to send out two greeting messages, which is what my code is doing: /def -w -F -t'*Izzy has connected.' izzy_con = \ /send -w p izzy=[name(me)] is your friendly neighborhood Code Staff -- online and ready to serve you. I know why, it's because it's matching anything before "Izzy connects.", including nothing, which means if there's two connect messages it matches twice. I'd like to do this in one macro, as I already have to define multiple versions of it for different login names I'm watching for. Whatever help folks can provide would be appreciated. Gwen __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |