Sealing a skill type after a skill is used from that catagory

Does anyone know of a script that seals a skill type for the remainder of the battle after using one skill from that type?

As it stands if you try and add a state to the skill, it only applies the state to the foe instead of the caster.

Pretty much it will run like this:

Raplh uses SUMMON

Enemy taks 500 damage!

Magic skill is now sealed

Battle ends and magic skill is unsealed

So pretty much raplh used the summon skill which is a magic skill and once the spell goes off, the magic skill is sealed until the end of the battle

That's what I'm looking for here. I'm hoping I was clear enough.

Also, Yanfly's skill restriction script lets me do something similar but idk how to make it so that it only lasts for the battle and not on a "cooldown". So if someone can tell me how to manage this with his script then that works as well.
The easiest way to do that would be thus.

Battle formula of skill:

a.add_state(id); 500Then have the state id used seal the 'magic skill' and have it's only removal option be the checkbox that says "remove at the end of battle. The letter a in the battle formula always denotes the skill user/attacker, so a.add_state adds the chosen state to the user rather than the target. the semicolon denotes the end of that action and leads to the actual damage formula (500 used as example since it was your example, of course you'd just add whatever formula the skill already has in it's place.) Just make sure that the actual damage calculation is the last action in the formula box or your skill will always fail to execute.
The easiest way to do that would be thus.

Battle formula of skill:

a.add_state(id); 500Then have the state id used seal the 'magic skill' and have it's only removal option be the checkbox that says "remove at the end of battle. The letter a in the battle formula always denotes the skill user/attacker, so a.add_state adds the chosen state to the user rather than the target. the semicolon denotes the end of that action and leads to the actual damage formula (500 used as example since it was your example, of course you'd just add whatever formula the skill already has in it's place.) Just make sure that the actual damage calculation is the last action in the formula box or your skill will always fail to execute.

AWESOME! that worked! thank you!

Original thread: https://forums.rpgmakerweb.com/threads/sealing-a-skill-type-after-a-skill-is-used-from-that-catagory.31657/