So I have a skill that I wanted to target everyone besides the user. I've read Target Core's help file and I dind't find any option like that. Is it impossible to do with Target Core? If so, can you tell me another way to do it?
Help with Yanfly's Target Core
Javascript/Plugin SupportYou can do that with using the <Custom Target Eval> notetag.
PHP:
<Custom Target Eval>
// Collect all alive members of the current fight
$gameParty.aliveMembers().concat($gameTroop.aliveMembers())
.filter(function (member) {
// Filter out the user
return member !== user;
})
.forEach(function (member) {
// Add all other members to the targets of the skill
targets.push(member);
});
</Custom Target Eval>
Wow, many thanks.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanflys-target-core.84001/