Jump to content

modding entity_classes


Recommended Posts

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>

Edited by oakesbdog
added more information (see edit history)
Link to comment
Share on other sites

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

Edited by BFT2020 (see edit history)
Link to comment
Share on other sites

<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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...