Party's member level command

how can i make a variable equal to party's member level (not actor) i have to: $game_variables[n] = to what???

I know this is for actor's level:
$game_variables[n] = $game_actors[n].level but i want to be equal to a party's member level
First of all your party member IS an actor so you can do it using events. Just check if the actor is a party member using a conditional branch and then set the variable to be equal to its level.

That said this is tedious, expecially if you want to store the level of a party member in a specific position (let's say 2nd position for arguments sake).
You could use something like this:
Code:
$game_variables[n] = $game_party.members[1].level

$game_party.members[1] is the actor occupying the 2nd (1 + 1) position in the party. Remember that if you want to refer to the actor in the 3rd position you have to use $game_party.members[2], if you want to refer to your 1st party member then it is $game_party.members[0] and so on. The number after "members" must be your actor's position minus 1.
Thanks man i have already found this solution by myshelf....i want to set party members variable instead of actor's because you will can change
The game actors during the game so, the variable have to be equal to the party member's position rather than specific actor because any actor may be on the party so these variables have to be equal only with party's member level

Original thread: https://forums.rpgmakerweb.com/threads/partys-member-level-command.78364/