Hi, I've been fooling around with Mushclient now and have written this alias below.
Question:
I want to capture room titles as I explore the world just for my own reference.
Room titles are important and being able to group them by the region they are found in would make my experience that much easier.
Basically, I want to walk into a new room and capture the first line of text that reaches my world's output after I enter the walk command. Because the first line of output from the mud after a directional command is usually the room title
Sending it to notepad would be fine.
Sort of like this:
[e (these direction commands are just the Mushclient echo of my input)]
The School
Room description would be here
[w]
Road
[s]
Road
[s]
Grassy Patch
[e]
Wooded Patch
I would want The School, Road, Road, Grassy Patch, Wooded Patch all sent to notepad.
Problem: If the room title was in ansi colour I would know how to capture it, but unfortunately it couldn't be that simple. The Mud does not distinguish the room title from the rest of the description except by placing the room title alone on the first line of the room description.
The School
This is the training area for the mud. Many things to do here. Looking around you see lots of stuff.
I see how this alias without the "send e" captures and sends the last line to notepad. I was hoping I could do something similar here. I don't want to have to clear the output buffer of all but the first line every time I move either :)
<aliases>
<alias
match="e"
enabled="y"
send_to="12"
sequence="100"
>
<send>send "east"
world.AppendToNotepad "roomtitles", GetLineInfo (line, 1) & vbcrlf
</send>
</alias>
</aliases>
Question:
I want to capture room titles as I explore the world just for my own reference.
Room titles are important and being able to group them by the region they are found in would make my experience that much easier.
Basically, I want to walk into a new room and capture the first line of text that reaches my world's output after I enter the walk command. Because the first line of output from the mud after a directional command is usually the room title
Sending it to notepad would be fine.
Sort of like this:
[e (these direction commands are just the Mushclient echo of my input)]
The School
Room description would be here
[w]
Road
[s]
Road
[s]
Grassy Patch
[e]
Wooded Patch
I would want The School, Road, Road, Grassy Patch, Wooded Patch all sent to notepad.
Problem: If the room title was in ansi colour I would know how to capture it, but unfortunately it couldn't be that simple. The Mud does not distinguish the room title from the rest of the description except by placing the room title alone on the first line of the room description.
The School
This is the training area for the mud. Many things to do here. Looking around you see lots of stuff.
I see how this alias without the "send e" captures and sends the last line to notepad. I was hoping I could do something similar here. I don't want to have to clear the output buffer of all but the first line every time I move either :)
<aliases>
<alias
match="e"
enabled="y"
send_to="12"
sequence="100"
>
<send>send "east"
world.AppendToNotepad "roomtitles", GetLineInfo (line, 1) & vbcrlf
</send>
</alias>
</aliases>