Call script for current char level...

Hey guys,

What's the call script for current character level ? I was able to find ${$gameParty.leader().maxLevel()} which shows max level 120.... but something like ${$gameParty.leader().currentLevel()} which supposed to return 110 in this example, it returns an ERROR. I searched everywhere and had no luck :/

error.PNG
If you know the actor # from the database:
Code:
$gameActors.actor(#).level
(replace # with the actor #)

Otherwise if you are going by party position it would be:
Code:
$gameParty.members()[X].level
Where X is a number of the position in the party (0 is the party leader)
@Aloe Guvner, Thanks a lot, this ${$gameParty.members()[0].level} worked perfectly 🙂
You could also have used control variable to get that info without any script (it's in the game data window)

Original thread: https://forums.rpgmakerweb.com/threads/call-script-for-current-char-level.94326/