April 30, 2017, 05:53:06 AM

Author Topic: Corpse butchering in xml files ?  (Read 1003 times)

Kaiaphas

  • Newbie
  • *
  • Posts: 10
    • View Profile
Corpse butchering in xml files ?
« on: November 23, 2015, 11:27:12 AM »
Hello,
I'm searching without succes since few hours how I can change the butchering products. Let's say I want my yaks to give me meat, bones, a skull and horns.
How can i add the horns in the butchering products ?

Thanks for any help !

Scmadar

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Corpse butchering in xml files ?
« Reply #1 on: November 23, 2015, 07:19:26 PM »
Hello,
I'm searching without succes since few hours how I can change the butchering products. Let's say I want my yaks to give me meat, bones, a skull and horns.
How can i add the horns in the butchering products ?

Thanks for any help !

In bodypart.xml, there is a definition for the Yak head
Code: [Select]
<Item>
    <ID>YakHead</ID>
In the head, there is a skull
Code: [Select]
     <Contains>
      <Name>skull</Name>
      <MaterialID>YakSkull</MaterialID>
      <BodyFunction>Structure</BodyFunction>
      <HarvestedItem>Skull</HarvestedItem>
I think you could just add another <contains> tag in the head (so right under the skull one), and add in some new definitions for the horns.

Code: [Select]
   <Contains>
     <Name>horn</Name>
     <MaterialID>YakSkull</MaterialID>
     <HarvestedItem>Horn</HarvestedItem> <!-- This is a new, undefined item; you'll have to add that too (in items.xml, and make a sprite for it, etc) -->
     <Symmetrical>true</Symmetrical>
   </Contains>
You could even mess around with additional tags, like NaturalWeapon and the weighting of the hit chances to make the horns larger (get hit more often, taking hits that would be directed at the head), stronger, act as super strong weapons, etc. Modding is fun stuff.

Please note that I have not tried any of this myself, but it should work

Kaiaphas

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Corpse butchering in xml files ?
« Reply #2 on: November 24, 2015, 01:41:23 AM »
thanks a lot for your help Scmadar, even if it doesn't work, at least you manage to find something interesting  ::)