/edit

Usage:

/EDIT [options] [name] [= body]


Edits a currently existing macro or the trigger associated with a macro. Options are described under "def". The name of the macro must be specified and cannot be changed, with the following two exceptions:

1. The macro name can be specified as "#num" where num is the number of the macro instead of the name. A macro number can be determined by listing the macro with /list.

2. The macro name can be specified as "$pattern" where pattern is the trigger pattern. You may still change the pattern if this is used to locate the macro.

In either case, the name cannot be changed. It is possible to create a macro which changes the name of a macro, if it does not have any options other than a name and a body:

/def rename = /def %2 = $%1%; /undef %1

How this works is discussed in the help section "expansion".

The -i flag will be cleared from the macro if it is not explicitly given with /edit. It is not possible to clear the -F option. The -t, -w, and -T options also can not be cleared, but their arguments can be changed. Any options that are not specified with /edit will remain unchanged (with the exception of -i).

Example:

/def -p2 -t"* has arrived." -ah greet = :greets %1
/edit -c0 greet

The second command will change the probability of /greet's trigger from 100% to 0%, effectively turning it off without actually undefining it.

See: macros, triggers, patterns, evaluation, attributes, /def, /list


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997 Ken Keys