Hello! I'm looking for help in making an event that will detect if a battler (current battle party member) is of a certain class. Looking to do this on the field, not in battle. I'm ok with using script calls but am not sure of the syntax to do it with. I'm sure it would probably have to be done this way, but would need help with formatting. I'm more familiar with using "$game.Actor" but will have lots of actors and only want to check the current party, I remember ruby had commands like "$game_party.members[1]" however I do not know what to do in JS. Any help would be appricated! Again, I am hoping to look at each of the party members, and not just all the actors.
Problem: want an event to detect if battlers (active party members) are a certain class, and if they are to turn on a switch.
Desired result: When player enters an area, the event looks at battlers (active party members) and goes through them and if a certain class is active, a switch is turned on.
I think it would look something like
if battler 1 is class 6
switch on
else
if battler 2 is class 6
switch on
else
if battler 3 is class 6
switch on
else
if battler 4 is class 6
switch on
else
end
Again, thank you for your time, if I need to clarify anything, just let me know.
Problem: want an event to detect if battlers (active party members) are a certain class, and if they are to turn on a switch.
Desired result: When player enters an area, the event looks at battlers (active party members) and goes through them and if a certain class is active, a switch is turned on.
I think it would look something like
if battler 1 is class 6
switch on
else
if battler 2 is class 6
switch on
else
if battler 3 is class 6
switch on
else
if battler 4 is class 6
switch on
else
end
Again, thank you for your time, if I need to clarify anything, just let me know.