This problem happens on Classicdev.
When you hit a script with the default sword, the hurtdx/y values are changed, but not the hearts. The hurtdx/y vector is even pointing into the wrong direction.
This is quite annoying as a) I use hurtdx/y to check whether the object is already in the hurt mode and so my script thinks that it doesn't need to remove hearts from the object (The object is invulnerable to the sword because of this).
And b) the hurtdx/y values are even wrong, and the object is not flying into the direction I intend to.
I reduced the problem to this script:
NPC Code:
if (created) {
showcharacter;
hearts = 6;
}
if (wa**** || playertouchsme) {
message #v(hearts) - #v(hurtdx) - #v(hurtdy);
}
Edit: Could anyone
please remove this stupid filter? It censored my sword-hit event...