Yanfly Customize Equip / Weapon Unleash... combining the two...?

This might be a bit of a tougher question, but here's what I'm trying to do...

Right now, an example of a weapon I have in my game is the "Tormentor", a sword that deals darkness elemental damage, and attacks four times. Under the properties of this weapon, I have it using the Weapon Unleash plugin to replace attack with a new skill called "Everlasting Darkness" - which hits a single target with four strikes, using a custom animation on each hit. I couldn't be happier with how this particular weapon works.

But I got to thinking, why create a ton of unique weapons, with tons of unique skills when I could have the player do it for me, probably with better results from a game play stand point. That's where Yanfly's Customize Equip comes in.

The dilemma is, I still want to action sequence all potential attack combinations because, frankly, it looks better - and I've been having issues with the "Attack Times +1" feature (namely characters attacking in the wrong direction).

So here's what I'm wondering if I can do...

Slot 1 on weapons can be reserved for changing the elemental properties of the weapon, which will also change the weapon's animation (i.e. a blue slash for water elemental, a red slash for fire elemental), as well as the weapon's image (using Yanfly's Weapon Animation plugin)

Slot 2 on weapons will determine how many times the weapon will strike the target, or how many targets it will hit, etc... better put, it will determine which Weapon Unleash skill to select.

End Result, if a player equips a "Quadra Strike Gem", they will swing four times... if while doing so, they equip a Flame Gem, the slashing animation will be red... no gem, and it will be just a plain slashing attack that hits four times.

Is something like this possible?

I have absolutely no idea where to get started with RPG Maker coding syntax, but my thought is to, if possible, have a couple of longish "if", "elseif" statements on each weapon.
To better rephrase my question - is it possible to use Yanfly's attachable augments to:

1: Change the <Weapon Unleash> command...

2: Change the weapon's attack animation?

Pretty sure this would achieve most of what I'm trying to accomplish.


This Tips & Tricks video should show how to alter the attack animation.

As for the Unleash augment, the simplest method would be to use a passive state in the augment to pass along the unleash effect.
Thanks a lot! That plugin totally hit my blindspot for some reason, but it's EXACTLY what I'm looking for!
One last thing in regards to this, since I have nearly everything else figured out at this point...

I want to make it so that there are custom cast animations depending on a certain type of augment being equipped. My thought process is that I should...

1: Make the augmented item call an auto passive state.

2: Have a check in the skill that says if STATE is active, then the Cast Animation becomes X.

3: Call the Cast Animation as needed via an action sequence.

I can handle 1 and 3, but I'm not sure how to go about #2, and if it would actually overwrite the default cast animation.

Edit: Would also like to change the skill icon at the same time if possible...
Not sure if the icon can be changed, but the cast animation can be done with some action sequences.

Under setup action:

if user.isStateAffected(stateID)
animation for augment
else
unaugmented animation
end

My understanding of action sequences isn't great, so it may need a bit more in there for everything to work correctly, but this is the basic code needed for the cast animation.
Not sure if the icon can be changed, but the cast animation can be done with some action sequences.

Under setup action:

if user.isStateAffected(stateID)
animation for augment
else
unaugmented animation
end

My understanding of action sequences isn't great, so it may need a bit more in there for everything to work correctly, but this is the basic code needed for the cast animation.

Thanks! I was thinking I'd need to redefine the "cast animation" and then call it in the action sequence. Didn't even dawn on me to just say what animation to play based on the state, which sounds a lot simpler. I guess that's why you're a "slightly crazy programmer" and I'm a villager.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-customize-equip-weapon-unleash-combining-the-two.79446/