Hello. I have several skills in my game that are usable outside of battle for healing, but these skills can be used by party members even if they are not in the active battle party. Obviously, this presents a problem because you can have inactive members provide healing even though they are not fighting.
I use Yanfly's Skill Core plugin to solve this problem partially. By using a Custom Requirement notetag on a skill, I can make the skill unusable if the party member is not in the active battle party with $gameActors.actor(x).isBattleMember() to check if actor x is in the active party.
However, I have a handful of skills that can be used by two different party members. Using the note tag will not work because the skill should be usable if either of the party members are in the active party but this means that the other person who has this skill can use it, even if they are not in the active party.
For instance, "Cure" can be used by actors 3 and 5. I can restrict Cure so that it is only usable if actor 3 is in the active party, but this means that actor 5 cannot use it even if she is in the party. I could restrict Cure so that either actor 3 or actor 5 must be in the active party, but now if actor 3 is in the party, actor 5 can use Cure even if not in the active party.
I was wondering if there was a way to restrict skills using a note tag like this for actors or classes. Or is there another possible solution someone might have?
I use Yanfly's Skill Core plugin to solve this problem partially. By using a Custom Requirement notetag on a skill, I can make the skill unusable if the party member is not in the active battle party with $gameActors.actor(x).isBattleMember() to check if actor x is in the active party.
However, I have a handful of skills that can be used by two different party members. Using the note tag will not work because the skill should be usable if either of the party members are in the active party but this means that the other person who has this skill can use it, even if they are not in the active party.
For instance, "Cure" can be used by actors 3 and 5. I can restrict Cure so that it is only usable if actor 3 is in the active party, but this means that actor 5 cannot use it even if she is in the party. I could restrict Cure so that either actor 3 or actor 5 must be in the active party, but now if actor 3 is in the party, actor 5 can use Cure even if not in the active party.
I was wondering if there was a way to restrict skills using a note tag like this for actors or classes. Or is there another possible solution someone might have?