is there a way to put actor current job points into a variable? I searched in the help file but i didn't founded nothing
Yanfly's Job points into variables
RPG Maker MV SupportThat would help me a lot too...
for a specific actor do:
$gameActors.actor(x).jp() ,
where x = to the actor id.
Place this in control variable script section. Then the variable is equal to that specific actors current jp at that exact time you got it.
$gameActors.actor(x).jp() ,
where x = to the actor id.
Place this in control variable script section. Then the variable is equal to that specific actors current jp at that exact time you got it.
You saved my life! Thanks for this =)
You're welcome. Happy to help.
ok now that i have "stored" my Job Points in a Control Variable, and change class i need to give the points to the actor. Any suggestion?
run a script with this.
var jpSet = $gameVariables.value(y);
$gameActors.actor(x).setJp(jpSet);
Where y is the variable id and x is the actor id.
var jpSet = $gameVariables.value(y);
$gameActors.actor(x).setJp(jpSet);
Where y is the variable id and x is the actor id.
Out of curiosity what are you planning to use a variable of job points for? I'm trying to use them as skill points for learning new skills but would a variable value help for actor specific points?
Whem you change class you lose all the JP points, i do just that at level 4 just before you can bay the first skill.
If you make it were the class keeps the levels the same on class change core, then the JP won't change.
Original thread: https://forums.rpgmakerweb.com/threads/yanflys-job-points-into-variables.73117/