In my project, the player is able to interact with certain objects in the world. Some of said objects require atleast one
member of the players party to know a specific skill, I'm unsure on how to do that. And using the conditional branch to
check each specific actor is quite tedious. Any help would be appreciated.
So far these are the scripts I've tried. I'm not good with JavaScript/coding at all, so forgive me if the answer was in my face.
$gameActors.actor($gameParty._actors[1](function(actor) { return actor && actor.isLearnedSkill(112) })
$gameActors.actor($gameParty._actors[2]).isLearnedSkill(112)
member of the players party to know a specific skill, I'm unsure on how to do that. And using the conditional branch to
check each specific actor is quite tedious. Any help would be appreciated.
So far these are the scripts I've tried. I'm not good with JavaScript/coding at all, so forgive me if the answer was in my face.
$gameActors.actor($gameParty._actors[1](function(actor) { return actor && actor.isLearnedSkill(112) })
$gameActors.actor($gameParty._actors[2]).isLearnedSkill(112)