I'm having a bit of an issue with my mapper/script that I was hoping to find a solution for. I have the mud mapped. I just need it to follow me accurately. In zmud/cmud, I could tell the mapper not to verify room names on the way and just follow me based on the directions that have been input. Is this possible with mudlet?
I'm playing on The Two Towers(t2tmud dot org port 9999), an lpmud I believe. I'm using the generic mapper package, with some changes/additions based on what I've found here in the forums. Right now, the largest problem I have is that in one of the areas, there are random rooms thrown in with different names and they're changed regularly and it's hanging up my map if I move through one of the rooms that has changed while speedwalking and I have to use my teleport alias to put the map in the room where I'm actually at.
For instance, sometimes Lothlorien(n, e, s and w) becomes Near a guard flet(n, e, s and w) and reverse.
On the same note, if I move through a series of rooms with only special exits on a speedwalk, the mapper will not follow. If I move through them one room at a time by hand, it follows fine.
I considered adding my teleport code to the alias I made to go to the room, but it sends the command at the same time as the speedwalk starts, and then the mapper identifies other rooms I'm walking through on the way and adjusts my location, throwing everything off even more. I guess if I could find a way, I could set the teleport code to fire when all movement has finally stopped.
Is there a way to have the mapper follow me based on the path that is put in, starting at the current location, while ignoring room names/exits when the speedwalk function has been called via my "go" alias? I've included my changes/additions to the mapper script below. I have no real coding experience and I've pieced together everything by copying and adjusting other stuff I've found online. If any of this is bloated or using incorrect syntax or methodology or whatever, please forgive me.
Room name/exit regex triggers are nested, the first to just pick up the line starting with the background color:
I'm using this to hopefully capture rooms that have no visible exits so I can do something with those later.
^([A-Z,].+)*$ with colors.ANSI_COLORS_F{011}_B{004}
Child trigger is this, which is the standard room/exit.
^([A-Z].+)\(([\w\s,]+)\)\s*\[?([\w\s,]*)\]?
The following aliases are things I've added for convenience. The big things for me are being
able to type "go (location abbreviation, like a favorite, or room number)" to go somewhere and teleport the map to a room if it
didn't follow me all the way through the speedwalk.
This alias adds a short name for the current room that I can use with the "go" and "tele" aliases.
^addroom (\w*)$
^go (.+)$
^tele (.+)$
Quick edit - Some of these aliases stopped working 100% so I updated the logic, along with changing the room detection trigger back to firing based on background colors instead of using the exclude rooms table to filter some things out.