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


Joined: 10 Dec 2003
Posts: 5
Location: USA

PostPosted: Mon Aug 02, 2004 6:23 pm   

Help capturing text
 
I am trying to set up a quest. Part of the quest will involve a player asking me where I am. I would like a trigger to 'look' then send all of the text that is returned by the look command to the player(s) asking me where I am. I can do the trigger part, it is the capturing the room description, who's there, etc that I don't know how to do. Any help would be appreciated.

TIA
John
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Aug 03, 2004 7:08 pm   
 
This is pretty much the same as any other multiline problem. Start at the beginning (#T+ trigger), continue until the end (* trigger), then stop (#T- trigger). Don't ask me for the patterns in italics, you'll have to figure out what you can use.
#TR {(%w) tells you, 'Where are you?'} {#VAR lookname %1;look}
#TR {pattern from beginning of look} {#T+ sendlook}
#TR sendlook {(*)} {tell @lookname %1}
#TR {pattern from end of look} {#T- sendlook}
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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