Check if ANY Party Member Has a Skill

I'm using VX ACE and I would like to check if any of the current party members possesses a skill so I can modify some rolls in an event (to say, make the results of a mining attempt better).

The basic event tools for this are very clunky, and since it's an open world sort of game, I can't predict who will be present at any given time, so brute forcing all the combinations isn't advisable so I'm looking for a more eligant solution.

I have limited scripting knowledge, but I have imported some and thrown a few calls around and know how to reference my variables in script if I need to.

I saw this topic came up in a search, but then I lost it and wasn't able to reproduct the exact search to get it to come back up. Sorry.
You don`t need scripts for this, it can all be done via events.
Just add conditional branches and get mining skills by adding different variables for each character.
You don`t need scripts for this, it can all be done via events.

Just add conditional branches and get mining skills by adding different variables for each character.
Well, perhaps it's due to the scale I'm hoping for. I'm trying to do something like Colonization or Uncharted Waters, so there will be a lot of characters, perhaps just generic ones. Something like one of the old dragon quest games where you could just recruit 100 "soldiers" from the barracks. If it was a traditional rpg with a cast of a dozen or so characters, yeah what you suggest would be no problem.
conditionals can get messy...

$game_party::members::any?{|m|m::skills::include?($data_skills[12])}^ checks if any members has skill 12. 🙂
conditionals can get messy...

$game_party::members::any?{|m|m::skills::::include?($data_skills[12])}^ checks if any members has skill 12. 🙂
Thanks.
No worries, I had added too many ':' in that snippet - fixed now 🙂
Code:
$game_party.members.any? {|m| m.skill_learn?(12)}
😉
I KNEW there was a damn method to check for that, but I couldn't be bothered opening my editor and it just wasn't popping into my lil head :'(
$game_party.members.any? {|m| m.skill_learn?(12)} 😉
ugh sorry if im bumping this, but it's $data_skills[12] instead of just 12. Someone had to say it.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-any-party-member-has-a-skill.44222/