/trigger
Usage:
/TRIGGER [-g] [-w[world]]
[-h[event]] text
Executes macros with
triggers or
hook arguments that match text,
just as if text had come from a
socket or a hook event had occurred
with text as its arguments.
The return value of /trigger
is the number of (non-quiet)
macros that were executed.
/Trigger is useful
for debugging
triggers and
hooks.
Options:
- -g
- Match "global" triggers
or hooks that were not defined with
/def
-w
- -wworld
- Match triggers or
hooks for world,
or the current
world if world is omitted.
- -hevent
- Match hooks where event
matches the hook event and text matches the hook argument pattern.
Without -h, /trigger matches
triggers,
not hooks.
If no options are given, both -g and -w are assumed. That is, text
is matched against global triggers
and hooks, as well as
triggers
and hooks for the
current
world.
See: triggers,
hooks,
/def
Back to index
Back to tf home page
Copyright © 1995 - 1999 Ken Keys