- Joined
- Sep 28, 2018
- Messages
- 96
- Reaction score
- 6
- First Language
- Russian
- Primarily Uses
- RMMV
Yes, I using other plugins. A lot of them:Did you tried-
Check.any_equipped
The script you used in the image-
Check.equipped_any
Edit: I checked the plugin, both ways should work. Are there other plugins you used?

You mean link to the plugin?Please include a link to the script (do not copy/paste the script into this thread)
(function(actor, ...ids){ var result = false, armors = actor.armors().reduce(function(r, obj){ return r.concat(obj.id); },[] ); for (i in ids) if (armors.contains(ids[i])) result = true; return result; })($gameActors.actor(1), 6, 1, 2, 9, 10, 11)
Check.any_equipped(1, "armor", 6, 1, 2, 9, 10, 11)
I'm not sure that I can help here.link, please. It would take a small amount of time to give you the correct command, if you would just provide the link. I'm not going to go hunting for it.
Check.any_equipped = function() {
var args = Array.prototype.slice.call(arguments);
var actors = [], weapons = [], armors = [];
//setup actors
if (isNaN(args[0])) {
if (args[0] === "active") {for (var i = 0; i < $gameParty.battleMembers().length; i++) {actors.push($gameParty.battleMembers()[i]._actorId)}
} else {for (var i = 0; i < $gameParty.allMembers().length; i++) {actors.push($gameParty.allMembers()[i]._actorId)}}
} else {
for (var i = 0; i < args.length; i++) {
if (isNaN(args[i])) {break}; //stop when they declare weapon/armor
actors.push(args[i]);
} for (var i = 0; i < actors.length; i++) {args.shift()}
}
//setup weapons and armors arrays
for (var i = 0; i < args.length; i++) {
if (isNaN(args[i])) {phase = args[i]} else {
eval(phase + "s" + ".push($data"+ phase.charAt(0).toUpperCase() + phase.slice(1) + "s" + "[" + args[i] + "])")
}
}
for (var i = 0; i < actors.length; i++) { //for every person
var has = false;
for (var w = 0; w < weapons.length; w++) { //check weapons
has = $gameActors.actor(actors[i]).hasWeapon(weapons[w]);
} if (has) { //we got it, stop checking now
Check._whoHad = actors[i]; //save who had it
return true}
for (var a = 0; a < armors.length; a++) { //check armors
has = $gameActors.actor(actors[i]).hasArmor(armors[a]);
} if (has) { //we got it, stop checking now
Check._whoHad = actors[i]; //save who had it
return true}
}
//we checked everyone already, and nobody had it
Check._whoHad = 0;
return false;
};
Check.any_equipped(1, "armor", 6, 1, 2, 9, 10, 11)