- 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.
Difference between revisions of "User:Otherdwarf"
Otherdwarf (talk | contribs) m |
Otherdwarf (talk | contribs) |
||
Line 4: | Line 4: | ||
<br clear="both" /> | <br clear="both" /> | ||
− | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | + | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
− | ; mineshaft.ahk ; | + | ; mineshaft.ahk ; |
− | ; this is a ahk script to place exploratory mine shafts. ; | + | ; this is a ahk script to place exploratory mine shafts. ; |
− | ; press d and place the cursor ; | + | ; press d and place the cursor ; |
− | ; in the top right corner of the area to be explored ; | + | ; in the top right corner of the area to be explored ; |
− | ; then use ctrl+s to run ; | + | ; then use ctrl+s to run ; |
− | ; ; | + | ; ; |
− | ; NOTE: ; | + | ; NOTE: ; |
− | ; change variables x, y and depth to suit your conditions ; | + | ; change variables x, y and depth to suit your conditions ; |
− | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | + | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
x = 2 ;number of shafts to be placed in the x and y axis | x = 2 ;number of shafts to be placed in the x and y axis |
Revision as of 20:30, 25 March 2008
My talk page
an autohotkey script for exploratory mineshafts:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; mineshaft.ahk ; ; this is a ahk script to place exploratory mine shafts. ; ; press d and place the cursor ; ; in the top right corner of the area to be explored ; ; then use ctrl+s to run ; ; ; ; NOTE: ; ; change variables x, y and depth to suit your conditions ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
x = 2 ;number of shafts to be placed in the x and y axis y = 2 depth = 14 ;depth of each shaft (number of levels to be explored below current level)
^s:: loop %x%{ loop %y%{ Send j ;select down stair Send {Enter} Send {Enter} ;place it Send i ;select up-down stair Send +. ;down(one level) Loop % depth-1{ ;change here if other fort Send {Enter} Send {Enter} ;place the stair Send +. ;down (one level) } Send u ;select upward stair Send {Enter} Send {Enter} ;place it loop %depth%{ ;move to original level Send +, ;up (one level) } Send {down} Send {down} Send {down} } loop %y%{ Send {up} Send {up} Send {up} } Send {right} Send {right} Send {right} } return