KSkillNeedState XP
by Kyonides
Introduction
Do you need to restrict the usage of a skill by forcing the hero to get a specific state first?
Now you can do that! :D
In XP's case
Adjust the values of the SKILL_STATE_IDS Constant at will.
Example: { SkillID1 => StateID1, etc. }
Code:
module KSkillNeedState
ANTI_PHYS_STATE_ID = 19
SKILL_STATE_IDS = { 57 => 17 }
NOT_STATE_IDS = { 57 => 18 }
end
Terms & Conditions
Free as in beer.
Include my nickname in your game credits.
A Quick Update Part 1!
Today I have revisited these scripts to make sure they will be updated in a single place only. Then I noticed

that the RMXP port did not allow you to set different state requirements for different skills.
That made me feel the urge to upgrade it and now it offers you a Hash that will let you set as many Skill-State requirements as deemed necessary!

A Quick Update Part 2!
I got even more inspiration as to include another interesting feature: the
minus states!
Normally, that would remove a state, but in this context it stands for the states the Skill needs you NOT to have acquired before selecting your skill.
For the
XP port I have implemented a brand new Constant.
In the
VX & VX ACE ports, a new note tag has been added!
All the 3 scripts have been updated and tested thoroughly!
I tried the demo and I've got a question: is it possible to set one state for several skills? I want to create an ailment that works like silence/mute but for physical skills.
RMXP Port Got Upgraded!
And its Heroes Aren't Happy About That!
From now on, you can set the
ANTI_PHYS_STATE_ID Constant to any State ID and it will turn it into some terrible anti-physical state that won't let Alex use any of his physical skills like Cross Cut.

The same would happen to Basil or any other brave

warrior.

RMVX is Also Suffering Now!
What happened there is that you can also make your heroes suffer by being inflicted with the anti-physical state thanks to the
ANTI_PHYS_STATE_ID Constant.
Yes, the very same feature available on RMXP has been ported to VX as well!

I tested it and works perfectly.
Now, time to choose an icon and a name for the ailment. Time to hit the usual wikis for inspiration.