making a skill that is stronger if using another skill

so I had this idea of making a sneak attack skill that is stronger if the character is already using the hide skill . I was looking at modyfying the hide state but it doesn't seem like there's an option to make a specific skill stronger. How can I do this?
You can just add a check for the actor to have a state inside of the sneak attack damage formula.

a.isStateAffected(21) ? a.atk*6 - b.def*2 : a.atk*4 - b.def*2;

Original thread: https://forums.rpgmakerweb.com/threads/making-a-skill-that-is-stronger-if-using-another-skill.160114/