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
NiteTrip
Novice


Joined: 21 May 2002
Posts: 40
Location: Canada

PostPosted: Mon Jun 03, 2002 2:24 am   

Capturing text to a variable rather than a window
 
Ok, I've asked this question before, AND I've been trying to find an answer searching the forum, and tried discovering it on my own, but it escapes me how I can do this.

I want to store multiple lines from the mud to a variable. I want to trigger it with a certain phrase then end it with a prompt.

here is the sample output:


Modifies the following statistics: <-- start capture here
DEX By 2
STR By 2

< 422H 330M 194V 4384463X > <-- end capture here.

I know what to write to start the capture and to end the capture, however I don't know HOW to start the capture.. does anyone have any ideas?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Mon Jun 03, 2002 5:34 am   
 
The general way this is done is by having a class turned off and on.

That class would contain a trigger something like this:

#TR {^(*)$} {CapturedLine=%concat(@CaptureLine,%ch,"%1")

Then whatever trigger turn on the class clears the variable, and whatever trigger turn it off processes the info.
Reply with quote
NiteTrip
Novice


Joined: 21 May 2002
Posts: 40
Location: Canada

PostPosted: Mon Jun 03, 2002 4:08 pm   
 
Thanks, you pointed me in the right direction, I think I got it working :-)
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