Noob Modding Question


Good Morning

When modding core files like corespells.xml, do you place the revamped file in the /mods/ directory? In other words, will LH first look in the mods directory for upgraded core files, or do I have to edit the existing files in the data/english directory?

Thanks 

8,216 views 4 replies
Reply #1 Top

The game does not first looks in /mods/ folder, if there's a CoreSpells.xml there and in install directory it will read both (the installation file before the mod file).

Depending on what you want to do, it may be easier to overwrite the installation file, or it may be easier to create a new file with spell info in the mods folder.

If you do decide to copy a spell into the /mods/ folder you need to keep in mind that both <Prereq> tags and <SpellResourceCost> are maintained from the installation file spell definition. All other tags are forgotten when overwriting using this method. Therefore, if you copy the whole spell from install to /mods/, you will end up with double the mana cost.

Since you cannot make the game "forget" prereqs for spelldefs, it may suit you better to just edit the install file instead.

 

Reply #2 Top

I've been overwriting at the moment because I wasn't sure. Thanks for verifying.

Current balance changes that I've done are as follows:

- Increased Propaganda from +1gildar/essence back to its orginal +2gildar/essence  -- my taxratedef mod makes the unrest penalties just a smidge higher, resulting the in the requirement of a tad more gold

- Reduced the Soulspark casting cost from 16 mana to 10 mana -- at 16, the ability was useless. at 10, I'm finding I can use the ability in a pinch, but would rather not lose the mana if I don't have to.

- Increased Adventurer's Boon ability from +8 HP to +10 HP -- Heroes needed the boost. They are too weak as is.

- Added ranged attack attribute to the Staff of the Furnace -- Going to go through all the magical staves and gives them ranged attack.

 

About that last one....do I just have to copy the ranged game attribute into the associated weapon?

            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>UnlockRangedAction</Attribute>
                <StrVal>BowAttack_Flaming</StrVal>
                <Provides>Ranged attack</Provides>
            </GameModifier>

Also, in the game, the weapon description usually has qualifiers descibed "This weapon does ranged attack". Where do I find/insert that?

 

 

Reply #3 Top

Pretty much yes. The tooltip you see in-game is what you have in the modifier in the <Provides> tag.

Reply #4 Top

Quoting Heavenfall, reply 3
Pretty much yes. The tooltip you see in-game is what you have in the modifier in the <Provides> tag.

Excellant.

Thanks!