How to make an enemy (or troop) shake using a script in a Common Event?

Hello!

Would anyone know how to make an enemy Battler Sprite (static) shake during a Battle Scene (front view) when a Common Event is triggered / called? I am successfully calling the Common Event, but I cannot figure out how to make an enemy (or the entire troop, doesn't matter) shake, because I'm not very well versed in JavaScript.

Basically, I'm trying to just use the existing shake function from the core script, but not when the enemy is hit with a regular attack, but when the event is called.

I tried using the regular Shake Screen, but it's not the effect I'm looking for, and as far as I know, there is no way to shake the target via Battle Animations.

I am currently not using any plugins (and would like not to).
I Googled "RPG Maker battler shake" and found this plugin:

You could check the instructions to see if there's anything for a script call separate from the battler getting hit - or, @TheoAllen is very active on the forums, he might be able to give you the code to call the shake from a common event.
That plugin is for MZ, I wouldn't guarantee if it works in MV 😛
I Googled "RPG Maker battler shake" and found this plugin:

You could check the instructions to see if there's anything for a script call separate from the battler getting hit - or, @TheoAllen is very active on the forums, he might be able to give you the code to call the shake from a common event.
That plugin is for MZ, I wouldn't guarantee if it works in MV 😛

Thank you both very much! I checked your plugin and realized what I did wrong.

Sprite_Enemy.prototype.updatePosition = function() { Sprite_Battler.prototype.updatePosition.call(this); this.x += this._shake; };

I just ended up adding this bit of code from the core Sprite_Enemy.js script to the Common Event, and just tested it with a random value instead of this._shake, and it worked. Now I just have to mess around with it a little to get it to look like a proper shake and initialize the position.

Cheers!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-enemy-or-troop-shake-using-a-script-in-a-common-event.157428/