Check if any actor in party has any skills of a certain type

● ARCHIVED · READ-ONLY
Started by Benjymite 2 posts View original ↗
  1. Exactly what it says in the title, I'm trying to create events that check if a certain skill type is known by anyone in the party, but can't for the life of me figure out how to script this. I know there's default functionality for checking for individual skills, but it would be more useful for me to be able to use skill types in this way.

    I do have the tier 0 & 1 VisuStella plugins installed, if that makes any difference.
  2. Code:
    $gameParty.members().some(actor => actor.addedSkillTypes().includes(X))

    where X is the number of the type you're looking for.