Download link: https://raw.githubusercontent.com/Mudle ... mapper.xml (script is included in Mudlet already as well)
Also, this script positions its mapper window using the Simple Window Manager Script (found here), but this should be able to be modified to use other GUI management systems as desired, by changing relevant lines in the config function.
As I have been asked this several times, the proper way to store the exits in the map.prompt.exits variable is as a string, with exit directions separated by any number of spaces and commas, and no extra words other than "and" (which is automatically removed). Ex: "north, south, west, up, and northwest" or "north south west up northwest".
Edit: Updated to handle in/out exit stubs properly, bypassing the bug in the Mudlet function setExitStub. Also added a "stretch_map" variable in the configs that lets you determine if the map will automatically reposition rooms if a new room would overlap with an existing one.
Edit: Updated to hopefully handle forced movement in known directions, via the "onForcedMove" event, which takes two arguments, the first being the direction you are being moved in, and the second (optional) telling it to force that movement to the front of the list of directions moved (use "true" as a string if this is needed). Note that this hasn't been tested, but given that it is basically just grabbing the exit it is given and putting it in the movement queue as if you had typed in the direction, I don't anticipate many problems.
Edit: At Vadi's suggestion, I created a proper package out of this, and wrote a single command you could put into Mudlet's command line to install it. There is a very basic set of triggers in place to help get things going, but the odds are low that they will work for your game without significant adjustment.
Edit: Updated to fix doors in non-cardinal and ordinal directions (i.e. up, down, in, and out)
Edit: Updated to switch to using UTF-8 to support international characters, also squashed a few bugs with help from Vadi.
Edit: Added an event that is raised when the map is moved, "onMoveMap", and an option to make the script search for a room match when 'look' is sent, which is search_on_look, which can be found with the rest of the configs for the script.
Edit: Super experimental version of this script that tries to figure out your prompt for you, search for room names in a programatic way, and has a much more robust set of patterns for the exit trigger. Not yet recommended for the average user. This script has now been incorporated into Mudlet, latest version is pre-installed automatically. You don't need to use the attachment above.
Code: [show] | [select all] lua