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
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Sun Mar 24, 2002 1:05 am   

capture question
 
More important than the list you're trying to capture is what precedes the list, so we know when to start capturing, and what immediately follows the list, so we know when to stop capturing. Once we've identified that you can do something along the lines of this:

#TR {Text that appears immediately before the inventory list.} {#VAR myInventory "";#T+ getInventory}
#CLASS {getInventory}
#TR {^(*)$} {#VAR myInventory %additem("%1",@myInventory)}
#TR {Text that appears immediately after the inventory list.} {#T- getInventory}
#CLASS 0

You can use a blank line to indicate the end of the list with the pattern {^$}.

Troubadour
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