mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
The main command to use is @lock, which accept three types of locks at the moment, and three types of keys: Locks: DefaultLock, UseLock, EnterLock Keys: ObjectIDs, Groups, Permissions This offers the most useful functionality - stopping people from picking up things, blocking exits and stopping anyone from using an object. If the attributes lock_msg, use_lock_msg and enter_lock_msg are defined on the locked object, these will be used as error messages instead of a standard one (so "the door is locked" instead of "you cannot traverse that exit"). Behind the scenes, there is a new module, src/locks.py that defines Keys and Locks. A Locks object is a collection of Lock types. This is stored in the LOCKS attribute on objects. Each Lock contains a set of Keys that might be of mixed type and which the player must match in order to pass the lock. /Griatch |
||
|---|---|---|
| .. | ||
| channels | ||
| commands | ||
| config | ||
| genperms | ||
| helpsys | ||
| imc2 | ||
| irc | ||
| objects | ||
| script_parents | ||
| util | ||
| __init__.py | ||
| alias_mgr.py | ||
| ansi.py | ||
| cmdhandler.py | ||
| cmdtable.py | ||
| comsys.py | ||
| config_defaults.py | ||
| defines_global.py | ||
| events.py | ||
| exceptions_generic.py | ||
| flags.py | ||
| initial_setup.py | ||
| locks.py | ||
| logger.py | ||
| scheduler.py | ||
| scripthandler.py | ||
| server.py | ||
| session.py | ||
| session_mgr.py | ||
| statetable.py | ||