Hello guys, I´m trying to put $gameParty.luk() on a formula to take luck as parameter.
But I coudn´t make this work. I tried $gameParty.agility() and it worked perfectly.
I need help on this, maybe is something that I have missed.
Thank you in advance!!
Thales
It can't work because the party has no luck, only actors have luck. And to determine the luck of a specific actor, it's better to use control variable - game data than script.
Agility is an exception that only works because the battleengine needs to calculate the agility of the entire party for the success of the escape option - but I can't even tell you if that agility is calculated as the sum or the average or in a different way.
You're doing this in the formula window for a skill, right? They already give you access to the user and target directly- "a.atk - b.def" is accessing the attack of the user and the defense of the target. You don't need to change anything to have access to all of the base stats for those battlers.
With items, you would use b.luk as you use an item ON an actor, so the actor is the target. Items don't have a user, if you're using them from the menu. There's only a user if you're in battle.