Contents
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.
Set current action using (@) command in an action
{"@0\r\e}
@ - Interact with macros
0 - Enter a new action
- (action string)
\r - Enter the action
\e - Exit the macro editor
This will work when bound to a macro.
Set current action using (") command in an action
{"A:\r} - sets the current action.
" - Enter pref line
A: - Action line
- (action string)
\r - Enter the action
This works in either a macro or keymap.
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'.
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:
- {"A:\r"P:j\r} binds action to trigger 'j'.
- {"A:\r"P:j\r} binds action to trigger 'j'.
If we bind these 2 macros to different trigger keys, the action that is on key (j) can be swapped back and forth.
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.
Inscribe/Uninscribe an item in an action
(These action strings are enclosed in double quotes)
Inscribe an item: "{\s\r"
Uninscribe an item: "}\r"
- must be the inventory letter of the item, possibly preceded by a '/' to switch to the equipment list. You can't use digit labels for items with inscriptions that contain the command triggers '{' or '}', but you can use "@".
This will work in either a macro or keymap.
ToME Wiki