|
Belgarad Novice
Joined: 11 Mar 2001 Posts: 37 Location: Canada
|
Posted: Mon Feb 18, 2002 2:36 am
Text Capturing |
I like to capture all the messages from my mud in another window because sometimes the scrolling can get really fast (you know how it is) and you can barely read them before *POOF* they're gone. so i got a simple trigger to capture text like this.
#TRIGGER {You group-say '(*)'} {#CAP Chat}
etc... for all the different types of chatting...
but my problem is that sometimes the chat comes at the end of a prompt like so:
< 540hp 5m 111mv > You gossip, 'testing'
i can get it to only capture if it it starts at the start of a line with the ^ thingy, but is there any way that i could only capture the "You gossip, '(*)'" part?
if you can't just capture that on it's own and you can only capture whole lines together is there a way to Gag the prompt in the chat window only? it's usually just the prompt it goes in front of... any help would be greatly appreciated! |
|
|
|
Ziandrox Newbie
Joined: 08 Feb 2002 Posts: 8
|
Posted: Mon Feb 18, 2002 3:09 am |
If I understand you correctly, you could just remove the ^ from your trigger. It'll capture everything from the You gossip on down to the second ' mark.
|
|
|
|
Belgarad Novice
Joined: 11 Mar 2001 Posts: 37 Location: Canada
|
Posted: Mon Feb 18, 2002 5:48 am |
No, that's not my problem... if i get rid of the ^ i get the prompt a lot of the time, and that's not what i want cuz it just gets in the way. i only want the
"You gossip, '(*)'" part when the whole line is sometimes
"< 125hp 30m 82mv > You gossip, '(*)'"
can anyone help? |
|
|
|
dracx Beginner
Joined: 14 Oct 2000 Posts: 26 Location: USA
|
Posted: Mon Feb 18, 2002 6:52 am |
This is what I would have done a few versions ago, try it and see if it doesn't work for you. (I haven't tried anything like this this go-round)
#TR {(%w) Group-Sa[ys] '(*)'} {#WIN Chat "%1 : %2"}
A trigger like that should get whatever you say, and whatever anyone else in your group says, and stick it in a chat window, which will be created the first time the trigger is fired. The output will be "You : Blah blah blah", unless you have something more intresting to say.
Drac-X
PS, check my syntax on #WIN just in case you don't do it with a string like that. But the general idea should be clear. |
|
|
|
|
|