1
DF Modding / Re: Runesmith - A DC like tool
« on: June 01, 2012, 08:57:31 pm »This is *dangerous* to use. It can end up causing the siege status to get stuck if you use it on invaders. Generally, it's better to encase creatures in obsidian (which can be done with the liquids command). This is also why DFHack doesn't have a kill command - it's just too easy to get that stuff wrong.Nope, can't find the kill command in dfhack. Do you have a fancy plugin installed for it? There's "die" but of course that's just used to stop the Dwarf Fortress process without saving.
This post may have what you need.
In particular....
unit=dfhack.gui.getSelectedUnit()
unit.flags1.dead=true
which, when I just tried it in 34.10, killed a dwarf instantly, and removed the corpse, too. This may or may not work on undead, but it would appear to be a step in the right direction.
Why didn't I think of that? Egg and my face are in alignment.