Hey everyone -- I've read through SphereII's XPath posts and looked at other mods that use this method, but cannot seem to get it to work. I'm trying to add bones to chickens when you slaughter them. Here is what I currently have, and it really doesn't seem to be working:
The area in the entityclasses.xml where harvesting is handled has multiple "drop" events, and I'm not sure how to access those directly, so I just opted to "insertAfter" the unique line directly before the harvest section.
Any help is greatly appreciated!
Also, two (hopefully) basic questions:
1) Is there a way to view the XML that is in memory, to see if what you did accomplished the correct XML changes?
2) Is there a way to reload 7D2D XML's without restarting the game? I see an XUi reload, but not a full xml reload.
Code:
<configs>
<insertAfter xpath="/entityclasses/entity_class[@name='animalChicken']/property[@name='DeadBodyHitPoints']" >
<drop event="Harvest" name="resourceFemur" tag="butcherHarvest" count="1"/>
</insertAfter>
</configs>
Any help is greatly appreciated!
Also, two (hopefully) basic questions:
1) Is there a way to view the XML that is in memory, to see if what you did accomplished the correct XML changes?
2) Is there a way to reload 7D2D XML's without restarting the game? I see an XUi reload, but not a full xml reload.