I know I've been making a lot of help topics lately. I've just being doing a lot of JavaScript-related things lately, and running into issues with all of them. This one in particular has been a MASSIVE headache.
It's related to my last question, concerning the same boss and same batch of Elemental Barrier states. To save some time on behalf of the reader, each state has a specific element it's weak to, one element it's immune to, and two it resists. If the weakness is struck, the state is removed. After much headache I managed to figure out how to get the state removal bit to work properly.
However, now I'm having a new issue with the same states. In case the player gets smart and tries bypassing the whole barrier change business by using a non-elemental spell, I want the state to trigger a counter that drains all the player's MP.
My first thought was to use Yanfly's Counter Control. This is the notetag I put into the Counter Skill:
<Counter Condition>
Not Element: 1
Not Element: 2
Not Element: 3
Not Element: 4
</Counter Condition>
This does indeed make the counter skill proc when struck with a non-elemental spell. Unfortunately, it doesn't take into account whether or not the non-elemental spell actually does damage. So not only does it counter the big damage non-elemental spells I want it to counter, it also counters my enemy scan skill, my debuff skills, and so on.
I should note that the two strongest non-elemental spells are Certain Hit, so I can't use that property either.
I want the counter to only proc when the boss takes non-elemental damage. Fortunately, Counter Control has an Eval condition. Unfortunately, absolutely nothing I could think of to put into it worked:
It's related to my last question, concerning the same boss and same batch of Elemental Barrier states. To save some time on behalf of the reader, each state has a specific element it's weak to, one element it's immune to, and two it resists. If the weakness is struck, the state is removed. After much headache I managed to figure out how to get the state removal bit to work properly.
However, now I'm having a new issue with the same states. In case the player gets smart and tries bypassing the whole barrier change business by using a non-elemental spell, I want the state to trigger a counter that drains all the player's MP.
My first thought was to use Yanfly's Counter Control. This is the notetag I put into the Counter Skill:
<Counter Condition>
Not Element: 1
Not Element: 2
Not Element: 3
Not Element: 4
</Counter Condition>
This does indeed make the counter skill proc when struck with a non-elemental spell. Unfortunately, it doesn't take into account whether or not the non-elemental spell actually does damage. So not only does it counter the big damage non-elemental spells I want it to counter, it also counters my enemy scan skill, my debuff skills, and so on.
I should note that the two strongest non-elemental spells are Certain Hit, so I can't use that property either.
I want the counter to only proc when the boss takes non-elemental damage. Fortunately, Counter Control has an Eval condition. Unfortunately, absolutely nothing I could think of to put into it worked:
- I first tried this.isDamage(). That gave me a "function is undefined" error.
- Then I tried baseDamage (the variable used in the Damage formula, if the Damage Core is to be believed). I got the same result.
- My next attempt was target.result().hpDamage > 0. That didn't give me an error, but the counter doesn't proc at all.
- Then I figured that since it's the user using the counter, I'd try user.result().hpDamage > 0. No error, but the counter still didn't proc at all.