macro-recording macro

A macro can start the macro recorder, and accept the macro when done.

The macro is assigned say F12

Some other macro does F12 ten times.

This allows repetitive actions that are either unique or not the same keys after a while to be used quickly when 'n' won't work.

This is useful for making piles of ID scrolls when you're an alchemist; or for stealing 99 arrows from a store one by one; for a speed adjust macro that garantees returning at max speed when done; etc.

Beware of starvation, talking uniques, and monsters when using macros that take 50+ turns to execute!!

Some macros will be interrupted by events, where just holding a key down might get you killed. Test before you trust!

macros with conditionals

When a macro cannot work for some reason (like a rod not having enough mana), the macro may have some letters at the end ignored (it's meaningless to the game at that point). This can be used to insert another macro there, conditionnal on success/failure of the first.

The automatizer can be used to inscribe the item with @0 when a condition is true, so that the macro does an action targetting this item only when this flag is true; then add escape to the macro.

The automatizer causes a more prompt to exist, and with cleverly lenghted prompts you can cause some macro letters to be ignored conditionally when the flag the automatizer tests for exists!

Example:

You want a macro to zap a rod of ID, and read a scroll of ID if it fails due to low mana or rod failure.

ID are scrolls auto-inscribed @r7

ID were rod is inscribed @z7

The macro does z70r70 (escape)

non-ID items with no inscriptions are auto-inscribed with @0 by the automatizer.

autopickup picks the item because it is marked @0

You start the macro:

the macro zaps the rod, ID item inscribed @0

Items that are ID and inscribed @0 are de-inscribed by the automatizer. Items still not ID are ignored.

the scroll is read, but sometimes has nothing to identify because there is no longer any @0 item.

The escape cleans up for the scroll being read when not necessary.

Macro ends. Here you have it, the advanced ID macro! It could be improved by reduced auto-inscribe type "spam".

speed adjust macro

The 'speed' macro does 'slower', then modifies itself by running other macro 'makesfaster' that makes 'speed' include 'faster'. (it may set search mode if you're not trying to be stealthy)

When you run it again, 'speed' macro does 'faster', then modifies itself by running macro 'makeslower' that makes 'speed' include 'slower'.

This deals with the fact going to the character screen and be forced to look at the current speed is irritating for mundane things like adjusting speed and garanteeing going back to max speed.

People usually want 'slower' for search mode, so this may be activated as part of 'slower'.

Perhaps in the future there will be a way to macro this easier, but developpers are not on it yet.

A useful macro for trap-removal is to set coward, attempt tp remove trap, press escape a lot, and then go back to berserk. A similar macro might be created for detecting traps(the current search mode doubles your chances I think, but when running that's the double of zero despite being slower).

other tricks

Please add. Macro writing is an artform much appreciated by wiki readers.

Macros And Inscriptions Exchange/Advanced macro tricks (last edited 2004-08-28 20:38:45 by modemcable119)