Legacy Comms-commands¶
Contribution by Griatch 2021
In Evennia 1.0+, the old Channel commands (originally inspired by MUX) were
replaced by the single channel
command that performs all these functions.
This contrib (extracted from Evennia 0.9.5) breaks out the functionality into
separate Commands more familiar to MU* users. This is just for show though, the
main channel
command is still called under the hood.
Contrib syntax |
Default |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Installation¶
Import the
CmdSetLegacyComms
cmdset from this module intomygame/commands/default_cmdsets.py
Add it to the CharacterCmdSet’s
at_cmdset_creation
method (see below).Reload the server.
# in mygame/commands/default_cmdsets.py
# ..
from evennia.contrib.base_systems.mux_comms_cmds import CmdSetLegacyComms # <----
class CharacterCmdSet(default_cmds.CharacterCmdSet):
# ...
def at_cmdset_creation(self):
# ...
self.add(CmdSetLegacyComms) # <----
Note that you will still be able to use the channel
command; this is actually
still used under the hood by these commands.
This document page is generated from evennia/contrib/base_systems/mux_comms_cmds/README.md
. Changes to this
file will be overwritten, so edit that file rather than this one.