Moghunter battle hud error

Hey guys, it's me Kaveh and I am new to this community of RPG Maker Forums. So today I'm talking about the Moghunter battle hud Java script I plan to use it on my Pignite RPG game, so I can make the battle hud look like earthbound. However, when I run the game and when I encounter an enemy, it gives me this: "Cannot read property '0' of undefined.". But when I do a battle test for example a Blue Bully using the battle hud, it works well and no errors.

Battle test only result:
SuperPigniteRPG 12_28_2018 8_38_35 PM.png
Credit to Poppie360 for the Earthbound Battle System

Full game test run during battle:
SuperPigniteRPG 12_28_2018 10_46_10 AM.png



My plugins list:
plugin.PNG

So guys if you can help me solve this, that's great. Thanks 😉
Some plugins only work when you play the game, and not in battle test. It's possible the error is not happening in battle test because the plugin is not operational (or fully operational) in that mode.

Did you start a new game after adding the plugin?

Is your battle test against the same troop that you encountered when playing? If not, do a battle test against the same troop and see if you get the error.

Could you please trigger the error, hit F8 to open the developer tools, go to the console tab and take a screenshot? That will give more information about the error than you see on the game window.
Thank you so much I'll start a new game right now

Edit: It works! Thank you so much man

Original thread: https://forums.rpgmakerweb.com/threads/moghunter-battle-hud-error.103791/