I want to know how to find all actor skill id

I used many loop to find with condition
!$gameActors.actor($gameParty.leader().actorId()).skills().indexOf($dataSkills[$gameVariables.value(5)])
but I can only find the id of the skill with the smallest id
That's a convoluted way of doing things!

$gameActors.actor($gameParty.leader().actorId()) is the same thing as $gameParty.leader()

So from what I can tell, you have a skill id in variable 5, and you're trying to find where this skill resides in the leader's skill list - whether it's their first skill, second skill, etc. And the ! simply tells you if the actor doesn't have that skill.

Perhaps you should say exactly what you're trying to achieve, as I suspect the solution will be something very different to what you have here.

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-know-how-to-find-all-actor-skill-id.140647/