• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

modding entity_classes

oakesbdog

Refugee
hi im just starting out making mods for 7d2d and im trying to figure out how to go about moding <passive_effect name="DamageModifier" operation="perc_set" value="1"/> to a higher value on my male character. but after a couple hours trying i cant figure out how to structure the mod. i was able to increase the stacknumber of a particular item but im baffled by the entity_classes section of the gamefile as far as making mods that affect the character directly.

this is what i tried but its not working for some reason.

<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect/[@name='damagemodifier']@value='1']/@value">100</set>

 
Last edited by a moderator:
Your code is not pathing correct

You need to do this

<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect[@name='damagemodifier' and @operation='perc_set']/@value]/@value">100</set>




This should target the baseline modifier by using the "and @operation" one.  If you want to target the head damage modifier, you would need to change operation from perc_set to perc_add

 
Last edited by a moderator:
<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect[@name='DamageModifier' and @operation='perc_set']/@value">100</set>






DamageModifier, not damagemodifier.

And it looks like I doubled up on the /@value at the end.

 
Back
Top