Added a general-use 'desc' command. Resolves #643.
This commit is contained in:
parent
f16bb7dda6
commit
06c9c6b531
1 changed files with 24 additions and 0 deletions
|
|
@ -331,6 +331,30 @@ class CmdGive(MuxCommand):
|
||||||
target.msg("%s gives you %s." % (caller.key, to_give.key))
|
target.msg("%s gives you %s." % (caller.key, to_give.key))
|
||||||
|
|
||||||
|
|
||||||
|
class CmdDesc(MuxCommand):
|
||||||
|
"""
|
||||||
|
describe yourself
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
desc <description>
|
||||||
|
|
||||||
|
Add a description to yourself. This
|
||||||
|
will be visible to people when they
|
||||||
|
look at you.
|
||||||
|
"""
|
||||||
|
key = "desc"
|
||||||
|
locks = "cmd:all()"
|
||||||
|
|
||||||
|
def func(self):
|
||||||
|
"add the description"
|
||||||
|
|
||||||
|
if not self.args:
|
||||||
|
self.caller.msg("You must add a description.")
|
||||||
|
return
|
||||||
|
|
||||||
|
self.caller.db.desc = self.args.strip()
|
||||||
|
self.caller.msg("You set your description.")
|
||||||
|
|
||||||
class CmdSay(MuxCommand):
|
class CmdSay(MuxCommand):
|
||||||
"""
|
"""
|
||||||
speak as your character
|
speak as your character
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue