1
DF Dwarf Mode Discussion / Re: Visitor Prisoner has stolen Artefact, how do I get it off him?
« on: September 22, 2022, 02:49:25 pm »
This problem has been giving me headache. Did some googling and reading, including this thread. I haven't been able to fully figure out what methods others have tried... honestly, I wish people were more specific when they write stuff like "DFHack dump it". What is that? Which command/script? Does it mean setting the dump flag on the item (actually possible to do in DF UI, I believe, but when it's a visitor's inventory they just ignore it, I think; makes sense that they would). Or does it mean something like transfer an item to the ground?
Anyhow, after failing to find any existing and working solutions, whether they do exist or not, I ended up writing my own script for this. The idea was to conveniently find and drop artifacts to the ground. Works like a charm for me, so far. I will share it here, so maybe it can be useful to someone else too. For dropping the items, it uses moveToGround call which is relatively common in various DFHack scripts, so I suppose it should not be too dangerous save corruption-wise. That being said, can't have too many save backups
.
https://pastebin.com/LzuQLe0V (dropartifact.lua)
Anyhow, after failing to find any existing and working solutions, whether they do exist or not, I ended up writing my own script for this. The idea was to conveniently find and drop artifacts to the ground. Works like a charm for me, so far. I will share it here, so maybe it can be useful to someone else too. For dropping the items, it uses moveToGround call which is relatively common in various DFHack scripts, so I suppose it should not be too dangerous save corruption-wise. That being said, can't have too many save backups
.https://pastebin.com/LzuQLe0V (dropartifact.lua)