Jump to content
Toggle menu
  • 3.1K articles
  • 4.4K files
  • 18 users
  • 91.5K edits
Ashenzari's Archive
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Macro: Difference between revisions

From Ashenzari's Archive
imported>CaptainHaddock
No edit summary
imported>Ge0ff
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Stub}}
Command macros allow you to combine common key sequences into a single command. To create a macro, Press either the '~' key or Ctrl-D, select 'm' to define a macro.


Command macros allow you to combine common key sequences into a single command. For example, you could set bind a macro to 'F1' to cast the spell in slot 'a', and aim it, with one keystroke instead of pressing 'z' then 'a' then 'f' each time.  
For detailed documentation on macros, see the [https://github.com/crawl/crawl/blob/master/crawl-ref/docs/macros_guide.txt macros_guide.txt].


For detailed documentation on macros, see the [http://gitorious.org/crawl/crawl/blobs/raw/master/crawl-ref/docs/macros_guide.txt macros_guide.txt].
== Examples ==


* 1 --> Za : Press key '1' to cast the spell in slot 'a'
* 2 --> ZnZm : Press key '2' to cast spells in slot 'n' and 'm' (i.e. for casting multiple buff spells in one keystroke).
* 7 --> Qr : Press key '7' to quiver item in slot 'r'
* 8 --> Fr : Press key '8' to fire a missile from slot 'r'
* 9 --> PiPj paired with 0 --> PjPi : Quickly switch between two rings/amulets in slots 'i' and 'j'
* Ctrl-? --> Ctrl-F. : Press Ctrl-? and then Enter to search for all items on the current floor.


== Online .macro files ==
== Online .macro files ==

Latest revision as of 11:38, 17 April 2022

Command macros allow you to combine common key sequences into a single command. To create a macro, Press either the '~' key or Ctrl-D, select 'm' to define a macro.

For detailed documentation on macros, see the macros_guide.txt.

Examples

  • 1 --> Za : Press key '1' to cast the spell in slot 'a'
  • 2 --> ZnZm : Press key '2' to cast spells in slot 'n' and 'm' (i.e. for casting multiple buff spells in one keystroke).
  • 7 --> Qr : Press key '7' to quiver item in slot 'r'
  • 8 --> Fr : Press key '8' to fire a missile from slot 'r'
  • 9 --> PiPj paired with 0 --> PjPi : Quickly switch between two rings/amulets in slots 'i' and 'j'
  • Ctrl-? --> Ctrl-F. : Press Ctrl-? and then Enter to search for all items on the current floor.

Online .macro files

Any online player's .macro file can be accessed directly (if they have set macros):

  • CAO: http://crawl.akrasiac.org/rcfiles/crawl-<version>/<name>.macro (Example)
  • CDO: http://crawl.develz.org/configs/<version>/<name>.rc (Example)
  • CSZO: http://dobrazupa.org/rcfiles/crawl-<version>/<name>.rc (Example)
  • <version> can be 0.11,0.12, trunk, git, etc.
  • <player> is the player's name (capitalization does make a difference).