# XYZGrid contrib ```versionadded:: 1.0 ``` This optional contrib adds a 'coordinate grid' to Evennia. It allows for defining the grid as simple ascii maps that are then spawned into rooms that are aware of their X, Y, Z coordinates. The system includes shortest-path pathfinding, auto-stepping and in-game map visualization (with visibility range). Grid-management is done outside of the game using a new evennia-launcher option. ``` #-#-#-# # | / d #-# | # \ u |\ o---#-----#---+-#-# | ^ |/ | | # v | \ #-#-#-#-#-# #---# |x|x| / #-#-# #- ``` ``` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #---# / @- -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dungeon Entrance To the east, a narrow opening leads into darkness. Exits: northeast and east ``` ## Installation 1. Import and add the `evennia.contrib.commands.XYZGridCmdSet` to the `CharacterCmdset` cmdset in `mygame/commands.default_cmds.py`. Reload the server. This makes the `map`, `goto/path` and the modified `teleport` and `open` commands available in-game. 2. Edit `mygame/server/conf/settings.py` and add EXTRA_LAUNCHER_COMMANDS['xyzgrid'] = 'evennia.contrib.launchcmd.xyzcommand' and PROTOTYPE_MODULES += [’evennia.contrib.xyzgrid.prototypes’] This will add the new ability to enter `evennia xyzgrid