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


Joined: 25 Oct 2005
Posts: 99

PostPosted: Wed Nov 09, 2005 3:08 pm   

Multiline capture triggers
 
Is there an available script for capturing text between two prompts? for example:(Assuming the <> surround the prompt)
<PROMPT>
This is
a true
multiline
example.
<PROMPT>

I've been trying to solve this for about a week with no success. Any help would greatly be appreciated.

Cheers!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Nov 09, 2005 10:01 pm   
 
#variable vStuffBetweenPrompts {}

#trigger {prompt pattern} {#T+ tStuffBetweenPrompts;vStuffBetweenPrompts = ""}
#condition {prompt pattern} {#T- tStuffBetweenPrompts}

#trigger "tStuffBetweenPrompts" {(*)} {vStuffBetweenPrompts = %concat(@vStuffBetweenPrompts,"%1")}

Without knowing the specifics, it's kind of hard to plan for a more specific trigger so that it doesn't capture EVERY single thing between the prompts.
_________________
EDIT: I didn't like my old signature
Reply with quote
Pseudo
Wanderer


Joined: 25 Oct 2005
Posts: 99

PostPosted: Wed Nov 09, 2005 10:42 pm   
 
Thanks, that's what I was looking for. :)
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