Get the level of a nonspecific party member

I'm doing a thing where I need to get a party member's level, but they're assigned to a variable as part of the process.
Control variable > Game Data requires I specify the actor instead of the variable, so I was wondering if there was a script call for going "Get the Level of [ActorId = Variable X], and assign that level to Variable Y"
please check the ace forums - each maker should have a pinned topic about the script equivalents to the event commands.
that is where you can find a list that contains the script code to access the level.
For future users: the script call would be "$game_variables[Y] = $game_actors[$game_variables[X]].level"

Feel free to close the thread, and thanks for your help.

Original thread: https://forums.rpgmakerweb.com/threads/get-the-level-of-a-nonspecific-party-member.166607/