MZ Skills that require a State to be used

Hello! I have a character who uses a crossbow and I wanted to implement a "Reload" system.
Is there a way to have it so that a skill can only be used when they have a certain status?

I see that in the visustella skills and states core you can put in custom skill cost types but I am unsure if that'll be helpful or feasible.

The way it works would be like
1. Character uses "Reload" and gets the "Armed" status
2.Character uses Crossbow Shot and loses "Armed" status

1721150567232.png
I see that in the visustella skills and states core you can put in custom skill cost types but I am unsure if that'll be helpful
Nope, you're not asking about paying a cost.

But the help contents do have a whole section on skill accessibility.

So you'd do
Code:
<JS Skill Enable>
enabled = user.isStateAffected(42);
</JS Skill Enable>

Replace 42 with the ID of your armed state.
Thank you! It works perfectly!
or you could have the actor only have the skill "reload" with the skill "shoot" being added as a trait of the state, that way shoot is only available if the state is there - without any plugins needed.

Original thread: https://forums.rpgmakerweb.com/threads/skills-that-require-a-state-to-be-used.170365/