How to set a variable equal to character's level?

● ARCHIVED · READ-ONLY
Started by UniqueName 4 posts View original ↗
  1. 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
  2. You need to select a concrete actor, not whole party.
    $gameParty._members()[0]._level
    $gameActors.actor(0)._level
  3. Or simply use control variable command with the game data section, no need for a script for something this basic.
  4. Oh there's a command! I haven't found it first
    Tnx you both