Go to the creature’s xdb file. For the example we are going to give the Titan the Chain Lightning spell. So open the xdb file and search for this part: [code]<KnownSpells>[/code] and under it there is something that looks like this:
<Item> <Spell>SPELL_ABILITY_CALL_LIGHTNING</Spell> <Mastery>MASTERY_ADVANCED</Mastery> </Item>
This is the code that gives Titans the Call Lightning ability. Notice that it’s called SPELL_ABILITY_CALL_LIGHTNING and that is because it is considered as a spell and needs to be acticated in combat, unlike Life Drain of Rebirth. The abilities that are considered spells are called Spell Abilities, and these are the ones you’re going to learn to add/change/remove in this guide. So now we’ll go to the spell directory to look at Chain Lightning, which is found here: GameMechanics\Spell\Combat_Spells\DestructiveMagic\Chain_Lightning_Hit.xdb. For any other spell, use this: GameMechanics\Spell\Combat_Spells\*School*\*Spell*.xdb. Now open the Chain Lightning xdb file and at the top you should see this:
<TableID>SPELL_CHAIN_LIGHTNING</TableID>
This is the ID for the spell. Now back in the Titan file, paste this:
<Item> <Spell>SPELL_CHAIN_LIGHTNING</Spell> <Mastery>MASTERY_EXPERT</Mastery> </Item>
This gives Titans the ability to cast Chain Lightning. To put other spells use this:
<Item> <Spell>SPELL_*Spell ID*</Spell> <Mastery>MASTERY_*Mastery*</Mastery> </Item>
Change the *Spell ID* to the ID that’s in the spell xdb file and the *Mastery* to the wanted mastery ( None, Basic, Advanced, Expert), than save and play. Adding abilities is the same as spells, but IDs are in GameMechanics\Spell\Creature_Abilities\*Town*\*Ability* and the part to put in the creature xdb is:
<Item> <Spell>SPELL_ABILITY_*Ability ID*</Spell> <Mastery>MASTERY_*Mastery*</Mastery> </Item>
In *Ability ID* put the ID from the xdb file and in *Mastery* put the mastery. Usually the mastery for abilities is Advanced.
If a creature doesn’t have any abilities, than instead of this:
<KnownSpells> <Item> <Spell>SPELL_*Ability/Spell*</Spell> <Mastery>MASTERY_*Mastery*</Mastery> </Item> </KnownSpells>
You’ll have this:
<KnownSpells/>
So all you have to do is change this what you have to this:
<KnownSpells> <Item> <Spell>SPELL_*Ability/Spell*</Spell> <Mastery>MASTERY_*Mastery*</Mastery> </Item> </KnownSpells>
Remember that you can add more spells/abilities.
NOTE: WHEN ADDING ABILITIES AND/OR SPELLS, REMEMBER THE <Item> IN THE BEGINNING AND </Item> IN THE END OR ELSE THE GAME WON’T WORK!!!
If you add spells, you also need to add mana so the spells can be cast. For the example, we’ll ad 15 mana to our Titans. Open the xdb file and look for this:
<SpellPoints>0</SpellPoints> <SpellPoints1>0</SpellPoints1> <SpellPoints2>0</SpellPoints2>
Change the 0 in <SpellPoints>0</SpellPoints> to 15. I have no idea what the other teo are for.
This is very simple. Go to Text\Game\Creatures\*Town*\*Creature*Abilities.txt and add the word Caster with a space behind it and a period after. Save and play.