Ok... I think I have done it...
done what? you say...
I have created a 2d map with labels (yeah I know you may have seen it but it's a lot more useful now)
It is generic enough to work with any mudlet map. (still untested by others... let me know)
- The posted script only does the embedded 2d map.
If you would like to try it (and I would love it if you would).
- 2dmap.zip
- extract, Import the xml and when it asks... point it to the gfx folder.
- (25.05 KiB) Downloaded 618 times
IMPORTANT:
There a just a few functions you need to know.
--this creates/recreates/resizes the 2d map and returns the width and height of it
w,h =OcreateMap(maxWIDE,maxHIGH,cgrid)
--where maxWIDE is the maximum # of rooms that will display horizontal
--where maxHIGH is the maximum # of rooms that will display vertically
--where cgrid is the size of each room in pixels
--this places the map and adjusts it
OmoveMap(x,y)
--where x,y is the distance from upper left hand corner of mudlets main window to the upper left hand corner of the map measured in pixels
--in case you want to hide the map entirely
OhideMap()
--to display the map
OshowMap(RoomID)
You will need to call the OcreateMap and OmoveMap functions at least once before the map will display correctly (they can be called as many times as you like and they will resize the map however you specify)
Use the OshowMap function just as you would the centerview function.