Added the capability of evennia commands to consist of more than one word. So the examples.red_button parent can now be pressed with the command 'push button' instead of 'pushbutton' as before. The variable COMMAND_MAXLEN in the config defines how many words your commands may maximum contain (don't set it higher than needed for efficiency reasons).

The main drawback of multi-word commands are that they can not have any switches; they are intended for in-game use (in states and on objects). Use normal one-word commands for administration and more complex commands with many options.
/Griatch
This commit is contained in:
Griatch 2009-10-18 19:29:18 +00:00
parent 0c29d359f6
commit a711e07b80
4 changed files with 115 additions and 53 deletions

View file

@ -66,10 +66,14 @@ DATABASE_HOST = ''
# Empty string defaults to localhost. Not used with sqlite3.
DATABASE_PORT = ''
# How many words a single command name may have (e.g. 'push button' instead of 'pushbutton')
# (commands with switches always accept only one word in the name, e.g. @sethelp/add)
COMMAND_MAXLEN = 3
## Command aliases
# These are convenient aliases set up when the game is started
# for the very first time. You can add/delete aliases in-game using
# the @cmdalias command.
# the @setcmdalias command.
COMMAND_ALIASES = {"@desc":"@describe",
"@dest":"@destroy", "@nuke":"@destroy",
"@tel":"@teleport",
@ -78,7 +82,7 @@ COMMAND_ALIASES = {"@desc":"@describe",
"ex":"examine",
"sa":"say",
"emote":"pose",
"p":"page" }
"p":"page"}
## Permissions
## The variables in this section are used by each evennia subsystem to tell which permissions to define.