MV Getting the class ID of an Actor ID with scripts

Yeah that's pretty much it, i couldn't find or figure out what script to use in conditional branches to have something trigger if "Actor x has class y" basically
There's no need to use scripting for this, it's right in Conditional Branch. The second tab is all about actor data.
actor.isClass($dataClasses[x])

In case you need a catch all that isn't actor specific
actor.isClass($dataClasses[x])

In case you need a catch all that isn't actor specific
Ah, sorry i should have been more specific, i was looking for one that checks a specific actor ID

There's no need to use scripting for this, it's right in Conditional Branch. The second tab is all about actor data.
Normally, yes you can just use conditional branches as is but i cannot do that because i am using a plugin that copies actors which gives them new ID's that i can't target without referring to them with using actor IDs
You may want to look through the pinned thread with the script call list, it has all of this stuff in there.

You can also Google basic script calls - MV has been out for years, so all of the simple stuff has been asked before. If you Google "rpg maker mv actor script call," I find threads that supply:
Code:
$gameActors.actor(ID)

So if you want to see if actor ID 15 is class ID 4, you'd do $gameActors.actor(15).isClass($dataClasses[4])
You may want to look through the pinned thread with the script call list, it has all of this stuff in there.

You can also Google basic script calls - MV has been out for years, so all of the simple stuff has been asked before. If you Google "rpg maker mv actor script call," I find threads that supply:
Code:
$gameActors.actor(ID)

So if you want to see if actor ID 15 is class ID 4, you'd do $gameActors.actor(15).isClass($dataClasses[4])
I did not know there was an extensive list of all the script calls, i'm 100% going to be making use of it in the future, thanks for the help

I used the script call too and it worked perfectly thanks

Original thread: https://forums.rpgmakerweb.com/threads/getting-the-class-id-of-an-actor-id-with-scripts.160738/