evennia.commands.default.account

Account (OOC) commands. These are stored on the Account object and self.caller is thus always an Account, not an Object/Character.

These commands go in the AccountCmdset and are accessible also when puppeting a Character (although with lower priority)

These commands use the account_caller property which tells the command parent (MuxCommand, usually) to setup caller correctly. They use self.account to make sure to always use the account object rather than self.caller (which change depending on the level you are calling from) The property self.character can be used to access the character when these commands are triggered with a connected character (such as the case of the ooc command), it is None if we are OOC.

Note that under MULTISESSION_MODE > 2, Account commands should use self.msg() and similar methods to reroute returns to the correct method. Otherwise all text will be returned to all connected sessions.

class evennia.commands.default.account.CmdOOCLook(**kwargs)[source]

Bases: evennia.commands.default.account.MuxAccountLookCommand

look while out-of-character

Usage:

look

Look in the ooc state.

key = 'look'
aliases = ['l', 'ls']
locks = 'cmd:all()'
help_category = 'general'
account_caller = True
func()[source]

implement the ooc look command

lock_storage = 'cmd:all()'
class evennia.commands.default.account.CmdIC(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

control an object you have permission to puppet

Usage:

ic <character>

Go in-character (IC) as a given Character.

This will attempt to “become” a different object assuming you have the right to do so. Note that it’s the ACCOUNT character that puppets characters/objects and which needs to have the correct permission!

You cannot become an object that is already controlled by another account. In principle <character> can be any in-game object as long as you the account have access right to puppet it.

key = 'ic'
locks = 'cmd:all()'
aliases = ['puppet']
help_category = 'general'
account_caller = True
func()[source]

Main puppet method

lock_storage = 'cmd:all()'
class evennia.commands.default.account.CmdOOC(**kwargs)[source]

Bases: evennia.commands.default.account.MuxAccountLookCommand

stop puppeting and go ooc

Usage:

ooc

Go out-of-character (OOC).

This will leave your current character and put you in a incorporeal OOC state.

key = 'ooc'
locks = 'cmd:pperm(Player)'
aliases = ['unpuppet']
help_category = 'general'
account_caller = True
func()[source]

Implement function

lock_storage = 'cmd:pperm(Player)'
class evennia.commands.default.account.CmdPassword(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

change your password

Usage:

password <old password> = <new password>

Changes your password. Make sure to pick a safe one.

key = 'password'
locks = 'cmd:pperm(Player)'
account_caller = True
func()[source]

hook function.

aliases = []
help_category = 'general'
lock_storage = 'cmd:pperm(Player)'
class evennia.commands.default.account.CmdQuit(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

quit the game

Usage:

quit

Switch:

all - disconnect all connected sessions

Gracefully disconnect your current session from the game. Use the /all switch to disconnect from all sessions.

key = 'quit'
switch_options = ('all',)
locks = 'cmd:all()'
account_caller = True
func()[source]

hook function

aliases = []
help_category = 'general'
lock_storage = 'cmd:all()'
class evennia.commands.default.account.CmdCharCreate(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

create a new character

Usage:

charcreate <charname> [= desc]

Create a new character, optionally giving it a description. You may use upper-case letters in the name - you will nevertheless always be able to access your character using lower-case letters if you want.

key = 'charcreate'
locks = 'cmd:pperm(Player)'
help_category = 'general'
account_caller = True
func()[source]

create the new character

aliases = []
lock_storage = 'cmd:pperm(Player)'
class evennia.commands.default.account.CmdOption(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

Set an account option

Usage:

option[/save] [name = value]

Switches:

save - Save the current option settings for future logins. clear - Clear the saved options.

This command allows for viewing and setting client interface settings. Note that saved options may not be able to be used if later connecting with a client with different capabilities.

key = 'option'
aliases = ['options']
switch_options = ('save', 'clear')
locks = 'cmd:all()'
account_caller = True
func()[source]

Implements the command

help_category = 'general'
lock_storage = 'cmd:all()'
class evennia.commands.default.account.CmdSessions(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

check your connected session(s)

Usage:

sessions

Lists the sessions currently connected to your account.

key = 'sessions'
locks = 'cmd:all()'
help_category = 'general'
account_caller = True
func()[source]

Implement function

aliases = []
lock_storage = 'cmd:all()'
class evennia.commands.default.account.CmdWho(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

list who is currently online

Usage:

who doing

Shows who is currently online. Doing is an alias that limits info also for those with all permissions.

key = 'who'
aliases = ['doing']
locks = 'cmd:all()'
account_caller = True
func()[source]

Get all connected accounts by polling session.

help_category = 'general'
lock_storage = 'cmd:all()'
class evennia.commands.default.account.CmdColorTest(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

testing which colors your client support

Usage:

color ansi||xterm256

Prints a color map along with in-mud color codes to use to produce them. It also tests what is supported in your client. Choices are 16-color ansi (supported in most muds) or the 256-color xterm256 standard. No checking is done to determine your client supports color - if not you will see rubbish appear.

key = 'color'
locks = 'cmd:all()'
help_category = 'general'
account_caller = True
slice_bright_fg = slice(7, 15, None)
slice_dark_fg = slice(15, 23, None)
slice_dark_bg = slice(-8, None, None)
slice_bright_bg = slice(None, None, None)
table_format(table)[source]

Helper method to format the ansi/xterm256 tables. Takes a table of columns [[val,val,…],[val,val,…],…]

func()[source]

Show color tables

aliases = []
lock_storage = 'cmd:all()'
class evennia.commands.default.account.CmdQuell(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

use character’s permissions instead of account’s

Usage:

quell unquell

Normally the permission level of the Account is used when puppeting a Character/Object to determine access. This command will switch the lock system to make use of the puppeted Object’s permissions instead. This is useful mainly for testing. Hierarchical permission quelling only work downwards, thus an Account cannot use a higher-permission Character to escalate their permission level. Use the unquell command to revert back to normal operation.

key = 'quell'
aliases = ['unquell']
locks = 'cmd:pperm(Player)'
help_category = 'general'
account_caller = True
func()[source]

Perform the command

lock_storage = 'cmd:pperm(Player)'
class evennia.commands.default.account.CmdCharDelete(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

delete a character - this cannot be undone!

Usage:

chardelete <charname>

Permanently deletes one of your characters.

key = 'chardelete'
locks = 'cmd:pperm(Player)'
help_category = 'general'
func()[source]

delete the character

aliases = []
lock_storage = 'cmd:pperm(Player)'
class evennia.commands.default.account.CmdStyle(**kwargs)[source]

Bases: evennia.commands.default.muxcommand.MuxCommand

In-game style options

Usage:

style style <option> = <value>

Configure stylings for in-game display elements like table borders, help entriest etc. Use without arguments to see all available options.

key = 'style'
switch_options = ['clear']
func()[source]

This is the hook function that actually does all the work. It is called by the cmdhandler right after self.parser() finishes, and so has access to all the variables defined therein.

list_styles()[source]
set()[source]
aliases = []
help_category = 'general'
lock_storage = 'cmd:all();'