MZ If the enemy's attack is a critical hit, it deals only 10% of the damage

I'm making a passive ability for my character. As the title said, if the enemy delivery a critical hit, my character will get only 10% of the critical damage. I'm using Visustella's notetag for this ability.

I put this in my character's note, but it won't work.

<JS Pre-Damage as Target>
if (b.result().critical) {
value *=0.1;
}
/<JS Pre-Damage as Target>
/<JS Pre-Damage as Target>
This should be;
</JS Pre-Damage as Target>

I don't know if that's the only issue, but I do know that's the write way to right that.
This should be;
</JS Pre-Damage as Target>

I don't know if that's the only issue, but I do know that's the write way to right that.
Oh my god, I'm an idiot. How can I misplace the slash.
All I can say is thank you so much. :LZYblush:
I do know that's the write way to right that.
Well, it's the right way, not the write way. 😛
Oh my god, I'm an idiot. How can I misplace the slash.
All I can say is thank you so much. :LZYblush:
I only noticed it because I've made that mistake so many times my eyes are trained to find it XD

Original thread: https://forums.rpgmakerweb.com/threads/if-the-enemys-attack-is-a-critical-hit-it-deals-only-10-of-the-damage.167343/