Modding Death magic to be available to Kingdom faction

I was trying to create a mod to make Death magic available to kingdom faction + make it so that i could actually level it up.  (in the current game, even if i consume an empire sovereign/champion with death magic, and gain a level, it would never level up on its own)

So, after reading up on modding, I came up with the following:

1 - copy 5 death magic <AbilityBonus>...</AbilityBonus> elements (one for each level) from CoreAbilities.xml to a new .xml file in MyDocuments/.../FallenEnchantress/Mods/

2 - modify this new file by removing <Prereq>...</Prereq> tags that contain <Type>Allegiance</Type><Attribute>Empire</Attribute> from the 5 items from #1

3 - create new Faction/Sovereign + start new game to test this...

And ... it did not work, I can't get Death magic to show up in sovereign creation page, nor can I get to level up (level 3 for Death2) if I update the sovereign xml file to give him Death1.  I know that the game is reading this new xml file (because i can change other things, like <DisplayName> and that change is visible in new games. Which leads me to believe that I am missing some other thing that I need to modify...

So, anyone knows what am I missing/is it possible to do this?

 

2,846 views 2 replies
Reply #1 Top

Abilitybonus and abilitybonusoption aren't overwritten when you do a new one from /mods/ (see https://forums.elementalgame.com/434780). The prereq is still in effect. You'll need to modify the coreabilities.xml file, or create a new series of traits and spells.

 

Reply #2 Top

That worked (modifying the real file), thanks.  Most unfortunate that this change would have to be re-applied after patches and such (at least those that end up modifying that .xml file), but... at least the changes themselves are minimal.