I want to set character's level as a variable
I tried everything
$gameVariables.setValue(2, $gamePlayer.level);
$gameVariables.setValue(2, actor.level);
$gameVariables.setValue(2, $gameParty.level);
$gameVariables.setValue(2, $gamePlayer._level);
$gameVariables.setValue(2, actor._level);
$gameVariables.setValue(2, $gameParty._level);
Nothing works
It seems that I can't find the right code line to return the level value but I'm not sure
If anyone knows how to do that help pls
How to set a variable equal to character's level?
● ARCHIVED · READ-ONLY
-
-
You need to select a concrete actor, not whole party.
$gameParty._members()[0]._level
$gameActors.actor(0)._level -
Or simply use control variable command with the game data section, no need for a script for something this basic.
-
Oh there's a command! I haven't found it first
Tnx you both