This section outlines advanced techniques not really required for game play. But macros become addictive after a while ...

Action strings in this section are enclosed in braces {} because many use a double quote (") inside the action string. These are not inscriptions.

to the top

Set current action using (@) command in an action

{"@0\r\e}

This will work when bound to a macro.

to the top

Set current action using (") command in an action

{"A:\r} - sets the current action.

This works in either a macro or keymap.

to the top

Create a new keymap using (") command in an action

{"A:\r"C:0:\r}

Here can't contain an '\r' or '\e'.

Example: {"A:z0\r"C:0:J\r} binds action "z0" to (standard) keymap 'J'.

to the top

Create a new macro using (") command in an action

{"A:\r"P:\r}

Here can't contain an '\r' or '\e'. Here is a standard key. (not a "special" one like F1, \b, or ^A)

Example:

If we bind these 2 macros to different trigger keys, the action that is on key (j) can be swapped back and forth.

to the top

Turning an option on/off in an action

Turn an option on: {"Y:\r}

Turn an option of: {"Y:\r}

Example: Turn (quick_messages) on, do an action, and turn it back off: {"Y:quick_messages\r"X:quick_messages\r}

This will work in either a macro or keymap. is the name of the option as it appears in the option editor accessed through the (=) command. These are also listed in the help file "option.txt". Note that option names contain underscores instead of spaces.

to the top

Inscribe/Uninscribe an item in an action

(These action strings are enclosed in double quotes)

Inscribe an item: "{\s\r"

Uninscribe an item: "}\r"

This will work in either a macro or keymap.

to the top

Documentation/Macros/Advanced macro techniques (last edited 2005-05-12 12:08:44 by TheFalcon)