Skill that increases other skill powers for a turn

Hello again guys! So i've had an idean for my current project which i tought would be simple (and maybe it is) but i'm not figuring a way do achieve what I want.

So basicly, i have a spell X, which when cast deals damage, but i also want spell X to boost the damage of the next spell Y by 100% At first I tought about using variable, so when user cast X, the variable A which is already in spell Y damage formulas as a multipliers gets incremented from 1 to 2, which would effectively double the spell damage. However, i did'nt find the way to reset the variable AFTER the spell is cast.

So does anyone have a suggestion on how to achieve my goal? It does't have to be with variable, i'm open to any suggestion that would let me do what I want! Thanks! 🙂
Hi, you could have your first skill induce a invisible state (no icon) that do nothing (no effects), and then use the <Pre-Damage Eval> notetag from Yanfly Skill core in the second skill... Something like this:
<Pre-Damage Eval>
if (target.isStateAffected(State Id) {
value *= 2;
target.removeState(state Id);
}
</Pre-Damage Eval>

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-increases-other-skill-powers-for-a-turn.115291/