Long story short - I want an event to be able to check if a players luck is over 10 using an if statement.
Will also accept a way to set the party leaders luck to a variable. I found "$gameParty.leader().level" which works for level but changing it to "$gameParty.leader().luck" isn't working.
why using a script line at all if it is in an event?
The regular method for this is to use control variable (with the game data option) to load the parameter of the actor you want, then check it with a conditional branch.
You load the luk value of an actor into the variable by using the control variable command, and then check the value of the variable in the regular conditional branch.
You don't need code for this, because you don't use the script line options of either command.
In the case of the control variable command you use the game data option instead of the scriptline option, and in case of the conditional branch just check the variable against whatever number you want to check.