Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [WIP] encrust_control, script for control of gem jobs  (Read 652 times)

kr0pper

  • Bay Watcher
  • Coding is fun!
    • View Profile
[WIP] encrust_control, script for control of gem jobs
« on: August 10, 2014, 10:17:42 am »

Do you like these masterfully worked images of dwarves in diamods and clear tourmaline on your platinum sarcophagi?

Me too.
But I'm tired to press A-E-F-R again and again.

So, an idea for script:
1. find some gems in items
2. add encrust job to workshop

Tested on DFHack 0.34.11-r5

https://www.dropbox.com/s/n7e6980v4oiih9y/encrust_control.lua


Usage:
- put script to /hack/scripts/
- assign your legendary gem setter to jeweler's workshop
- run "encrust_control" for help


Limitation:
Work still in progress, so script tries to pause the game and temporary disable workflow plugin for unprotect repeated jobs.


UPDATE 2014-08-24:

New command which add "cut gems" job to selected workshop.
Gems taken from linked stockpile.

Using it in my current game on 34.11, and no problems found.
« Last Edit: August 24, 2014, 12:57:11 pm by kr0pper »
Logged