DF Modding / ITEMCORPSE Modding (special built-in functionality?)
« on: April 08, 2008, 06:09:00 pm »Does the sub-type field actually have a use, or is the only option "NO_SUBTYPE"?
Anyway, the USE_RACEGLOSS for the matgloss field seems to only work for some (built-in?) materials. For example, the [Treants] use the entry:
code:
[HAS_RACEGLOSS:WOOD]
[ITEMCORPSE:WOOD:NO_SUBTYPE:WOOD:USE_RACEGLOSS]
[Treants] will appear as "Mahogany treant", "Oak treant", etc.
However, when using a custom matgloss file, this functionality stops working, and treants (and there ITEMCORPSE remains) are undescriptive. I've tried creating a ''matgloss_treant.txt'' file and adding a few unique entries, like [MATGLOSS_WOOD:FOOBAR_TREE] and [MATGLOSS_WOOD:BAZ_TREE], and editing the Treant to:
code:
[HAS_RACEGLOSS:TREANT]
[ITEMCORPSE:WOOD:NO_SUBTYPE:WOOD:USE_RACEGLOSS]
...this doesn't seem to do anything. If I want the Treant to leave special remains, like my Foobar Tree, I have to change the creature tokens to:
code:
[HAS_RACEGLOSS:TREANT]
[ITEMCORPSE:WOOD:NO_SUBTYPE:WOOD:FOOBAR_TREE]
But here, I can only have "Foobar treants" that leave "Foobar logs"
Is it possible to create a custom matgloss file that will select random materials for my creatures, so it works like the default Treants do?