I've got 3 states in my game that can add elements to a character's normal attack - Enflame (fire), Enfrost (ice) and Envolt (lightning). Thing is, this element shift isn't reflected in the character's attack animation. I have animations for each of these elements (for example, a "fire slash" animation), and while I know that the simple answer is to change the Attack Skill to a copy of the normal attack but with an element (and respective animation) attached, there's something that complicates this solution: Each character can use multiple weapon types, with different types of animations.
So for example, the Rogue of the party can wield Swords, Axes and Bows. Swords and Axes use a slashing animation, but Bows use an arrow shooting animation. If she uses Enflame, giving her a fire slash animation would work for the Swords and Axes, but not if she's equipped with a Bow. So just setting the attack skill to a fire slash animation won't work. I have all of the animations I need (fire, ice and lightning versions of slashes, strikes, pierces and arrows), but I don't know how to tell the game what to set the skill/animation to based on whichever weapon type is equipped. I also need to account for what animation to play if the character uses one of these element-changing spells on themselves, but is unarmed.
As it stands, you can only cast these element-changing spells on yourself. Though I've also considered allowing enemies to cast them on you as a dirty trick (for example, an enemy that absorbs fire casting Enflame on you, so that your normal attacks would heal it), but I'm not certain if I'll implement that or not.
So... yeah, how can I make this work?
So for example, the Rogue of the party can wield Swords, Axes and Bows. Swords and Axes use a slashing animation, but Bows use an arrow shooting animation. If she uses Enflame, giving her a fire slash animation would work for the Swords and Axes, but not if she's equipped with a Bow. So just setting the attack skill to a fire slash animation won't work. I have all of the animations I need (fire, ice and lightning versions of slashes, strikes, pierces and arrows), but I don't know how to tell the game what to set the skill/animation to based on whichever weapon type is equipped. I also need to account for what animation to play if the character uses one of these element-changing spells on themselves, but is unarmed.
As it stands, you can only cast these element-changing spells on yourself. Though I've also considered allowing enemies to cast them on you as a dirty trick (for example, an enemy that absorbs fire casting Enflame on you, so that your normal attacks would heal it), but I'm not certain if I'll implement that or not.
So... yeah, how can I make this work?