Error screen on counter usage

I don't know how this happened. Does anyone know what the fix would be?
1739505510440.png


1739505575365.png
1739505598621.png
Assuming you're using yep counter control, it looks like you're trying to do elemental counters, in which case you need to add "Element", not just Ice.
1739522424436.png

Not seeing anything wrong with the secon image right now.
Assuming you're using yep counter control, it looks like you're trying to do elemental counters, in which case you need to add "Element", not just Ice.
When I use "Element: Ice", it just fails to use the counter skill.
Edit: Nevermind, apparently trying to apply a stat debuff in the damage formula makes it brick. Gonna have to find another way to do it.
Well, the <Hit Counter> Notetag for example is not a skill notetag.
1739658734546.png

1739658747247.png

I suggest taking a look at the instructions.
I suggest taking a look at the insturctions.
I figured out the issue, thanks for the help though.
For the benefit of future readers: that error message generally means that a gauge has been assigned a non-numerical (or infinite) value. Your counter-skill's damage formula ends with the statement a.addDebuff(3,4). That will cause the formula to return the value undefined, which means the target's HP will become undefined, hence the error. 👋

Also, you should generally be careful about "doing" things in a damage formula: it's only designed for calculating a value. E.g. if this skill were made available to an actor with an Autobattle trait, the debuff would be applied to the user every time they considered using it (once per potential target). I notice you're using YEP_SkillCore...that plugin has notetags like <Post-Damage Eval> designed for extra effects like self debuffs etc.

Original thread: https://forums.rpgmakerweb.com/threads/error-screen-on-counter-usage.175435/