Hello. I am making a game with more or less open classes and I want to do a script call that allows me to check if any actor has a particular skill and not a specific actor. I've tried using these...
$gameActors.actor(1||2||3||4||5||6||7||8||9||10||11||12||13||14||15||16).isLearnedSkill(34)
$gameActors.actor(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16).isLearnedSkill(34)
$gameActors.actor(1 to 16).isLearnedSkill(34)
And I've tried spaces between the || and , respectively.
i feel like I'm close but don't understand JS enough yet to pinpoint. It only works if the first actor learns the skill. I'm trying to get it to check the others all at once also.
I know I can make a bunch of conditional branches to get it to work but was trying to find a less bulky and less time consuming way to do it as I will be using it a lot.
Jet made a script for VX Ace that did this but I don't have it nor can I find it to try and learn from it better, plus I know JS is different.
Any help would be appreciated. Thanks.
$gameActors.actor(1||2||3||4||5||6||7||8||9||10||11||12||13||14||15||16).isLearnedSkill(34)
$gameActors.actor(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16).isLearnedSkill(34)
$gameActors.actor(1 to 16).isLearnedSkill(34)
And I've tried spaces between the || and , respectively.
i feel like I'm close but don't understand JS enough yet to pinpoint. It only works if the first actor learns the skill. I'm trying to get it to check the others all at once also.
I know I can make a bunch of conditional branches to get it to work but was trying to find a less bulky and less time consuming way to do it as I will be using it a lot.
Jet made a script for VX Ace that did this but I don't have it nor can I find it to try and learn from it better, plus I know JS is different.
Any help would be appreciated. Thanks.