So, just lost a dwarf to a strange mood..wanted shells.. I couldn't figure out how to spawn them, seems you can't spawn body parts. I've got a few turtles running around my fort now, but the fishers won't take them from there.
So I couldn't generate a shell in time..
so two questions:
1 - Is it possible to generate a shell in any way?
2 - Is there a script to fix an insane dwarf? (in this case melancholy)
If we have maps without anything to fish and caravans can't bring shells.. we at least need a fighting chance.
What I have done in the past is add [SHELL] to HORN_TEMPLATE , HOOF_TEMPLATE and CHITIN_TEMPLATE in material_template_default.txt . If applied mid game, reload and then butcher a new animal.
I suppose that if you wanted to, you can pick a body part item and change material_amount.shell to be greater than 0 or equal to stack size (I am not sure that is enough for it to work though).
What I intend to do in the future for shells is to use a domestic creature mod that adds a shelled creature that can be butchered for its shell and perhaps used for other things.
As for fixing a dwarf who is melancholy, you could try setting unit.mood = -1
dfhack.gui.getSelectedUnit().mood = -1