Hello everyone, I'm having trouble trying to get one of my character's counter skill(s) working utilizing the <Custom Counter Condition> note tag with Yanfly's Counter Control (I have version 1.10). No matter what eval I seem to put in, the same skill is only ever countered with, despite its conditions returning false.
I've searched ahead of time to see if anyone else was having this problem and came across this thread. I tried the "solution" but it still didn't work for me: still doing as it was before & broke counters when only one enemy was left.
I have the plugin right under YEP Battle Engine for what its worth (as I use none of the other plugins above it on the wiki).
The battle I tested with had 4 alive enemies. They had a testable amount of HP so none died during the testing until like 3-4+ turns off of pure counters. Did this trial about 10+ times also with a CNT rate of 60%. Also did a new, blank project with only YEP Battle Engine, YEP Passive States and YEP Counter Control. Got same results.
Screenshots of my settings are here, here and here.
The passive state has this (main project):
The first skill (that is always countering regardless of its condition being false) is ID 111 and has the following code:
The second skill (that is never used even if its condition is true) is ID 114 and has:
So essentially ID 111 is only supposed to happen if there are 3 or less enemies while 114 only happens if enemy count is 4 or more.
I even did
for skill 111 and it still functioned when attacked when enemy count wasn't 2.
Anyway, I'm not really sure what I'm doing wrong - if anything.
I've searched ahead of time to see if anyone else was having this problem and came across this thread. I tried the "solution" but it still didn't work for me: still doing as it was before & broke counters when only one enemy was left.
I have the plugin right under YEP Battle Engine for what its worth (as I use none of the other plugins above it on the wiki).
The battle I tested with had 4 alive enemies. They had a testable amount of HP so none died during the testing until like 3-4+ turns off of pure counters. Did this trial about 10+ times also with a CNT rate of 60%. Also did a new, blank project with only YEP Battle Engine, YEP Passive States and YEP Counter Control. Got same results.
Screenshots of my settings are here, here and here.
The passive state has this (main project):
Code:
<Counter Skills: 111, 114>
The first skill (that is always countering regardless of its condition being false) is ID 111 and has the following code:
JavaScript:
<Custom Counter Condition>
if ($gameTroops.aliveMembers().length <= 3) {
condition = true;
} else {
condition = false;
}
</Custom Counter Condition>
JavaScript:
<Custom Counter Condition>
if ($gameTroops.aliveMembers().length >= 4) {
condition = true;
} else {
condition = false;
}
</Custom Counter Condition>
I even did
JavaScript:
$gameTroops.aliveMembers().length === 2
Anyway, I'm not really sure what I'm doing wrong - if anything.
