|
batman2227 Beginner
Joined: 19 Nov 2002 Posts: 25 Location: USA
|
Posted: 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. |
|
|
|
Siddha Beginner
Joined: 07 Jul 2003 Posts: 15
|
Posted: 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:) |
|
|
|
Siddha Beginner
Joined: 07 Jul 2003 Posts: 15
|
Posted: 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;) |
|
|
|
|
|
|
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
|
|