v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Valdemar"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 +
== Valdemar's Macros ==
 +
 +
These macros all use [http://www.autohotkey.com AutoHotKey], a free keyboard scripting library.
 +
 +
 
__TOC__
 
__TOC__
  
==Bedroom-Builder Macro==
+
===Bedroom-Builder Macro===
This macro will help you build large bedroom complexes. To use, copy-paste it into a new .ahk file and copy-paste the .ini file above it into an file called "bedroom.ini". The keys in the ini file should be fairly self-explanatory, but some are a bit tricky.
+
This macro will help you build large bedroom complexes. To use, copy-paste it into a new .ahk file and copy-paste the .ini file above it into an file called "bedroom.ini".  
 +
 
 +
Pressing Alt-R will run the script and place the rooms.
 +
 
 +
[[User:Valdemar/Bedroom Macro|View/Download Code]]
 +
 
 +
====Ini Modification====
 +
You can customize the script by modifying the bedroom.ini file. There is no need to reload the script when you modify the .ini file, it will reload it each time you press Alt-R. Most of the keys in should be fairly self-explanatory, but some are a bit tricky.
  
 +
=====Door Position=====
 
For "door position", the number you type will be the column doors are mined out in, 1 being the left-most one.
 
For "door position", the number you type will be the column doors are mined out in, 1 being the left-most one.
  
Line 13: Line 26:
  
 
This 3x3 room will have doors dug out at A if you specify 1, B if you say 2, and C if you say 3. Which A,B,or C is dug out depends on which side you specified doors to be dug out, of course.
 
This 3x3 room will have doors dug out at A if you specify 1, B if you say 2, and C if you say 3. Which A,B,or C is dug out depends on which side you specified doors to be dug out, of course.
 
+
=====Build Direction=====
 
For "build direction" and "row direction", you enter a direction as a number. The direction will be the direction new rooms/rows are built after the first one.  
 
For "build direction" and "row direction", you enter a direction as a number. The direction will be the direction new rooms/rows are built after the first one.  
  
Line 34: Line 47:
  
 
If row direction was bottom to top, you would place the cursor at "Z" to create the pattern.
 
If row direction was bottom to top, you would place the cursor at "Z" to create the pattern.
 
 
 
Pressing Alt-R will actually run the script and place the rooms. There is no need to reload the script when you modify the .ini file, it will reload it each time you press Alt-R.
 
 
 
[[User:Valdemar/Bedroom Macro|View Code]]
 
  
 
[[User:Valdemar/Bedroom Macro Examples|More Examples]]
 
[[User:Valdemar/Bedroom Macro Examples|More Examples]]
  
  
==Rewall Macro==
+
===Rewall Macro===
 
This is a macro to aid with rewalling. To use, copy-paste the script into a new .ahk file and run the script with AutoHotkey. Then, in Dwarf Fortress, press b-C-w, move the cursor to where you want to start the wall, and hold Ctrl-Shift-Arrowkey, using the direction you want to rewall in. To build floors, press b-C-f instead, and use Ctrl-Alt-Arrowkey. To stop, just release the keys.
 
This is a macro to aid with rewalling. To use, copy-paste the script into a new .ahk file and run the script with AutoHotkey. Then, in Dwarf Fortress, press b-C-w, move the cursor to where you want to start the wall, and hold Ctrl-Shift-Arrowkey, using the direction you want to rewall in. To build floors, press b-C-f instead, and use Ctrl-Alt-Arrowkey. To stop, just release the keys.
  
 
The script will use the first material in the list. I suggest you create a stockpile near the construction site that only accepts the item you wish to build with and temporarily forbid any nearby materials you don't want to build with.
 
The script will use the first material in the list. I suggest you create a stockpile near the construction site that only accepts the item you wish to build with and temporarily forbid any nearby materials you don't want to build with.
  
[[User:Valdemar/Rewall Macro|View Code]]
+
[[User:Valdemar/Rewall Macro|View/Download Code]]

Revision as of 19:47, 22 November 2007

Valdemar's Macros

These macros all use AutoHotKey, a free keyboard scripting library.


Bedroom-Builder Macro

This macro will help you build large bedroom complexes. To use, copy-paste it into a new .ahk file and copy-paste the .ini file above it into an file called "bedroom.ini".

Pressing Alt-R will run the script and place the rooms.

View/Download Code

Ini Modification

You can customize the script by modifying the bedroom.ini file. There is no need to reload the script when you modify the .ini file, it will reload it each time you press Alt-R. Most of the keys in should be fairly self-explanatory, but some are a bit tricky.

Door Position

For "door position", the number you type will be the column doors are mined out in, 1 being the left-most one.

█ABC█
A...A
B...B
C...C
█ABC█

This 3x3 room will have doors dug out at A if you specify 1, B if you say 2, and C if you say 3. Which A,B,or C is dug out depends on which side you specified doors to be dug out, of course.

Build Direction

For "build direction" and "row direction", you enter a direction as a number. The direction will be the direction new rooms/rows are built after the first one.

████████████████
█BB█BB█XC█AA█AA█
█BB█BB█CC█AA█AA█
████████████████
█BB█BB█CC█AA█AA█
█BB█BB█CC█AA█AA█
████████████████
█BB█BB█ZC█AA█AA█
█BB█BB█CC█AA█AA█
████████████████

X represents the designation cursor when the macro is run.

For this pattern, size is 2x2, number of rooms is 3, number of rows is 3, and row direction is top to bottom.

If you specify left to right, the rooms marked C and A will be dug. For right to left, the rooms marked C and B will be.

If row direction was bottom to top, you would place the cursor at "Z" to create the pattern.

More Examples


Rewall Macro

This is a macro to aid with rewalling. To use, copy-paste the script into a new .ahk file and run the script with AutoHotkey. Then, in Dwarf Fortress, press b-C-w, move the cursor to where you want to start the wall, and hold Ctrl-Shift-Arrowkey, using the direction you want to rewall in. To build floors, press b-C-f instead, and use Ctrl-Alt-Arrowkey. To stop, just release the keys.

The script will use the first material in the list. I suggest you create a stockpile near the construction site that only accepts the item you wish to build with and temporarily forbid any nearby materials you don't want to build with.

View/Download Code