To access a player you can either use
CODE
$game_party.members[0]
Where 0 means the first member in the party. or
CODE
$game_actors[1]
Where 1 means the first actor in the database
So in the conditional branch you can run the script:
CODE
$game_party.members[0].sp >= $game_party.members[0].maxsp / 2
or
CODE
if $game_party.members[0].sp >=
$game_party.members[0].maxsp / 2
p 'Over half SP'
else
p 'Under half SP'
end
And I'm not really sure how you planned on implementing luck, if you wanted to use variables I suppose you could do something like
CODE
Control Variables: [0001: Actor1 LUCK] = 50
Control Variables: [0002: Actor1 MAXLUCK] = 100
Using the control variable command and then with code
CODE
luck = $game_variables[1]
maxluck = $game_variables[2]
if luck >= maxluck / 2
p 'Feeling Lucky!'
else
p 'Feeling Unlucky'
end
Or once again if it were in a conditional branch
CODE
$game_variables[1] >= $game_variables[2] / 2