Difference between revisions of "Mudlet Mapper"

From Mudlet
Jump to navigation Jump to search
(Fixed syntax highlighting)
Line 13: Line 13:
 
Here's a snippet you can use to place the mapper window into a corner and have it automatically come up whenever you open Mudlet. To use this, create a new script (you can make it anywhere) and copy/paste the code into it.
 
Here's a snippet you can use to place the mapper window into a corner and have it automatically come up whenever you open Mudlet. To use this, create a new script (you can make it anywhere) and copy/paste the code into it.
  
<lua>
+
<syntaxhighlight lang="lua">
 
local main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="mapper container"})
 
local main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="mapper container"})
  
Line 21: Line 21:
 
   width = "30%", height = "50%"
 
   width = "30%", height = "50%"
 
}, main)
 
}, main)
</lua>
+
</syntaxhighlight>

Revision as of 05:52, 29 June 2017

Mudlet's mapper is split into two parts for the best compatibility on all MUDs - the display and functions in Mudlet, and a per-MUD Lua script that tracks where you are, allows mapping and provides aliases for using the mapper.

Pre-made mapping scripts are available from Mudlet forums. For more information on mapping scripts, see Mapping_script.

Mapping

General Mudlet Mapper tips

  1. Don't move the room you're currently in, you'll go haywire
  2. The number when spreading/shrinking room selections it the multiplication factor - 2 is a good number to try
  3. Merging areas - see [this how-to by heiko]. In short, zoom out really far away on the area you'd like to move, and select everything (the selection affects all zlevels as well). Then right-click, select area, and move them to another area. Your selection will still be selected - do not unselect - but right-click again, select move, and move all of your still selected rooms in the new area so it fits.

Placing the mapper into a corner

Here's a snippet you can use to place the mapper window into a corner and have it automatically come up whenever you open Mudlet. To use this, create a new script (you can make it anywhere) and copy/paste the code into it.

local main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="mapper container"})

local mapper = Geyser.Mapper:new({
  name = "mapper",
  x = "70%", y = 0, -- edit here if you want to move it
  width = "30%", height = "50%"
}, main)