Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Macros: How to?  (Read 1199 times)

pisskop

  • Bay Watcher
  • Too old and stubborn to get a new avatar
    • View Profile
Macros: How to?
« on: August 25, 2014, 10:09:32 pm »

I am not the most experienced here, and I do have a want for them.. Things like assigning armor to 100 dwarves in arena.

So, how do I make a basic macro to suit my purposes?
Logged
Pisskop's Reblancing Mod - A C:DDA Mod to make life a little (lot) more brutal!
drealmerz7 - pk was supreme pick for traitor too I think, and because of how it all is and pk is he is just feeding into the trollfucking so well.
PKs DF Mod!

BenLubar

  • Bay Watcher
  • [BODY:HUMANOID_LEGLESS_6ARMS]
    • View Profile
Re: Macros: How to?
« Reply #1 on: August 25, 2014, 10:30:32 pm »

Make a dwarf with the armor you want, then ctrl+r and make another dwarf (the armor should be pre-selected at this point), then push ctrl+r again to stop recording, then ctrl+u to select the number of repetitions, then type 98 (the remaining number of dwarves) and then push ctrl+p.

Don't move the mouse off of Dwarf Fortress while the macro is running or it'll stop. It's an annoying bug, but we have to live with it for now.
Logged

Skullsploder

  • Bay Watcher
    • View Profile
Re: Macros: How to?
« Reply #2 on: August 25, 2014, 11:14:33 pm »

Can you save macros for later use?
Logged
"is it harmful for my dwarves ? I bet it is"
Always a safe default assumption in this game 

YAHG

  • Bay Watcher
    • View Profile
Re: Macros: How to?
« Reply #3 on: August 26, 2014, 05:04:16 pm »

Can you save macros for later use?
Yes, they are in data/init/macros are are text files, so you can edit out any error key presses if you think its worth it :).

nuget102

  • Bay Watcher
    • View Profile
Re: Macros: How to?
« Reply #4 on: September 11, 2014, 09:06:26 pm »

I didn't know about the number of repeats thing, that'll help with me making magma/water pump stacks. :P But the macros are a powerful thing, people often complain about not having quickfort and don't seem to realize that's is almost the exact same thing as the macros....
Logged
The fort where filth melts your skin! (updated 4/9/15)

Curiosity killed the cat.
Satisfaction brought it back.