State limits?

So I wanted to create a special transformation that certain characters can use however I wanted it to be that only 1 character can have the state at a time (state is called "Evolved")

It boosts the users stats by 50% and changes their appearance though I wanted to avoid allowing more than 1 at a time to avoid breaking the balance

Is this possible?
I think this might help if you're using yanfly's skill core add this to the skill that applies the Evolved state

<Custom Requirement>
if ($gameParty.members().filter(function(actor){return actor.isStateAffected(Evolved State ID);}).length > 0) {
value = false;
} else {
value = true;
}
</Custom Requirement>
I think this might help if you're using yanfly's skill core add this to the skill that applies the Evolved state

<Custom Requirement>
if ($gameParty.members().filter(function(actor){return actor.isStateAffected(Evolved State ID);}).length > 0) {
value = false;
} else {
value = true;
}
</Custom Requirement>

This makes it that no one else can use it then? And yes I use Yanfly's skill core
This makes it that no one else can use it then? And yes I use Yanfly's skill core
As a requirement to use the skill that would add the evolved state it checks to see if anyone in the party already has that state if someone does the skill can't be used if no one has the state it will let you use the skill.
As a requirement to use the skill that would add the evolved state it checks to see if anyone in the party already has that state if someone does the skill can't be used if no one has the state it will let you use the skill.

Is there also a way to do this if evolved is different states for each character?

Ex: Character 1's evolved state increases all defenses and is state 37 while Character 2's evolved state increases mana and AGI, and is state 38, is there a way so then one or the other can be active but not both at the same time, even if they're two separate states?
Is there also a way to do this if evolved is different states for each character?

Ex: Character 1's evolved state increases all defenses and is state 37 while Character 2's evolved state increases mana and AGI, and is state 38, is there a way so then one or the other can be active but not both at the same time, even if they're two separate states?

This should do it

<Custom Requirement>
if ($gameParty.members().filter(function(actor){return actor.isStateAffected(State1ID);}).length > 0 || $gameParty.members().filter(function(actor){return actor.isStateAffected(State2ID);}).length > 0) {
value = false;
} else {
value = true;
}
</Custom Requirement>

If you need more than two states just add another
|| $gameParty.members().filter(function(actor){return actor.isStateAffected(StateID);}).length > 0
After the last 0 you can and as many as you want and it will check to see if a party member has any of the listed states and if they do stop the others from using the evolve skill.

Original thread: https://forums.rpgmakerweb.com/threads/state-limits.89333/