Thanks!
The only bug is carrying the stuff around forever.
I actually kinda agree there. It's the "I used my last metal bar to make an axe for woodcutting and the woodcutter can't find it" scenario that worries me. Or any other time you're trying to get something that's resource limited to the military.
It's not like I'm going to stop playing DF because something confusing happened, but that'd be rough on a new player. Including the player who made their first bolts for hunting or training, then we get another one of those "why didn't the marksdwarf start training" questions, only this time it's because Urist McLikesBronze stole them. (Which would actually be quite cool if there were community ownership and justice systems, etc to follow up on the theft, instead of it being a forum thread question and needing dfhack to fix. Also, there should be some kind of psychological build-up to a dwarf becoming a thief, so it's not just an artifact of the die roll of their preferences and every dwarf instantly being a thief every time they happen to see pear wood.)
That's why I call it a bug, because the rest of the game mechanics and systems that should go along with a dwarf choosing to become a thief aren't in place or usable enough.
For the dwarf that's starting to pick up and carry everything around, I've only been partially successful with dfhack.
What's worked so far:Highlight the item in the dwarf's inventory. (and repeat for each of the items they're stuck carrying)
item = dfhack.gui.getSelectedItem()
dfhack.gui.setOwner(item, nil)
What I was hoping would work next was:
Make sure the cursor is a valid position somewhere, and:
dfhack.items.moveToGround(item, cursor)But I get the error:
Cannot write field (global).moveToGround(): incompatible type in complex assignment.So at least the ownership was stripped, and the item forbidden. I think the dwarf might eventually drop the item on their own now? I'll let it run and see.