Jump to content

Seeking clarification for Items.xml edits.


KingMigi

Recommended Posts

I posted this in Questions several days back, and despite a few views there've been no answers so far. I figured maybe I'd have a better shot at getting one if I posted it here.

 

Hello! I just needed some clarification on the BlockDamage property in the Items.xml file.

 

My goal is reducing block damage from zeds and creatures. I don't know coding, but I know how to peruse and change XML files.

 

Previously I had edited each creature and zed individually and changed the property "BlockDamage" under "Base Effects" to the desirable number.

 

In-game, I had felt like these changes weren't accurately reflected in the damage blocks took from these sources, but it did seem to impact their damage.

 

For instance, the "meleeHandZombie01" entry.

 

<item name="meleeHandZombie01">
<property name="Extends" value="meleeHandMaster"/>
<property name="CreativeMode" value="None"/>
<property class="Action0">
	<property name="Buff" value="buffInjuryBleeding,buffIllInfection0,buffInjuryStunned1"/>
</property>
<effect_group name="Base Effects">
	<passive_effect name="ModSlots" operation="base_set" value="0"/>
	<passive_effect name="EntityDamage" operation="base_set" value="10" tags="primary"/>
	[b][i]<passive_effect name="BlockDamage" operation="base_set" value="16" tags="primary"/>[/i][/b]
	<!--<passive_effect name="AttacksPerMinute" operation="base_set" value="75"/>  A16 .8 -->
	<passive_effect name="BuffProcChance" operation="base_set" value="0.15" tags="buffInjuryBleeding"/>
	<passive_effect name="BuffProcChance" operation="base_set" value="0.10" tags="buffIllInfection0"/>
	<passive_effect name="BuffProcChance" operation="base_set" value="0.15" tags="buffInjuryStunned1"/>
</effect_group>
</item>"

 

This is how I would edit it.

 

<passive_effect name="BlockDamage" operation="base_set" value="16" tags="primary"/>

to

<passive_effect name="BlockDamage" operation="base_set" value="4" tags="primary"/>

 

Is this incorrect?

 

 

I've also noticed there is a "meleeHandMaster" entry at the top of this section, with a "DamageBlock" property. And it seems some entries, such as "meleeHandZombie01" reference it. Others, such as "meleeHandZombieFeral", reference "meleeHandZombie01" instead.

 

I'm now confused on which entry to be editing to accurately modify damage to blocks.

 

Is the "DamageBlock" property of "meleeHandMaster" somehow informing the damage value in "BlockDamage" seen in individual zed entries that reference it?

 

How do I properly edit block damage on a per creature basis, and know they'll be doing the damage I've set?

Link to comment
Share on other sites

Editing the config is a real pain because when they release an update (which will happen a lot with A17) you have to make your changes again. Here is a a modlet I created to do what you are looking for. You can edit Zombie damage to blocks as well as to players. It also allows you to set the chance of bleeding out.

 

It will keep you from making your changes over and over. It's still possible they break it by changing the config files enough, but less likely.

 

Each line sets a value and at the end tells you what the default value is.

 

If you dont want to edit a value you can set it to the default (so you can edit later) or just delete the line entirely.

 

 

 

 

<set xpath="/items/item[@name='meleeHandZombieFeral']/property[@class='Action0']/property[@name='DamageBlock']/@value">20</set> <!-- Default Value: 32 -->

 

In the example above meleeHandZombieFeral does 20 Block Damage and the Default was 32. Edit as needed.

 

https://www.dropbox.com/s/ixa4tf0fi44udr5/X51_Weaker_Zombies.zip?dl=0

 

Unzip that file to your /mods folder in the root of the 7DTD game directory.

Link to comment
Share on other sites

  • 4 weeks later...
Editing the config is a real pain because when they release an update (which will happen a lot with A17) you have to make your changes again. Here is a a modlet I created to do what you are looking for. You can edit Zombie damage to blocks as well as to players. It also allows you to set the chance of bleeding out.

 

It will keep you from making your changes over and over. It's still possible they break it by changing the config files enough, but less likely.

 

Each line sets a value and at the end tells you what the default value is.

 

If you dont want to edit a value you can set it to the default (so you can edit later) or just delete the line entirely.

 

 

 

 

<set xpath="/items/item[@name='meleeHandZombieFeral']/property[@class='Action0']/property[@name='DamageBlock']/@value">20</set> <!-- Default Value: 32 -->

 

In the example above meleeHandZombieFeral does 20 Block Damage and the Default was 32. Edit as needed.

 

https://www.dropbox.com/s/ixa4tf0fi44udr5/X51_Weaker_Zombies.zip?dl=0

 

Unzip that file to your /mods folder in the root of the 7DTD game directory.

 

 

 

Do you happen to know the difference between "DamageBlock" and "BlockDamage"? I notice in your modlet, one is set to 12, while the other is set to 10. What's the difference?

 

Also, will this effect the players damage to blocks at all?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...