Minor fixes to various default commands.
This commit is contained in:
parent
c688865e10
commit
21eed74c8d
2 changed files with 25 additions and 19 deletions
|
|
@ -606,7 +606,7 @@ class CmdDig(ObjManipCommand):
|
||||||
caller = self.caller
|
caller = self.caller
|
||||||
|
|
||||||
if not self.lhs:
|
if not self.lhs:
|
||||||
string = "Usage:@ dig[/teleport] roomname[;alias;alias...][:parent] [= exit_there"
|
string = "Usage: @dig[/teleport] roomname[;alias;alias...][:parent] [= exit_there"
|
||||||
string += "[;alias;alias..][:parent]] "
|
string += "[;alias;alias..][:parent]] "
|
||||||
string += "[, exit_back_here[;alias;alias..][:parent]]"
|
string += "[, exit_back_here[;alias;alias..][:parent]]"
|
||||||
caller.msg(string)
|
caller.msg(string)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ class CmdHome(MuxCommand):
|
||||||
Usage:
|
Usage:
|
||||||
home
|
home
|
||||||
|
|
||||||
Teleports the player to their home.
|
Teleports you to your home location.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
key = "home"
|
key = "home"
|
||||||
|
|
@ -36,7 +36,9 @@ class CmdHome(MuxCommand):
|
||||||
caller = self.caller
|
caller = self.caller
|
||||||
home = caller.home
|
home = caller.home
|
||||||
if not home:
|
if not home:
|
||||||
caller.msg("You have no home set.")
|
caller.msg("You have no home!")
|
||||||
|
elif home == caller.location:
|
||||||
|
caller.msg("You are already home!")
|
||||||
else:
|
else:
|
||||||
caller.move_to(home)
|
caller.move_to(home)
|
||||||
caller.msg("There's no place like home ...")
|
caller.msg("There's no place like home ...")
|
||||||
|
|
@ -135,20 +137,24 @@ class CmdNick(MuxCommand):
|
||||||
object - alias an object
|
object - alias an object
|
||||||
player - alias a player
|
player - alias a player
|
||||||
clearall - clear all your aliases
|
clearall - clear all your aliases
|
||||||
list - show all defined aliases
|
list - show all defined aliases (also "nicks" works)
|
||||||
|
|
||||||
If no switch is given, a command alias is created, used
|
Examples:
|
||||||
to replace strings before sending the command. Give an empty
|
nick hi = say Hello, I'm Sarah!
|
||||||
right-hand side to clear the nick
|
nick/object tom = the tall man
|
||||||
|
|
||||||
Creates a personal nick for some in-game object or
|
A 'nick' is a personal shortcut you create for your own use. When
|
||||||
string. When you enter that string, it will be replaced
|
you enter the nick, the alternative string will be sent instead.
|
||||||
with the alternate string. The switches dictate in what
|
The switches control in which situations the substitution will
|
||||||
situations the nick is checked and substituted. If string
|
happen. The default is that it will happen when you enter a
|
||||||
is None, the alias (if it exists) will be cleared.
|
command. The 'object' and 'player' nick-types kick in only when
|
||||||
Obs - no objects are actually changed with this command,
|
you use commands that requires an object or player as a target -
|
||||||
if you want to change the inherent aliases of an object,
|
you can then use the nick to refer to them.
|
||||||
use the @alias command instead.
|
|
||||||
|
Note that no objects are actually renamed or changed by this
|
||||||
|
command - the nick is only available to you. If you want to
|
||||||
|
permanently add keywords to an object for everyone to use, you
|
||||||
|
need build privileges and to use the @alias command.
|
||||||
"""
|
"""
|
||||||
key = "nick"
|
key = "nick"
|
||||||
aliases = ["nickname", "nicks", "@nick", "alias"]
|
aliases = ["nickname", "nicks", "@nick", "alias"]
|
||||||
|
|
@ -220,7 +226,7 @@ class CmdInventory(MuxCommand):
|
||||||
inventory
|
inventory
|
||||||
inv
|
inv
|
||||||
|
|
||||||
Shows a player's inventory.
|
Shows your inventory.
|
||||||
"""
|
"""
|
||||||
key = "inventory"
|
key = "inventory"
|
||||||
aliases = ["inv", "i"]
|
aliases = ["inv", "i"]
|
||||||
|
|
@ -479,7 +485,7 @@ class CmdPose(MuxCommand):
|
||||||
-> others will see:
|
-> others will see:
|
||||||
Tom is standing by the wall, smiling.
|
Tom is standing by the wall, smiling.
|
||||||
|
|
||||||
Describe an script being taken. The pose text will
|
Describe an action being taken. The pose text will
|
||||||
automatically begin with your name.
|
automatically begin with your name.
|
||||||
"""
|
"""
|
||||||
key = "pose"
|
key = "pose"
|
||||||
|
|
@ -502,7 +508,7 @@ class CmdPose(MuxCommand):
|
||||||
def func(self):
|
def func(self):
|
||||||
"Hook function"
|
"Hook function"
|
||||||
if not self.args:
|
if not self.args:
|
||||||
msg = "Do what?"
|
msg = "What do you want to do?"
|
||||||
self.caller.msg(msg)
|
self.caller.msg(msg)
|
||||||
else:
|
else:
|
||||||
msg = "%s%s" % (self.caller.name, self.args)
|
msg = "%s%s" % (self.caller.name, self.args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue