Every time it becomes my turn in a fight with a slime I get this error.
___________________________________________
############################################################################################
ERROR in
action number 1
of Step Event0
for object oBattle:
trying to index a variable which is not an array
at gml_Script_anon_anon_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0_3955_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0_4001_anon_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0_3955_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0
############################################################################################
gml_Script_anon_anon_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0_3955_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0_4001_anon_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0_3955_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0 (line -1)
gml_Script_anon_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0_3955_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0
gml_Script_anon_gml_Object_oBattle_Create_0_1502_gml_Object_oBattle_Create_0 (line -1)
gml_Object_oBattle_Step_0
version: IDE v2022.9.1.51
I'm new to Gamemaker so I don't know how easy this is to fix