1006
Utilities and 3rd Party Applications / Re: DFHack 0.34.11 r2
« on: October 30, 2012, 08:41:46 am »Yeah, I have had moderate success with that. I figured that referenced post was outdated. It was like a year ago, and there have been 2 or 3 released since then.
I would be very appreciative if I could get that script you have.
After some search found it online:https://gist.github.com/2345207
Put in scripts directory in e.g. file named "resunit.lua"
then append this to that script:
Code: [Select]
local pos=df.global.cursor
for k,v in pairs(df.global.world.units.active) do
if v.pos.x==pos.x and v.pos.y==pos.y and v.pos.z==pos.z then
heal(v)
end
end
disclaimer: code is untested and could fail. Cursor (with watch/look/designate) should be on tile that creature was last alive.To use type "resunit" in dfhack.
This could be improved by finding unit by id, from corpse pieces.