|
Fergal1982 Wanderer
Joined: 08 Aug 2005 Posts: 70
|
Posted: 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 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
|
|
|
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
|
|