Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
bothkill
Apprentice


Joined: 13 Mar 2005
Posts: 125
Location: Bucharest

PostPosted: Tue Mar 15, 2016 10:07 am   

Capturing the next line
 
Hi!

For certain room types, I have difficulties with the Mapper getting the right room name. I thought of a way of correcting the room names. I know how to do this with Map commands.
What I don't know is how to capture a whole line after a certain text.

The method goes like this: I force the Mud to show the room name after a certain text. I enter the commands:

Code:
say Mapper update;look


The Mud returns my message and the room name.

Code:
You say, "Mapper update".
Entrance to the castle - [The entrance is so small]


How can I capture the entire second line to a variable?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Mar 15, 2016 3:57 pm   
 
#TRIGGER {^You say, "Mapper update".} {}
#COND {*} {NameLine=%line}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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