Trying to mod a reaction to use skulls. Will the following work or do I need to use something else?
[REAGENT:skull:1:SKULL:NONE:NONE:NONE]
No clue what I'm doing with this one. Can't find any examples.
Skulls, like bones, fall under the CORPSEPIECE item token. Since skulls are nothing but bones with a different bodypart name, the only way to distinguish between them is to assign a custom bone material/template to every creature's skull that has e.g. [REACTION_CLASS:SKULL], and use that in your reagent line to filter only skulls.
It's not as difficult as it sounds - if your creature tissues and materials are mostly unmodded, try something like this:
material_template_default.txt--
- Create a SKULL_TEMPLATE that's a copy of BONE_TEMPLATE with [REACTION_CLASS:SKULL] added
tissue_template_default.txt--
- Create a SKULL_TEMPLATE that's a copy of BONE_TEMPLATE, but whose material line refers to LOCAL_CREATURE_MAT:SKULL instead of :BONE
b_detail_plan_default.txt--
- Add a SKULL creature mat to [BODY_DETAIL_PLAN:STANDARD_MATERIALS] that refers to the new SKULL_TEMPLATE material template you created
- Add a SKULL tissue layer to [BODY_DETAIL_PLAN:STANDARD_TISSUES] that refers to the new SKULL_TEMPLATE tissue
- Change the SKULL material reference at the bottom of [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS] from 'ARG4' (bone) to 'SKULL', which should reference the SKULL tissue layer defined above
Repeat these steps for the CHITIN/EXOSKELETON body detail plans if you want their skulls to be usable by this reaction as well.