Tutorial: Modifying Spells and Spell Visual Effects

Originally this thread was posted by me to ask for help, but I was able to figure things out.

So you want to modify a spell or its visuals? Here's how.

MODIFY VISUALS - STEP 1: Get your effect
      
First thing you'll be doing is locating your files to get everything set up. Note that this is not a Particle Cauldron tutorial. I will assume
that you have already created a particle effect. First, your particles by default will be saved to "My Documents\My Games\Elemental\Effects". Remember that your particle effect will not be properly named by the Cauldron unless you HIT ENTER after typing the effect's name in. Do not use spaces in the name --use underscore if you must have that king of seperation. I like to use camelCase.

This effect isn't going to do anything from this folder. Open up your Elemental install directory: C:\Program Files\Stardock Games\Elemental is the default, and COPY the effect's xml file into the Mods folder. You don't want to move it; otherwise you'll need to move it back if you want to edit it again later. Now we need to setup the game's spells to recognize and use your new effect.

STEP 2: Hook it up
       You'll need to copy the appropriate spellbook xml files into the Mods directory. Get them from Elemental\data\English. You'll need both CoreSpellBooks.XML and the specific XML file that coresponds to the spell you're trying to mod. In my case, I wanted to mod Melting Touch, so I also copied CoreSpells_FIRE_Tactical.XML. If you wanted to mod, say, Summon Nature's Ally instead, you would use CoreSpells_EARTH_Strategic.XML, and so on.

Once you have both files copied into your Mods folder, it's time to go in and hook it up. Remember: The file names do not matter, as the game handles everything using the "internal name" tags.  Here's what my Fire spellbook XML looked like.

Image and video hosting by TinyPic 

But I'm not done yet. I now need to edit CoreSpellBooks so that my unique spell InternalName, "MyMeltingTouch", matches up. The SpellDefEffect section has EffectName set as 'BlastFlare' -- this is what I named my particle effect. By default, the particle effect's InternalName matches its filename, so I'm all set in this department.

Image and video hosting by TinyPic

Perfect!

STEP 3: Test it out!
       The Cauldron can only do so much when it comes to previews -- you need to see the spell in use to really see  how it looks. For the test to work properly, you MUST start a new game. I have myself a 'testign sovereign' set up with all spell books, and all of the professions/talents/equipment that gives move. With 5 move, finding an opponent quickly is easy, especially with a Tiny landmass and every CPU faction playing! Here's how my Blast Flare effect turned out!

 

 Not bad!

Hope this tutorial has been helpful for all aspiring spell makers and pyrotechnicians out there. Keep an eye out for my 'Arcane Power!' Mod, which will revamp and sexify most of the game's spells. Thanks for reading, let me know how it works for you.

45,519 views 10 replies
Reply #1 Top

Sorry for the double post, but I even tried overwriting the old spellbook and effect files right in the main install directory. No effect! If even that doesn't work, how on earth DO I change a spell's particle effect?

Edit: Ugh, how confusing. Suddenly the old and new effects are appearing on top of each other!

Edit2: Okay, so I finally settled on which location to use -- it's the Mods folder, with no need for the data directory structure inside. Just dropped the spellbook right into mods, and it works. However, I'm still getting the pesky dual effects. Burn_Enemy's particles play right overtop of my custom job.

Edit3: I was able to eliminate the duplicate particle effect by changing the spell's internal name to prevent conflicts.

Reply #2 Top

Are you able to modify your xml and then see the new effect in a save game or are you having to start a new game to see things? So far I have not see a mod take effect in a save game. I have a few new spells I placed in the mod folder, but they don't show up in game. Hopefully we will see a more detailed mod guide from Stardock soon after the Day 0 update. As to the duel effects, does the spell happen to call more then one effect?

Reply #3 Top

im also having the dual effect problem, its like the modded xml doesn't overwrite the effect in the original file and both of them are executed at the same time x_x

 

 

Reply #4 Top

i got it working perfectly by creating a whole new spell, sadly you have to start a new game for the change to take place, we need at least some kind of custom tactical battle to test the spell :/

ps  i still have no idea on how to replace an existing spell effect without having bot of them starting

Reply #5 Top

Modified the post to function as a tutorial. Hope this helps!

Reply #6 Top

Nice tutorial!  k1

Thanks. B)

Reply #7 Top

Wow that looks amazing. I am looking forward to your mod :D

Reply #8 Top

Really Awesome Man!!!! Great Tut on adding spell effects. Very well done. Karma for you :)

Reply #10 Top

Thanks for the great tutorial! I am running windos 7 64 and I can't seem to find the mods folder. Where exactly is it on your system so I can ceate it. It is not in my Elemental Install Folder, nor in my MyDocuments/Elemental\bla bla folder.

 

Thanks!

BTW:Love the effect