Hi!
Is this a typo?
if ((EVENT_TYPE == EVENT_impact)
if ((EVENT_TYPE == EVENT_IMPACT)
edit : I looked at your code
Every time that there's a hit the function gets activated and does it's job.
On the first hits
the 2e part of the function "if (my.skill12 <= 0)"
does not do anything because it's not true.
But
there will come a time when both
if situation will work at the same time. (one after the other)
so skill 12 will be barely greater than zero
It will do the subtraction (no matter what)
Then skill 12 is below zero
and it will
give the new values that you placed in the second if
Since your values must never be below zero you will have to rethink
your code.
![wink wink](/ubb7/images/graemlins/default_dark/wink.gif)
My suggestion is to to use a situation like
if (!my.skill12 <= 0)
do
else
do