I have recently started porting my project over to MZ, but I'm having trouble porting over the scripts I've written in MV.
Specifically, I use a script that checks which if an actor in a specific party position has a specific class and another script
that checks if a specific actor has a specific skill. I would appreciate if anyone could help me translate this code from MV to MZ.
Below is the code for checking actor party position and class:
Below is the code for checking for specific skills:
Specifically, I use a script that checks which if an actor in a specific party position has a specific class and another script
that checks if a specific actor has a specific skill. I would appreciate if anyone could help me translate this code from MV to MZ.
Below is the code for checking actor party position and class:
JavaScript:
$gameActors.actor($gameParty._actors[1])._classId == 20 || $gameActors.actor($gameParty._actors[1])._classId == 17
Below is the code for checking for specific skills:
JavaScript:
$gameParty.members().some(actor => actor.hasSkill(ID))