Yo!
I am trying to create a skill that let's the user copy any targets buffs. Here's what I cam up with, so far, using Yanfly's Selection Control & Buffs & States Core.
However I'd like to have the skill only target enemies/allies that actually have any buffs, but I can't find the right condition. I thought it would be something like this:
but it won't return true, even if there are enemies that are buff effected. Of course any other corrections to my code are also welcome!
I am trying to create a skill that let's the user copy any targets buffs. Here's what I cam up with, so far, using Yanfly's Selection Control & Buffs & States Core.
<Custom Select Condition>
Not User
</Custom Select Condition>
<After Eval>
for (var i = 0; i < 8; i++) {
if (target._buffs[i] > 0) {
user._buffs[i] += target._buffs[i];
user._buffTurns[i] = target._buffTurns[i];
}
}
</After Eval>
However I'd like to have the skill only target enemies/allies that actually have any buffs, but I can't find the right condition. I thought it would be something like this:
<Custom Select Condition>
if (target._buffs > 0) {
condition = true;
} else {
condition = false;
}
</Custom Select Condition>
but it won't return true, even if there are enemies that are buff effected. Of course any other corrections to my code are also welcome!