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
Fergal1982
Wanderer


Joined: 08 Aug 2005
Posts: 70

PostPosted: Sun Jul 22, 2007 2:30 pm   

Multiline Capture Tweak Issue
 
Hi,

I'm using the following trigger to capture information to another window:

Code:
#TRIGGER "whocapture" {^Denizens of Akanbar are as follows:} {:who:#Clr;
:who:#sayp %time(hh:mm)%Char(13);
#temp whocaptureend {>} {#state whocapture 0};
#cap Who;#gag}
#COND {} {#cap who;#gag} {looppat}


The end trigger is set to >, which appears in the status prompt, which will appear after the information is printed.

Currently this works, but is also captures the status prompt to the window. I've tried tweaking this to stop it doing it, but its not working. Can anyone suggest how to amend this?

Thanks
Fergal
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Jul 22, 2007 5:18 pm   
 
I wouldn't use a multistate trigger for the multi-line capture - I'd use the multistate part to turn it off and a separate trigger for the capturing.

#TRIGGER "whocapture" {^Denizens of Akanbar are as follows:} {:who:#Clr;:who:#sayp %time(hh:mm)%Char(13);#cap Who;#gag;#t+ multi-line}
#CONDITION {>} {#T- multi-line}

#trig "multi-line" {^(*)$} {#cap who;#gag} "" {disable}

I haven't used zMUD in a long time (CMUD ftw ^_^), so I forget how to tweak the order that your triggers fire in, but it's possible. As long as the second state of the whocapture trigger fires before the multi-line trigger (and it'll do so every time once it's doing it once), you're fine.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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