|
bothkill Apprentice
Joined: 13 Mar 2005 Posts: 125 Location: Bucharest
|
Posted: 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? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|