This section is designed to get you quickly using the most common keymaps and macros. Later sections explain the techniques used in more detail. These examples may not be the "best" ones to use in real play.



Definitions

First, you should know some fundamental terms:

to the top

Swap weapons

First, to inscribe your main weapon press the following keys in sequence:

  1. { Inscribe an object

  2. * Show inventory list

  3. / Switch to equipment list

  4. a Main weapon slot

  5. @w0 Wield when object 0 is chosen

  6. (Hit Enter)

Now inscribe the second weapon:

  1. { Inscribe an object

  2. * Show inventory list

  3. (Choose letter of second weapon)
  4. @w0 Wield when object 0 is chosen

  5. (Hit Enter)

Finally, ToME (unlike standard 'Vanilla' Angband) does not have an automatic trigger key to swap items, so it must be created. Select a key that is not being used for any other commands ('X' in the normal keyset is free - see this page, and create the following keymap:

  1. @ Interact with macros

  2. 8 Create a keymap

  3. X The trigger key for the keymap

  4. w0 Wield object 0

  5. (Hit Enter)
  6. (Hit Esc to exit the editor)

Now to swap weapons, just press the trigger key 'X' which is bound to the default keymap "w0". You may also press "w0" directly to swap.

to the top

Using the macro-recorder

You may find all the key-presses involved in ToME a long and time-consuming way to play the game. There are ways to speed up repeated commands by assigning them to a trigger key which can help. These are called macros or keymaps.

The most obvious use for these in ToME is for mage-types, especially sorcerors, who rely on their spells for just about everything. Typing mbaa*t in order to fire a Manathrust is fine if you only have to do it once or twice, but can quickly get annoying when you're doing every move. Far easier to assign that sequence of keypresses to a single trigger key which you can then press as many times as you need. (Until your SP run out of course!)

The easiest way to assign a macro is to use the macro-recorder. Start this by hitting the '$' key. You'll then receive a message telling you that the macro recorder has now started and you will need to press the '$' key a second time to stop the recorder. Preparation is all important here. It is best to be in a situation where you really NEED to cast the spell before recording the macro, so you use all the correct casting techniques and the game behaves as it would in a real (combat) situation (if the spell is to be generally cast in combat).

So assuming we're going to create a macro for manathrust. We've walked into a room and there's a nasty small kobold. What do we do?

  1. $ Start macro recorder

  2. *t target monster (or player if no monster in Line of sight)

  3. m open skills menu

  4. @ enters verbose mode

  5. Cast a Spell selects skill to use - CASE SENSITIVE

  6. @ enters verbose mode

  7. Manathrust casts spell from any book/spell container - CASE SENSITIVE

  8. $ end macro recorder

  9. y confirms macro keystrokes*

  10. (choose trigger key)
  11. @ opens macro saving/loading screen

  12. 2 appends macros to a file

  13. (choose a name for the file eg sorceror.prf)
  14. (Hit Enter)
  15. (Hit Esc to exit the editor)

This will search for the spell in all your books and equipment. If it is found, in either a book or a wielded item that contains a spell, then the spell is cast at the targetted monster.

This technique can be used for all the other skills as well (Use Mindcraft, Forge Ammo) etc.

*If you answer no the recorder continues recording keypresses. If you know you have made a mistake, you need to answer yes, and then not save the macro!

to the top

Prevent unwanted use of an item

Prevent "losing" an item by "accident":

  1. { Inscribe an object

  2. * Show inventory list

  3. (Choose an item)
  4. !d!k!v !d - don't drop (d), !k - don't destroy (k), !v - don't throw (v)

  5. (Hit Enter)

This prevents dropping, destroying, or throwing the item. You will be asked if you really want to do so. This is one of the most common inscriptions used, and one of the most useful.

Prevent "using" an item at all:

  1. { Inscribe an object

  2. * Show inventory list

  3. (Choose an item)
  4. !* Don't do anything with this item without verifying

  5. (Hit Enter)

This inscription is commonly used on Scrolls of Recall,...

to the top

Saving these macros and keymaps for reuse

Save the macros and keymaps for reuse by the current character:

  1. @ Interact with macros

  2. 2 Append macros to a file (optionally enter a filename: e.g. dump.prf or dump.txt)

  3. (Hit Enter to save the file with the filename shown)
  4. 6 Append keymaps to a file

  5. (Hit Enter to save the file with the filename shown)
  6. (Hit Esc to exit the editor)

This pref file will be automatically loaded any time a character with a name, race, or class matching the filename is loaded.

The "Append macros/keymaps to a file" commands will append ALL current macros/keymaps to the given file. They will not overwrite the file.

You should edit the file to remove macros that weren't added by you, to reduce clutter and prevent errors. Unfortunately the best way to do this is still "by hand". Open up the pref file in a text editor and remove the duplicate macros and keymaps added. These will be added after the headers "# Automatic macro dump" and "# Automatic keymap dump". The ones you added will be the very last ones in the list. The others are the entire set of keymaps and macros from all other prefs loaded. (This step isn't necessary, but is very helpful)

to the top

Documentation/Macros/Quick start tutorial (last edited 2008-05-05 20:37:39 by draeath)