Attribute check in all entire party

Situation is next.
I want to make some kind of secret stash. It's an event, which check attribute (as example, LCK) in conditional branch.
If LCK of at least one party member is equal of 60, then stash reveals, and party gains items/money/skills/any other things.
Otherwise player get "you found nothing" message.
I wonder, how it can be?
Same question is about the states (example: one of four party members is sicked. It means, that all entire party moves slow and dash disabled by Yanfly's plugin) and items.
In the conditional branch:

$gameParty.allMembers().some(function (actor) { return actor.luk >= 60; } );

or

$gameParty.aliveMembers().some(function (actor) { return actor.luk >= 60; } );


for states,

$gameParty.allMembers().some(function (actor) { return actor.isStateAffected(id); } );

where id is the state id without leading zeros (so death would be 1, not 0001)


allMembers() will give you all party members, battlers plus reserve, dead or alive. aliveMembers() will give you only living members, but will only look at battlers when you're in battle, but battlers and reserve when you're on the map.

Original thread: https://forums.rpgmakerweb.com/threads/attribute-check-in-all-entire-party.112839/