Jamira's DQ Battle System script. Highlighting Actor's status when it's their turn for selecting commands

okay 1. YOU ARE AMAZING.

2... for some reason it gives me this error....
18.08.2022_03.38.00_REC.png


does it have to do with the fact that I use VE's target arrow?

EDIT

Appearently not, it appears randomly when I cancel an actor command and try to switch to Party Command... sometimes when I select an enemy to perform an action...!
when I cancel an actor command and try to switch to Party Command.
Didn't test that.
I change the code to the original code I gave at the beginning.
Should work now.
OKAY

I tested the new code and so far it works perfectly!!

Thank you so much for this and if I find any more issues I'll let you know!!
Sorry for reviving this post but something came up

18.08.2022_23.24.32_REC.png


I Get this error WHEN I DO NOT SELECT ACTOR COMMANDS at times when I attempt to escape from a battle...! It only happens when it is a FAILED escspe attempt... Before selecting the fight command to select actor commands !

so if I try to click escape before selecting actor commands and get a failed escape message, I get this error.

Any way this can be fixed? I didn't change anything on the script other than the image itself I edited it to look more like a marker.
add in before that line return if @box.nil?

Original thread: https://forums.rpgmakerweb.com/threads/jamiras-dq-battle-system-script-highlighting-actors-status-when-its-their-turn-for-selecting-commands.150460/