Hi! I need a single script to change X actor (determined by a variable) to class 1; it's part of a phase in the game where you can add party members and decide (among other things) their class. I could make endless if/else branches (well, one for each actor) without even using script, but it could require a giant amount of time.
Now this script doesn't work
Nor this one.
Is there any way I can do this with a single script? Thank you!
Now this script doesn't work
Code:
$gameActors.actor($gameVariables.value(1)).changeClass(1);
Code:
var a = $gameVariables.value(1);
$gameActors.actor(a).changeClass(1);
you really helped me out here guys, thanks!