Gameparty scripts needed

Hello guys!
I need some scripts to check some things of the party MEMBER 2. (Taking into account that the leader is member 1)

Here is what I need:


if member party.jpg

in other words, instead of always putting the actor ID, I would like to put "member 2" in the conditional branch
That´s it!

Thank very much in advance.
Code:
$gameParty.members()[1].isStateAffected(1)
$gameParty.members().length >= 2
$gameParty.members()[1].luk >= 4
$gameParty.members()[1].mp >= 20
$gameParty.members()[1].mp -= 20;
You may want to use gainMp for the last one, just to make sure it refreshes properly:
Code:
$gameParty.members()[1].gainMp(-20);
@Poryg thank you sooo much!!! This was very important to me. It works nicely.

@caethyril thank you!! I put your code and it worked perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/gameparty-scripts-needed.105796/