Seal skill type help

This is probably simple but it's not working for me.
I have 2 playable characters in the battle: Boy and girl. When boy is affected with a status condition or knocked out, both boy and girl lose access to their Skill commands and visa versa.
The concept was there being a combo skill section where those skills can only be used when both characters are capable and unaffected by any ailments.
When they aren't affected by anything, recover, or are cured, they're skill commands are no longer locked out.
Can you give me some clear instructions to help? Thank you.
My general idea would be to give both a passive state using Yanfly's Auto Passive States that seals the combo skill type. Then give these passive states the condition that the other actor must either be affected by state id 1 or any other state ids of your ailments.
I’ve been trying that this morning and something must be wrong.
could you tell me how the <passive condition switch X ON> works. Because I’m trying to have it so when a status skill gets used against my character it turns on a switch and then that switch seals my skills.

So what I’m asking is how exactly would it be written out?
I would not go through the effort of trying to keep a switch on synchronous with some gamestate. Instead I would do something like this:
JavaScript:
<Custom Passive Condition>
   condition = $gameActors.actor(a). isStateAffected(1)
      || $gameActors.actor(a). isStateAffected(x)
      || $gameActors.actor(a). isStateAffected(y)
      || $gameActors.actor(a). isStateAffected(z);
</Custom Passive Condition>
Replace a with the actor id of the boy for the girl's passive state and vice versa for the boy's. Replace x,y and z with the ids of your status ailments. You can check for more or less ailments simply by adding another line with || ... or removing it.
I would not go through the effort of trying to keep a switch on synchronous with some gamestate. Instead I would do something like this:
JavaScript:
<Custom Passive Condition>
   condition = $gameActors.actor(a). isStateAffected(1)
      || $gameActors.actor(a). isStateAffected(x)
      || $gameActors.actor(a). isStateAffected(y)
      || $gameActors.actor(a). isStateAffected(z);
</Custom Passive Condition>
Replace a with the actor id of the boy for the girl's passive state and vice versa for the boy's. Replace x,y and z with the ids of your status ailments. You can check for more or less ailments simply by adding another line with || ... or removing it.
So when posted fully into the script section of a new event it will look like this? Sorry I haven't used much Java script.


JavaScript:
<Custom Passive Condition>


   condition = $gameActors.actor(0001). isStateAffected(7)


      || $gameActors.actor(0001). isStateAffected(7)

      || $gameActors.actor(0001). isStateAffected(8)

      || $gameActors.actor(0001). isStateAffected(9);

</Custom Passive Condition>

0001 Represents boy's number.
Numbers 7,8,9 represent the different states.
But where do I add where it would say if he HAS those states, The Specific passive happens?
So when posted fully into the script section of a new event it will look like this? Sorry I haven't used much Java script.


JavaScript:
<Custom Passive Condition>


   condition = $gameActors.actor(0001). isStateAffected(7)


      || $gameActors.actor(0001). isStateAffected(7)

      || $gameActors.actor(0001). isStateAffected(8)

      || $gameActors.actor(0001). isStateAffected(9);

</Custom Passive Condition>

0001 Represents boy's number.
Numbers 7,8,9 represent the different states.
But where do I add where it would say if he HAS those states, The Specific passive happens?
It's just 1, not 0001. And you need to remove the space between . and isStateAffected.
It's just 1, not 0001. And you need to remove the space between . and isStateAffected.
JavaScript:
<Custom Passive Condition>

   condition = $gameActors.actor(1).isStateAffected(4)

      || $gameActors.actor(1).isStateAffected(7)

      || $gameActors.actor(1).isStateAffected(8)

      || $gameActors.actor(1).isStateAffected(9);

</Custom Passive Condition>


Alright, like this.
Yeah, so that would return true if actor 1 is affected by any of those four state IDs.
Yeah, so that would return true if actor 1 is affected by any of those four state IDs.
and the script would be put in a separate event on the map with a parallel trigger?
No, the script should be put in the notebox of a state that seals the combo skill type. You can give girl the passive state with the notetag <Passive State: x>. You need to replace x with the state's id.
These notetags will only work with the plugin I mentioned:

And you need to remove the space between . and isStateAffected.
Ah, sorry. I was posting from my phone and apparently autocorrect decided to insert these spaces 😅
No, the script should be put in the notebox of a state that seals the combo skill type. You can give girl the passive state with the notetag <Passive State: x>. You need to replace x with the state's id.
These notetags will only work with the plugin I mentioned:


Ah, sorry. I was posting from my phone and apparently autocorrect decided to insert these spaces 😅
I understand, but what I’m not understanding is where if this statement is true, how does it connect to sealing a skill type?
Where is the bridge that’s connecting these statements being true to the next part which is now that it’s true, it’s going to seal a skill?
I understand, but what I’m not understanding is where if this statement is true, how does it connect to sealing a skill type?
Where is the bridge that’s connecting these statements being true to the next part which is now that it’s true, it’s going to seal a skill?
I think we're having a hard time understanding your confusion, because (aside from the rest of the thread) your questions are answered in the post that you just quoted.

A - A state has the Seal Skill trait added to it
B - That state is placed on an actor as a passive state, following the instructions in Yanfly's Auto Passive States plugin
C - The notetag and its code you were given determines whether or not that passive state is on, and therefore whether or not its traits are affecting the actor

If you're still confused, please try to reference the above steps and tell us where you're getting lost so we can be more specific. Have you read the instructions and watched the video for Auto Passive States, to understand how they work?
Yeah, so that would return true if actor 1 is affected by any of those four state IDs.
Thanks, but that doesn’t solve my issue which is now that those statements are true, how does it seal the skill type?
Thanks, but that doesn’t solve my issue which is now that those statements are true, how does it seal the skill type?
Just making sure you saw my previous post, as you appeared to be writing your two posts at the same time.

(incidentally, no need to write separate posts asking other people the same question - you can Reply to both while you're typing, or @tag the users or use the +Quote buttons)

Let us know if you still have questions.
I think we're having a hard time understanding your confusion, because (aside from the rest of the thread) your questions are answered in the post that you just quoted.

A - A state has the Seal Skill trait added to it
B - That state is placed on an actor as a passive state, following the instructions in Yanfly's Auto Passive States plugin
C - The notetag and its code you were given determines whether or not that passive state is on, and therefore whether or not its traits are affecting the actor

If you're still confused, please try to reference the above steps and tell us where you're getting lost so we can be more specific. Have you read the instructions and watched the video for Auto Passive States, to understand how they work?
I apologize for my confusion. I’m more of a visual learner so it’s difficult if I can’t see every area a code needs to be placed.

A - A state has the Seal Skill trait added to it
(I took the Java script code and pasted it into the state’s note box exactly how it was written above. In this example I put that JavaScript into the rage ability #7 note box)

<Custom Passive Condition>

condition = $gameActors.actor(2).isStateAffected(4)

|| $gameActors.actor(2).isStateAffected(7)

|| $gameActors.actor(2).isStateAffected(8)

|| $gameActors.actor(2).isStateAffected(9);

</Custom Passive Condition>

(this is what was posted into the rage states note box exactly)



B - That state is placed on an actor as a passive state, following the instructions in Yanfly's Auto Passive States plugin
(next I would put the rage passive state on one of my actors in their note box. Which would mean whenever I start a battle they will begin with the rage state)

C - The notetag and its code you were given determines whether or not that passive state is on, and therefore whether or not its traits are affecting the actor
(I believe this is the area I am lost on. Which note tag and code are you referring to? Because what I am aiming to do is not to start off with a passive state, it’s to make it so that when one character is affected by a state, all characters have their skill type sealed until they are no longer affected)
I believe this is the area I am lost on. Which note tag and code are you referring to?
You were only given one note tag with code. You posted it with corrections in post #7.

Because what I am aiming to do is not to start off with a passive state, it’s to make it so that when one character is affected by a state, all characters have their skill type sealed until they are no longer affected
So you give all characters that passive state. As Trihan explained, the code in the notetag "would return true" (and thus make the passive state with Skill Seal active) "if actor 1 is affected by any of those four state IDs".
You were only given one note tag with code. You posted it with corrections in post #7.


So you give all characters that passive state. As Trihan explained, the code in the notetag "would return true" (and thus make the passive state with Skill Seal active) "if actor 1 is affected by any of those four state IDs".
Thank you very much for clarifying. I had some things placed in the wrong area and it’s working now, along with me going over things again slowly. I appreciate all of you greatly for walking me through that.

Original thread: https://forums.rpgmakerweb.com/threads/seal-skill-type-help.151882/