RPG Maker Forums

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

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,578
Members
137,843
Latest member
Betwixt000
Top