Using Passive State to seal skill

Hi,

I'm using Yanfly's passive state plugin. After using a skill, I want it to go on permenant cooldown. I'm doing this by adding a passive state to the skill and the passive state seals the skill. However I'm having trouble with when the state should be applied. The passive state should only be triggered after the skill is used. How can I do this?

Or if you know any other way to make this logic work without passive states that works too. I just need the skill to be locked after use and I will unlock the skill when a certain state is applied.
Are you using Yanfly's Skill Cooldowns plugin? If not, it would help. http://yanfly.moe/2015/10/14/yep-9-skill-cooldowns/
Are you using Yanfly's Skill Cooldowns plugin? If not, it would help. http://yanfly.moe/2015/10/14/yep-9-skill-cooldowns/
Yes I am. However as far as I know, all the notetags deal with a specified time for how long a skill goes on cooldown. I would need a skill to be disabled until I switch it back on again.
You might want to consider using Yanfly's Skill Core, have the skill turn on a switch and then use the lunatic mode scripts to restrict availability of the skill based on said switch using something like this:

Code:
<Custom Requirement>
if (!$gameSwitches.value(id)) {
value = true;
} else {
value = false;
}
</Custom Requirement>

Replace "id" with the switch's id. This will meet the requirements if the switch is off. You then just need to turn the switch off again whenever you want the skill to be available again.

Original thread: https://forums.rpgmakerweb.com/threads/using-passive-state-to-seal-skill.106848/