evennia/src/commands
Griatch 66095a0b16 Implemented locks.
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
2009-10-05 20:04:15 +00:00
..
__init__.py Even more death and destruction. A lot more stuff moved to src/. A lot more bugs probably introduced. 2008-06-15 19:38:39 +00:00
batchprocess.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
comsys.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
general.py Implemented locks. 2009-10-05 20:04:15 +00:00
imc2.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
info.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
irc.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
objmanip.py Implemented locks. 2009-10-05 20:04:15 +00:00
paging.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
parents.py Fixed some bugs in move reporting. Made feedback from default commands a bit more informative and consistent. Added some more text and error handling to the login commands. 2009-09-19 20:48:06 +00:00
privileged.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
search.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00
unloggedin.py - Implemented permission system management inside the game 2009-10-03 14:40:34 +00:00