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
alaric_tynan
Newbie


Joined: 05 Sep 2004
Posts: 8

PostPosted: Sun Sep 12, 2004 4:51 pm   

Capturing text
 
Is there a command to capture a certain amount of text off the mud, starting off a trigger, that will copy the text, then because of the trigger, put it into the room notes? I know to use the %roomnote command. I don't think the #capture or #c commands are what I want, I tried that, didn't seem to work, and its apparently used just for the mud windows, not the mapper. Any ideas? Here is an example of what is shown when I type list or train

>List
Item/Price
sword 1 gold, 2 silver

>Train
Beckmann will teach the following:
Endurance for 3 gold, 1 silver, 5 copper
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Mon Sep 13, 2004 3:57 am   
 
I see you asked the same question over here http://www.emobius.com/phpbb/viewtopic.php?t=17413

Your example from that post was
Code:

Item/Price
An engraved silver wristband (brand new), a medium silver treasure, for 9 gold.
An engraved silver neck chain (brand new), a medium silver treasrure, for 9 gold.
etc....


Since the list can be more than 1 line, I'm thinking you'd want to activate a trigger to grab multiple lines, put them in your roomnotes, and then disable the trigger at your next prompt. Something like

#TR {^Item~/Price} {#T+ CapRoom}
#TR {^%w will teach you the following:} {#T+ CapRoom}
#TR "CapRoom" {*} {#NOOP %roomnote(,%1)} {} {disable}
#TR {~>} {#T- CapRoom} {} {prompt|nocr}

...untested
_________________
zMUD 7.05a
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