Restricted Use Abilities.

I am trying to make a spell that is only usable if the character has a certain state. The state is called frenzy and it activates when you reach 100 TP. It causes the character to deal 50% more damage but also reduces their defense by 50%. I want there to be a spell that can only be used when the character has the frenzy state. Also please keep in mind that I plan to only give this ability to one character so any solutions aimed at making this possible for every character will not work for what I am trying to do. I am also fairly new to this program so please make your solutions as simple to understand as possible. Also I apologize if I posted this question on the wrong forum page. I am still new to the forums and I have not learned where everything is yet.
You can make the state have the "Add Skill" Feature/Trait
as said above you should add the skill in the state.
you can prevent other actor from using it (if they get the same state) by having that skill a skill type that is only available to those actors who should get the ability to use the skill with the state.

there are a few other ways, but they are more complex to implement with common events and conditional branches etc.
Yanfly's skill core can do this the way you probably want it. Something like this would work if added to the skill's note tag, assuming you have skill core:

Code:
// Replace 'n' with the state id for frenzy
<Custom Requirement>
if (user.isStateAffected(n)) value = true;
else value = false;
</Custom Requirement>

The skill would always show in the user's skill list, but would be grayed out and unusable without the frenzy state.

Original thread: https://forums.rpgmakerweb.com/threads/restricted-use-abilities.108735/