Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Can Quickfort Query mode perform sequence on multiple squares?  (Read 1511 times)

Antikythera

  • Bay Watcher
    • View Profile
Can Quickfort Query mode perform sequence on multiple squares?
« on: January 23, 2015, 08:28:12 am »

part of my normal bedroom designation process involves setting an adjacent door as internal, designating the bed as a room, then setting the door back to external before moving to the next bed/door in the corridor. this allows each dwarf to have his own 'room' with chest and cabinet but to also have dormitory style safety.
Code: [Select]
w w w w w w w w w w w w w
, , , , , , , , , , , , ,
, b , b , b , b , b , b ,
w w d w d w d w d w d w d

I'm using quickfort for the first time and have the dig and build stages working but I'm not sure how to do the query stage. Or if it is even possible to do this.

can anyone help?
Logged

Antikythera

  • Bay Watcher
    • View Profile
Re: Can Quickfort Query mode perform sequence on multiple squares?
« Reply #1 on: January 23, 2015, 11:24:53 pm »

without yet finding a way to do this in Quickfort I resorted to writing a macro. The relevant macro code is below.

Code: [Select]
BUILDJOB_DOOR_INTERNAL
End of group
CURSOR_DOWN
End of group
CURSOR_LEFT
End of group
BUILDJOB_BED_SIZE
End of group
SECONDSCROLL_DOWN
End of group
SECONDSCROLL_DOWN
End of group
SELECT
End of group
CURSOR_RIGHT
End of group
CURSOR_UP
End of group
BUILDJOB_DOOR_INTERNAL
End of group

my actual macro is slight variants of this (different cursor movement) repeated 48 times with some positioning movement also.
I wasn't able to find any info on using loop code structure in macros so much of it is repeating the same code over and over.
« Last Edit: January 24, 2015, 01:05:35 am by Antikythera »
Logged

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: Can Quickfort Query mode perform sequence on multiple squares?
« Reply #2 on: January 27, 2015, 06:03:12 pm »

You'd have to use two blueprints, the second just setting the doors back to internal.
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.