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


Joined: 21 Jun 2005
Posts: 38

PostPosted: Tue Nov 15, 2005 9:34 pm   

Problem with my Channel captures
 
Code:
#TRIGGER {^~((%w)~):(*)} {#CAP Channels; #GAG}

Ok, this is my capture trigger, very basic, it just captures everything from the various channels.


Quote:
(Lorestudents): You say, "Greetings."
(Lorekeepers): Jayvan says, "Greetings, Keepers."
(Kinsarmar): Jayvan says, "Greetings, City."
(Kinsarmar): Hypon says, "Greetings."
(Market): Jayvan says, "Lorekeeper Smith for hire!"


This is the results from the window. However, I've put tags around one of the names, as in my window that name comes out black, and is only seen when highlighted.
Now, I have another trigger that colours guildmates names in blue, so that I don't miss them in a packed room, that's one of those names so I presume that this has to do with my other trigger. It colours them powderblue, not black though. I've tried including the colour trigger in the capture windows settings but that doesn't work.
I don't even see how they're related, so I don't know where to start fixing it.

Another thing I was wondering, is there a way to force ZMUD to log the channel capture, either to the main log or to another log, but preferably the first?
This is my log peice, in atconnect #LOG {%time(mm-dd-yy).txt}

edit: tried just using the atconnect alias in the child window, that doesn't work since the child doesn't connect independently it just get's fed the channel info.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Nov 15, 2005 10:10 pm   
 
For logging add

:channels:#Log {%time(mm-dd-yy).txt}

to your Main windows atconnect
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
easal
Novice


Joined: 21 Jun 2005
Posts: 38

PostPosted: Tue Nov 15, 2005 10:37 pm   
 
Thanks Nexela.
Of course, one problem solved, another comes up. I never took into account multiline channeltells.

I tried cannabalizing this peice from Kjata.

#TRIGGER {^~((%w)~):(*)} {#T+ capTells}
#TRIGGER capTells {(*)} {#CAP tell;#GAG;#IF (%ends("%1", "~"")) {#T- capTells}} "" {disable}

But since mine end in " not ', I thought I'd just need to change that. The damn thing just captures everything now, so no dice. I did notice that there are full scripts that managed to capture multiline tells for Achaea. I can't figure exactly how to extract the peices I need.

Back to the drawing table it seems
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Nov 15, 2005 10:48 pm   
 
I think I posted a generic multiline capture script here that might even be documented somewhat
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Tue Nov 15, 2005 11:29 pm   
 
as for the color triggers... unless you add the variable to the child window it wont work... unless you referance it.

trigger off of {@windowName.guildmates}
_________________
Discord: Shalimarwildcat
Reply with quote
easal
Novice


Joined: 21 Jun 2005
Posts: 38

PostPosted: Wed Nov 16, 2005 11:31 pm   
 
Thank you both.

@shalimar I had the trigger in the child window. I can't find anything in the help files about referencing in the way you say, so I haven't figured that out.
An odd thing though, I changed the colour in the trigger in the main window to "blue" instead of the lighter shade and it captures that fine. Which seems strange.

@nexela I tracked down that code of yours, I can't seem to get it to match the channel. I'll try again later, I only had about fifteen minutes to spare today for it. Thanks though, it at least gives me a direction to go in.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Thu Nov 17, 2005 3:44 am   
 
It was all explained to me here:

http://forums.zuggsoft.com/phpbb/viewtopic.php?t=10846
_________________
Discord: Shalimarwildcat
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