Storing Party member 1 class id in a variable

So i have difficulties creating this. I tried $gameActors.actor(gameParty.members()[0]).currentClass.id in control variables/script but it didn't work.
Any ideas? (also im a newbie in JS)
I dont think you need $gameActors. You may try a simple one: $gameParty.member()[0].currentClass().id
I dont think you need $gameActors. You may try a simple one: $gameParty.member()[0].currentClass().id
Still getting error...
I think you're just missing an 's':
Code:
$gameParty.members()[0].currentClass().id
This should return the class ID of the party leader (member #0).
Oh that's right it should be members() 😀
I think you're just missing an 's':
Code:
$gameParty.members()[0].currentClass().id
This should return the class ID of the party leader (member #0).
Thank you guys! This works. Problem solved

Original thread: https://forums.rpgmakerweb.com/threads/storing-party-member-1-class-id-in-a-variable.94936/