 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: 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? |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: 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. |
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Mon Jun 03, 2002 4:08 pm |
Thanks, you pointed me in the right direction, I think I got it working :-)
|
|
|
 |
|
|
|
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
|
|