| |
- add_cmd(...)
- add_cmd(name, shorthand, cmd_func, user_group, interrupts_action)
Add a new command to the master command table. If a preferred shorthand
exists, e.g., 'n' for 'north', it can be specified. Otherwise, shorthand
should be None. Command functions take three arguments: a character
issuing the command, the command name, and a string argument supplied
to the command. Commands must be tied to a specific user group, and they
can optionally interupt character actions.
- cmd_at(ch, cmd, arg)
- Usage: at <person | place> <command>
Perform a command at another room or person while never leaving your
current room.
- cmd_connections(ch, cmd, arg)
- lists all of the currently connected sockets, their status, and where
they are connected from.
- cmd_copyover(ch, cmd, arg)
- Restarts the mud, and keep all sockets connected.
- cmd_copyover_net(ch, cmd, arg)
- A trap to make sure we spell copyover out completely.
- cmd_disconnect(ch, cmd, arg)
- Usage: disconnect <uid>
Disconnects a socket with the given uid. Use 'connections' to see
current connected sockets.
- cmd_eval(ch, cmd, arg)
- Usage: eval <python statement>
Evaluates a Python statement and sends its return value to the user.
For example:
> eval "Your name is " + ch.name
Evaluation: Your name is Alister
> eval dir()
Evaluation: ['arg', 'ch', 'cmd']
> eval dir(ch)
- cmd_exec(ch, cmd, arg)
- Usage: exec <python statement>
Execute any one-line python statement.
- cmd_force(ch, cmd, arg)
- Usage: force <person> <command>
Attempts to make the specified perform a command of your choosing.
- cmd_goto(ch, cmd, arg)
- Usage: goto <person | place | thing>
Transfer yourself to a specified room, object, or person in game. Rooms
are referenced by their zone key.
- cmd_instance(ch, cmd, arg)
- Create an instanced version of the specified room
- cmd_lockdown(ch, cmd, arg)
- Usage: lockdown [allowed groups | off]
Locks the game for anyone not a member of one of the user groups
specified. No argument will list all the user groups locked out of the
mud. The off argument will remove all lockdowns.
- cmd_pulserate(ch, cmd, arg)
- Usage: pulserate <pulses>
Changes the number of pulses the mud experiences each second. The mud
makes one loop through the main game handler each pulse.
- cmd_repeat(ch, cmd, arg)
- Usage: repeat <times> <command>
Attempts to perform a single command multiple times. For example, one
may want to load 20 copies of an item:
> repeat 20 load obj beer@drinks
- cmd_shutdown(ch, cmd, arg)
- Shuts the mud down.
- cmd_shutdown_net(ch, cmd, arg)
- A trap to make sure we spell shutdown out completely.
- cmd_transfer(ch, cmd, arg)
- Usage: transfer <person> [[to] room]
The opposite of goto. Instead of moving to a specified location, it
takes the target to the user. If an additional argument is supplied,
instead transfers the target to the specifie room.
- cmd_zinstance(ch, cmd, arg)
- create an instanced copy of the specified zone.
- do_transfer(ch, tgt, dest)
- ch transfers tgt to dest
- do_zinstance(zone)
- create a new instance of the specified zone.
- erase_global(...)
- erase_global(name)
Delete a value from the global variable table.
- extract(...)
- extract(thing)
Extracts an object, character, or room from the game.
- format_string(...)
- format_string(text, indent=True, width=80)
Format a block of text to be of the specified width, possibly indenting
paragraphs.
- generic_find(...)
- Deprecated. Use mud.parse_args instead.
- get_global(...)
- get_global(name)
Return a non-persistent global variable, or None.
- get_greeting(...)
- get_greeting()
returns the mud's connection greeting.
- get_hour(...)
- get_hour()
Return the current in-game hour of day.
- get_motd(...)
- get_motd()
Returns the mud's message of the day.
- get_time(...)
- get_time()
Return time of day (morning, afternoon, evening, night).
- is_afternoon(...)
- True or False if it is afternoon.
- is_evening(...)
- True or False if it is evening.
- is_morning(...)
- True or False if it is morning.
- is_night(...)
- True or False if it is night.
- is_race(...)
- is_race(name)
Returns True or False if the string is a valid race name.
- ite(...)
- ite(logic_statement, if_statement, else_statement=None)
A functional form of if/then/else.
- keys_equal(...)
- keys_equal(key1, key2)
Returns whether two world database keys are equal, relative to the
locale (if any) that the current script is running in.
- list_races(...)
- list_races(player_only=False)
Return a list of available races. If player_only is True, list only the
races that players have access to.
- log_string(...)
- log_string(mssg)
Send a message to the mud's log.
- message(...)
- message(ch, vict, obj, vobj, show_invis, range, mssg)
Send a message via the mud messaging system using $ expansions. Range
can be 'to_room', 'to_char', 'to_vict', or 'to_world'.
- parse_args(...)
- parse_args(ch, show_usage_errors, cmd, args, format)
equivalent to parse_args written in C. See parse.h for information.
- set_global(...)
- set_global(name, val)
Sets a non-persistent global variable. Val can be any type.
- try_force(ch, vict, cmd)
- tries to force a person to do something
|