are parsed by default, but you can call foo/noeval. Note: the $-command
needs to make allowances for the /noeval switch in it's matching.
+ Commands added with @command/add, like other standard commands,
+ are never case-sensitive (regardless of CASE flag on the attribute).
+
(examples in help @command3)
& @command3
Examples:
& PMATCH()
pmatch(<string>)
- Given the partial name of a player, it returns that player's dbref
+ Given the partial name of a connected player, returns that player's dbref
number. This partial name completion works similarly to the partial
name completion of the "page" command - i.e. it first attempts to match
- the normal names of all players (connected or not), and if that fails,
+ the full names of all players (connected or not), and if that fails,
it tries to match the partial names of connected players visible to
the enactor. If no player is matched, it returns "#-1". If more than
one match is possible for a partial name, it returns "#-2".
be careful to escape them with sqlescape(), like this:
&SEL_GETID obj = SELECT id FROM mytable WHERE name = '[sqlescape(%0)]'
- &DOIT obj = $do *: ... [setq(0,u(SEL_GETID,%0))] ...
+ &DOIT obj = $do *: ... [setq(0,sql(u(SEL_GETID,%0),~,|))] ...
See also: sqlescape(), @sql
string from left to right. Most characters stand for themselves in a
pattern, and match the corresponding characters in the subject.
- There are two different sets of meta-characters: those that are
+ There are two different sets of meta-characters: those that are
recognized anywhere in the pattern except within square brackets,
and those that are recognized in square brackets. Outside square
brackets, the meta-characters are as follows:
(Cont'd in help regexp syntax4)
& regexp syntax4
- A backlash can also two useful assertions -- conditions that
+ A backlash can also be used for two useful assertions -- conditions that
must be met at a particular point in a match:
\b word boundary
Standard attributes are set using @<attrib> <obj>=<value>
Nonstandard attributes are set using &<attrib> <obj>=<value>
Attributes may also be set using @set <obj>=<attrib>:<value>
+ or the set() function.
Attributes are cleared using @<attrib> <obj> or &<attrib> <obj>
- or with @wipe.
+ or with @wipe or wipe().
- Note that there is a difference between clearing an attribute
- and setting an attribute to a null value:
+ Note that if the empty_attrs configuration option is set
+ (@config empty_attrs to check), there is a difference between
+ clearing an attribute and setting an attribute to a null value:
@va me <--- wipes out my VA attribute
@va me= <--- sets my VA attribute to be empty
Empty attributes retain their flags and atrlock status. Wiped attributes
are gone forever.
- See also ATTRIBUTES, NON-STANDARD ATTRIBUTES, @set, @wipe
+ See also ATTRIBUTES, NON-STANDARD ATTRIBUTES, @set, @wipe, set(), wipe()
& SPOOFING
Spoofing is the act of making other characters think that a person
said or did something that they did not. This is very easy to