Theo - Shake The Battler When Gets Hit

About:
A simple plugin that will shake the battler when it gets hit.

Sample:
shakebattler2.gif


The plugin:
Get it here

Terms of Use:

I hope you find this useful.
Nice. I create slmilar effect with action sequence for all my skills. This can make things easier. Thanks.
BTW, for some stronger skill or attack, I make the battler pushed back or small jump back, to present difference of power of the skill/attack.

Would you consider to add those to the plugin, too? Maybe some notetags like <Battler Shaked> or <Battler Pushed Back>, to be used for different skill/attack.

Just some thoughts. 😉
BTW, for some stronger skill or attack, I make the battler pushed back or small jump back, to present difference of power of the skill/attack.

Would you consider to add those to the plugin, too? Maybe some notetags like <Battler Shaked> or <Battler Pushed Back>, to be used for different skill/attack.

Just some thoughts. 😉
I will keep this as-is, the aim is to be simple.
For an extended function like a stronger shake, etc. I'll let people extend or modify my plugin by themselves to their liking.
Thank you so much for this Theo!
Would you happen to know if this works with Visustella's BattleCore plugin? Or other battle-based systems?
Would you happen to know if this works with Visustella's BattleCore plugin? Or other battle-based systems?
I tested it in a stand-alone environment (no third-party plugin).
You can help me test it with other plugins and report the result.
Is there a way to exclude beneficial spells? Awesome plugin but my battler looks kind of funny when he shakes after getting a heal.
it has screen stripes on top when done.
Thank you so muchh.
Is there a way to exclude beneficial spells? Awesome plugin but my battler looks kind of funny when he shakes after getting a heal.
The plugin has been updated, please redownload.
Can this be used in MZ as well?
I mean, this is MZ.
The plugin has been updated, please redownload.
You awesome! Thanks!!
I notice this wobbles me when I gain mp as well, I looked at your code but I am not a coder, any way to exclude?
Hmm... any recovery effect should have been excluded, but perhaps i misunderstood the base code. I will take a look later when i get the chance. Thanks for the report.
Alternative that doesn't shake for mp
JavaScript:
if((res.isHit() && (res.hpDamage > 0 || res.tpDamage > 0 || res.isStatusAffected())) || (res.drain && res.isHit() && res.mpDamage > 0)){
@Roninator2 did you test that?
did you test that?
You're right. I had to modify it a bit.
But then I could not get the shaking to happen. I changed it back to your original and it worked fine. I could not make them shake when gaining mp. only when losing mp.
I noticed it happens when I get a popup for +MP when using

<JS Post-Damage>
user.gainMp(1)
</JS Post-Damage>

In my attack notetag

Original thread: https://forums.rpgmakerweb.com/threads/theo-shake-the-battler-when-gets-hit.132730/