How to check if actor's class is in party & when it is found in party, hide their name choice?

Hello, I have been stuck at it for a few hours. I am pretty new at this so I haven't had much luck tinkering with variables & switches etc.

What I want to do is to allow the player to remove a character from the party if they have the following condition(s):

1. A certain class

The process looks like this:

I have 4 classes. My current party has 4 of those classes out of 4. When I use the remove party skill in battle, I only want the choice to show one of those classes instead of the current party.

I do not want to show the classes names but the actor's name with the classes I choose to display.

As you can see, everyone but Harold is displayed, but 'Trierto' (excuse the WIP names) is a different class and I don't want them displayed with this current skill being used.

Is there a process, plugin or script call to do this?



trierto.png
I don't know how you're generating that list to begin with, so it would be hard to help you with that. If it's selecting someone as the target for a skill, you'd have to use a plugin that allows you to customize which actors can be targeted (one of the VisuStella skill things likely does).

You'll have to let us know when you've gotten that far to get help with the exact syntax.
I don't know how you're generating that list to begin with, so it would be hard to help you with that. If it's selecting someone as the target for a skill, you'd have to use a plugin that allows you to customize which actors can be targeted (one of the VisuStella skill things likely does).

You'll have to let us know when you've gotten that far to get help with the exact syntax.

I actually got it to work out how I wanted it to after 6 hours...

For some reason, common events can't have more than 2 ELSE/IF statements going on in the background at once. I think it gets confused or I was missing some steps lol

I got it working by starting the process of searching for the actors needed in one common event page and just linking/switching the IF statements to another page so I can have more than 2 working at once. Added the HIME_HiddenChoices plugin to the choices that needed to be hidden in the other common event pages and it worked well.

I don't know if there's a simpler way to do it but it's sorted. Thanks for replying anyways!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-actors-class-is-in-party-when-it-is-found-in-party-hide-their-name-choice.141155/