I am trying to have more critical hit effects (common events), such as with Critical Hits from Certain Hit skills. Yanfly discussed how to do a regular physical critical hit effect here, which requires Auto Passive States, and Buffs & States Core. (Note that the code shown on the page has a mistake, but I have fixed it.)
I got a critical hit common event to work for both physical attacks and magic attacks. The code I am using for magic attack is the following:
I tried to replace "this.isMagical" with "this.isCertain" and that doesn't seem to work. I made to to have automatic auto passive states for these states as well. Any idea what would work for this?
Also, if you can help me know how to make a different effect for critical certain hit attacks vs certain hit healing, that could also be fun to try out. I would guess that hp damage would have to be under 0 rather than over 0 for healing, but I haven't tried that out yet.
I got a critical hit common event to work for both physical attacks and magic attacks. The code I am using for magic attack is the following:
<Custom Establish Effect>
if (this.isMagical() && target.result().hpDamage > 0 && target.result().critical) {
$gameTemp.reserveCommonEvent(420);
}
</Custom Establish Effect>
I tried to replace "this.isMagical" with "this.isCertain" and that doesn't seem to work. I made to to have automatic auto passive states for these states as well. Any idea what would work for this?
Also, if you can help me know how to make a different effect for critical certain hit attacks vs certain hit healing, that could also be fun to try out. I would guess that hp damage would have to be under 0 rather than over 0 for healing, but I haven't tried that out yet.