I googled around and found a few ways to do this. To my surprise, none of them worked. What I'm trying to do is the title - I want to grab the class ID of a party member (let's say Party Member #1), figure out what class they are, and store their class ID into a variable.
What I've tried:
This should grab the class ID for the first member of the party. The variable 13 returns 0.
Same thing. The variable 13 returns 0.
I don't understand what I'm supposed to do. I figured this would be a simple task, but it seems not.
What I've tried:
Code:
var actor = $gameParty.members(0).currentClass().name
$gameVariables.setValue(13, actor);
This should grab the class ID for the first member of the party. The variable 13 returns 0.
Code:
var actor = $gameParty.members(0);
$gameVariables.setValue(13, actor._classId);
Same thing. The variable 13 returns 0.
I don't understand what I'm supposed to do. I figured this would be a simple task, but it seems not.