evennia.contrib.xyzgrid.example

Example xymaps to use with the XYZgrid contrib. Build outside of the game using the evennia xyzgrid launcher command.

First add the launcher extension in your mygame/server/conf/settings.py:

EXTRA_LAUNCHER_COMMANDS[‘xyzgrid’] = ‘evennia.contrib.xyzgrid.launchcmd.xyzcommand’

Then

evennia xyzgrid init evennia xyzgrid add evennia.contrib.xyzgrid.map_example evennia xyzgrid build

class evennia.contrib.xyzgrid.example.TransitionToCave(x, y, Z, node_index=0, symbol=None, xymap=None)[source]

Bases: evennia.contrib.xyzgrid.xymap_legend.TransitionMapNode

A transition from ‘the large tree’ to ‘the small cave’ map. This node is never spawned into a room but only acts as a target for finding the exit’s destination.

symbol = 'T'
target_map_xyz = (1, 0, 'the small cave')
class evennia.contrib.xyzgrid.example.TransitionToLargeTree(x, y, Z, node_index=0, symbol=None, xymap=None)[source]

Bases: evennia.contrib.xyzgrid.xymap_legend.TransitionMapNode

A transition from ‘the small cave’ to ‘the large tree’ map. This node is never spawned into a room by only acts as a target for finding the exit’s destination.

symbol = 'T'
target_map_xyz = (3, 0, 'the large tree')