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
batman2227
Beginner


Joined: 19 Nov 2002
Posts: 25
Location: USA

PostPosted: Fri Jul 11, 2003 5:13 am   

multiline capturing
 
This has to be easy, but how do I capture multiple lines to a variable, say if someone is chatting or sending a tell. Sample mudoutput from Achaea:

3061h, 1885m ex-
Person tells you, "Hey, how you doing buddy. I sure like to talk alot. Man I am still talking. I never stop. Yakkity, yack! See if you can capture all this to a variable. Muhahahahahahahahahahahaha!!!!"
3061h, 1885m ex-

Any suggestions on how to capture a multiple line tell to a variable? Any help would be greatly appreciated.
Reply with quote
Siddha
Beginner


Joined: 07 Jul 2003
Posts: 15

PostPosted: Fri Jul 11, 2003 8:39 am   
 
if you need it just for displaying in separate window, then:

pattern: %x tells you, *
command: #cap tells;
flags: Enable, Newline, Prompt, Case sensitive, Trigger on trigger

Anything else, probably something like:

pattern:
%x tells you,*
command:
temp = %line;
#add temp (%line2);
#add temp (%line3);

but max would be third line, so///

maybe like this...

pattern: %x tells you, "(*)";
command: #var temp %1;

idea is, that zMUD will take everything between "" as a var, because of these brackets: ()
good luck:)
Reply with quote
Siddha
Beginner


Joined: 07 Jul 2003
Posts: 15

PostPosted: Fri Jul 11, 2003 8:42 am   
 
Sorry, just habit;)
in last example, pattern suppose to be:

pattern: %x tells you, "(*)"
without semicolomn at the end;)
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