This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Say you want to run multiple commands at once... or you at having the darnedest time making your command prompt/terminal obey. Here's some quick tips. | |
:lua dfhack.run_command "createitem HELM:ITEM_HELM_HOOD CREATURE:SPIDER_CAVE_GIANT:SILK 2" dfhack.run_command "createitem HELM:ITEM_HELM_HELM INORGANIC:STEEL 1" dfhack.run_command "regrass" | |
multicmd createitem HELM:ITEM_HELM_HOOD CREATURE:SPIDER_CAVE_GIANT:SILK 2; createitem HELM:ITEM_HELM_HELM INORGANIC:STEEL 1; regrass | |
Also there's the external tool "dfhack-run" (which'll even allow the help messages to run... 'dfhack-run ?' or the command list 'dfhack-run ls -a'). You'll need to0 put the commands into a batchfile (.bat on windows) or a file with execution parameters for osx/linux (chmod +x). | |
Just like with lua or ruby you'll need to select any targets before you run dfhack-run. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some of this you're likely already passed but... it's late and my brain is demanding I try to be a tad thorough | |
change to your dfhack directory... For Example | |
cd /p/DFHack-40.04 | |
it should show (Master) on the end like so: | |
Cackling@Bogeyman-PC /p/DFHack-40.04 (Master) | |
# | |
cd library/xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Civvie( Ex)plosion based on catsplosion | |
// By Zhentar , Further modified by dark_rabite, peterix, belal | |
// This work of evil makes Civilians (aka Dwarves) pregnant | |
// and due within 2 in-game hours... | |
// for 34.11 | |
#include <iostream> | |
#include <cstdlib> | |
#include <assert.h> | |
#include <climits> |