Passive skill that makes an active skill stronger

Hello everyone!

I'm using Yanfly's Equip Battle Skills plugin, and I would like to make a passive skill that gets significantly strong when equipping a passive skill.

For example:
Skill-A deals 100% damage.
PassiveSkill-A adds 50% damage to Skill-A when equipped.

I thought of using a Skill Notetag of <Equip State: x>, then a common event and variable, but I couldn't think of a solution for how to reset the variable when I unequip the passive skill.

I tried googling, but no luck.

I'm open to any kind of solution as long as I don't have to use another plugin that could complicate Yanfly's plugin.

Thanks in advance!
You can use the Equip State notetag to apply an invisible state that does nothing to the skill wielder and address this state in the skill's damage formular.
For example
if ( a.isStateAffected(x) ) { (a.atk * 4 - b.def *2) * 1.5 } else { a.atk * 4 - b.def * 2 }
should work. Just replace x with the state's ID
What @coucassi said will work, but if the state truly does nothing, then it's unnecessary.

Instead of checking for the presence of a passive state, you can just use the script calls provided by Equip Battle Skills to see if the actor has the appropriate skill equipped.

Code:
if ( a.battleSkillsRaw().includes(x) )  (a.atk * 4 - b.def *2) * 1.5;  else  a.atk * 4 - b.def * 2;

If you want your modification to apply to more than one skill (e.g. you learn a Combat Mastery skill or something), then you can use a passive state with the notetags from Buffs & States.
Code:
<Custom Confirm Effect>
if (this.item().stypeId == 3)
    value*=2;
</Custom Confirm Effect>

all skills of type 3 will do double damage.
You can use the Equip State notetag to apply an invisible state that does nothing to the skill wielder and address this state in the skill's damage formular.
For example
if ( a.isStateAffected(x) ) { (a.atk * 4 - b.def *2) * 1.5 } else { a.atk * 4 - b.def * 2 }
should work. Just replace x with the state's ID
Thank you!

What @coucassi said will work, but if the state truly does nothing, then it's unnecessary.

Instead of checking for the presence of a passive state, you can just use the script calls provided by Equip Battle Skills to see if the actor has the appropriate skill equipped.

Code:
if ( a.battleSkillsRaw().includes(x) )  (a.atk * 4 - b.def *2) * 1.5;  else  a.atk * 4 - b.def * 2;

If you want your modification to apply to more than one skill (e.g. you learn a Combat Mastery skill or something), then you can use a passive state with the notetags from Buffs & States.
Code:
<Custom Confirm Effect>
if (this.item().stypeId == 3)
    value*=2;
</Custom Confirm Effect>

all skills of type 3 will do double damage.
I will look into this, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/passive-skill-that-makes-an-active-skill-stronger.159946/