How do I...implement critical hit, and elemental weakness sounds?

I want to make it to where, when a critical hit lands, an extra sound effect plays to indicate it happened.

To add to this, I would like something similar to when An elemental weakness gets played against an opposing element. (What I mean is, if a fire element were to strike something like ice, and ice is weak to fire, it plays a special sound effect when the damage pop-up occurs to indicate super-effectiveness. Think like in pokemon)


I am using Yanfly's battle engine plugins, but couldn't find anything like this.
Pretty sure it's doable with AS and something like uhh... What'sitcalled? THat state plugin from yep.

Essentially, give your enemies a state for their weakness, and in the AS you just add an if condition (or many if conditions) to play a sound effect depending on what state the enemy has.

I think I've also seen something called yep_armor sound, You can probably use that as well?
Pretty sure it's doable with AS and something like uhh... What'sitcalled? THat state plugin from yep.

Essentially, give your enemies a state for their weakness, and in the AS you just add an if condition (or many if conditions) to play a sound effect depending on what state the enemy has.

I think I've also seen something called yep_armor sound, You can probably use that as well?

Oh sorry, I don't fully understand the plugins you're referring to (AS)?
Do you mean Yanfly's Buffs and States Core? Or is there more?
I'm not sure what Harlekin means by AS, but there is a Hit Damage Sound plugin - however, that doesn't have any differentiation for critical hits.

You could do this using Buffs and States, putting a passive state on everyone it applies to.

You could also do it in Yanfly's Damage Core, adding steps in the damage calculations that check for your critical or elemental weaknesses and calling a sound effect there.
Oh sorry, I don't fully understand the plugins you're referring to (AS)?
Do you mean Yanfly's Buffs and States Core? Or is there more?
Oh sorry, force of habit. I'm talking about Action sequences by yanfly.
The yanfly free plugins set includes both battle engine core and the action sequences plugin, which will allow you to take control of more things during combat animations and the like. Its worth checking out especially because it lets you tweak things mechanically as well, and makes it easier to do stuff like apply extra damage if the enemy has a specific status ailment on it and the like

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-implement-critical-hit-and-elemental-weakness-sounds.152450/