Trying to do a skill that enhances elemental damage but only for the Skill itself.

So I'm wanting to have a cycle of skills that do the following.

1) deals damage
2) the skills are of a particular element type
3) when the skill does damage, if the enemy is weak to it, it does additional damage.

This is actually turning out to be more difficult than I thought for something seemingly simple.

To clarify, I'm not trying to do just regular element buffs. I'm trying to further enhance the damage buff but only for the particular skill.

So for example I have Skill type A. Enemies with Element B have Skill type A set to 200%. So pretty much all skills of Skill type A do that damage. What I'm looking for is a particular skill that instead checks the enemy to see if they are weak to skill type A, and if so, does 400% damage.

I know there's probably a way to do it using Yanfly's Action Sequence Pack 1, but I'm not sure how exactly code wise.

The closest example I could find is this "Attunement" http://www.yanfly.moe/wiki/Attunement_(MV_Plugin_Tips_&_Tricks) in Yanfly's tips and tricks, except I'm trying to do it not as a state since it's a buff to the damage of the single skill only, and I'm only wanting it to check for the one type. So Skill 1 Does Element A type damage, checks to see if the enemy is weak to element A, and if so does additional damage.
I know there's probably a way to do it using Yanfly's Action Sequence Pack 1, but I'm not sure how exactly code wise.
you could actually do it in the damage formula box, but ill write it out as a buffs & states notetag

Code:
<Pre-Damage Eval>
if (target.elementRate(A's element ID) > 1) value *=4;
</Pre-Damage Eval>

So for example I have Skill type A. Enemies with Element B have Skill type A set to 200%
Although its still a little unclear. each skilltype has a corresponding element? what exactly is "having element B" in this case?
You could also just do it right in the damage formula.

I feel like I've linked this to you before, but maybe I'm thinking of someone else.

That gives you the syntax for doing a different amount of damage if the target has a particular state on them.
you could actually do it in the damage formula box, but ill write it out as a buffs & states notetag

Code:
<Pre-Damage Eval>
if (target.elementRate(A's element ID) > 1) value *=4;
</Pre-Damage Eval>


Although its still a little unclear. each skilltype has a corresponding element? what exactly is "having element B" in
this case?

So I designed my battle system around character moods. I accomplished that primarily by having a rock-paper-scissors kind of element system and each skill type is named the same as the element.

So I have Rage skills which are Rage element, Sad skills with sad element and so on. In this case, any monster that uses primarily Sad skills, has an elemental weakness to Rage type skills. So I was just trying to have the one individual rage skill do additional damage to those kinds of enemies more than just the regular elemental weakness, and I think your code above does the job.

You could also just do it right in the damage formula.

I feel like I've linked this to you before, but maybe I'm thinking of someone else.

That gives you the syntax for doing a different amount of damage if the target has a particular state on them.
I'm pretty sure you have linked me the damage formula before. I actually scanned that page before posting here and didn't see anything about elements, figured there wasn't a way to do it in the damage formula and THEN posted here. I guess I should've scanned harder. But appreciate the help either way. The difference is that I was trying to do it without a state since I just needed the one skill to do more damage, not work like a debuff. But regardless, I think it's solved. I'll let you know once I test it.
I'm pretty sure you have linked me the damage formula before. I actually scanned that page before posting here and didn't see anything about elements
I searched the page for "element" and it's there under "General Battler Stuff" 😉

I was confused in my previous reply by Robro talking about state stuff, I must not have thoroughly read your OP.
oh. lol.
yeah, I meant Skill Core and said buffs & states. oops 😛
oh. lol.
yeah, I meant Skill Core and said buffs & states. oops 😛
Hey yeah but you know what, I tested and it's working swimmingly so thanks, guys.

I searched the page for "element" and it's there under "General Battler Stuff"

I was confused in my previous reply by Robro talking about state stuff, I must not have thoroughly read your OP.

Ahhh, there it is. Reading. It's a thing I should do! :hswt:

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-do-a-skill-that-enhances-elemental-damage-but-only-for-the-skill-itself.169715/