Yanfly counter control

● ARCHIVED · READ-ONLY
Started by Snuh 7 posts View original ↗
  1. Hi!


    I'm trying to create a conditional counter state, whereby if the attackers agility is higher than the defender, one skill is used, but if the attackers agility is equal to or less than, another skill is used. I'm using Yanfly's Counter Control and have added this into the states notebox;


    <Custom Counter Skills>


    if (user.agi() > target.agi) {


    skills.push(21);


    } else if (user.agi() <= target.agi) {


    skills.push(26);


    }


    </Custom Counter Skills>


    Can anyone see the issue here? When I use this state, the counter skill used is skill 1, rather than either of the two listed here and I get a error box. Thanks in advance for any advice!


    *edit* Skill 1 being the default skill - so whatever I have above isn't triggering anything
  2. I was way off. I think I have this sorted. Will post back when 100% sure. Sorry!
  3. I'm still having issues, but I think I'm closer. I have a state with the following note tag:


    <Counter Skills: 21, 25, 26>


    Then I have three skills (21, 25 and 26) with the note tags below.


    Skill 21


    <Counter Condition>


    Not Skill: 15


    Attacker agi < defender.agi


    </Counter Condition>


    <Evade Counter>


    Skill 25


    <Counter Condition>


    Not Skill: 15


    Attacker agi === defender.agi


    </Counter Condition>


    <Evade Counter>


    Skill 26


    <Counter Condition>


    Not Skill: 15


    Attacker agi > defender.agi


    </Counter Condition>


    <Evade Counter>


    What I'd like to occur is as follows; battler is affect by state which gives 100% counter rate and three skills (21, 25 and 26) that can proc. None of which can proc when skill 15 is the skill the battler was attacked with, and then the test for more agility, equal to or less than. There is a difference of agility between the two test battlers, but I can only get the fist listed skill in the <Counter Skills> tag to proc. My understanding was that if one of the counter conditions was not met, the next possible skill would be checked. Any idea? Any help is appreciated.
  4. I cant help you but I think you have a great idea.
  5. Snuh said:
    Hi!


    I'm trying to create a conditional counter state, whereby if the attackers agility is higher than the defender, one skill is used, but if the attackers agility is equal to or less than, another skill is used. I'm using Yanfly's Counter Control and have added this into the states notebox;


    <Custom Counter Skills>


    if (user.agi() > target.agi) {


    skills.push(21);


    } else if (user.agi() <= target.agi) {


    skills.push(26);


    }


    </Custom Counter Skills>


    Can anyone see the issue here? When I use this state, the counter skill used is skill 1, rather than either of the two listed here and I get a error box. Thanks in advance for any advice!


    *edit* Skill 1 being the default skill - so whatever I have above isn't triggering anything

    The only weired thing here seems to be the brackets at "user.agi()". I never needed to use them. I could imagine that this could be a source of bug creation.
  6. I did try removing those, but still having no luck. I think there is an issue with the plugin. I've created a sample project using the notetags out of the help file and I'm having the same issue. Thanks!
  7. FYI - the latest update to Counter Control has got this working perfectly.