Hey, how can I avoid this mistake?
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object obj_battle_controller:
DoAdd :1: undefined value
at gml_Script_generate_enemy
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_generate_enemy (line -1)
gml_Object_obj_battle_controller_Create_0
In addition to this error, I encountered another one while playing.
Anomalies occur when there are more than 9 weapons.