Scripting Help: NoMethodError

I'm not terribly well versed in the world of RGSSx scripts, so I need some help with this fatal error. Hoping some of you more experienced scripters might know how to remedy this.


During battles, this error will cause the game to crash. I've tested this error, and it seems to occur randomly.

Not Good Error.PNG


Here's a list of some of the scripts that I currently have running in the game for reference:
- Zerbu's Text Sound Effects
-Mithran's Text Adjuster
- Victor Sant's Basic Module
- Victor Sant's Stepping SFX
- Hime's 8-Directional Movement
- Cozziekun's Earthboundish Odometer
- V.M of D.T's Enemy HP Bars
- Tomokay's Battler Motion
- Moghunter's Animated Battlebacks
- Minimap Script translated by Mr. Bubbles
- Cozziekun's Earthboundish Sprite Display
- Zeus81's Fullscreen++

Side note: I suspect that the cause of this error might have something to do with the fact that I don't use Cozziekun's Earthboundish Battle system script, but I do use the Odometer and Sprite Display. However, I have no way to confirm this theory.
there's no action to be set to attack.

do you have some script that makes cutscenes or automated actions? those could interfere with the natural assignment of actions.
there's no action to be set to attack.

do you have some script that makes cutscenes or automated actions? those could interfere with the natural assignment of actions.

Not that I'm aware of. I don't have anything automated in the battles, the only thing that I don't have control over is the enemy's random attacks in battle.

Edit: I figured it out. I set a skill to these particular enemies which has a scope of 'None'. So when the attack was called into action, there was nothing to target. That's why the error kept occurring. This wasn't an issue with scripting (or at least from what I can tell it's not).

Thanks for the help!

...

So this new error occurs when I try to target an enemy as the actor's rolling HP is dropping to 0.
Issue 2.PNG


This is for sure a scripting error. If anyone can help I would appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/scripting-help-nomethoderror.108387/