Hello. I don't think my question deserves a new thread, so I'm asking here. I hope it is the right place.
I'm looking for help with something that is very difficult for me, but I think it could be easy, even silly, for someone who understands scripting. Basically, all I need is a script call line that checks what the current class of the second current party member is. I think it would be ideal for the class Id to be stored in a given variable.
I need this because I'm creating a custom class change screen using events and images, and I would like to display the image of the current class in the menu, but since there are 16 different classes and almost 50 playable actors, I simply can't tell which character was selected to enter this custom class change screen. And even if I knew that, I would still need to know what the current class of the selected actor is to display the correct image.
I've tried things like:
$gameParty.members(1).currentClass.Id
$gameParty.members(1).currentClass().name
$gameParty.members(1).isClass($dataClasses[1])
Nothing seems to work. I've discovered that there are actually two possible solutions to my problem: I can set the current class ID of the selected actor to a variable, then all I have to do after that is create a conditional branch asking if the value of the variable is equal to 1, or 2, or 3, until I finally know which class is the correct one. Or I can use the conditional branching to ask if the second member of my party is currently "using" class ID X.
I'm hoping someone can help with this, as I've spent the last two days trying to figure it out with no luck.
Edit: Oh, I forgot to tell that I'm using RPG Maker MZ!