Fatal Error During Battle

  1. Error that crashes the game

  2. Here’s the error:


############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_battlecontroller:

Unable to find any instance for object index ‘4’ name ‘obj_core’
at gml_Script_inv_ItemForbidden
############################################################################################

stack frame is
gml_Script_inv_ItemForbidden (line 0)
gml_Script_scr_GetRandomCreatureByClass
gml_Script_bc_CreatureCast
gml_Script_bc_CreatureCastRandomSpell
gml_Script_bc_OnAttack
gml_Script_bc_CreatureAttack
gml_Script_bc_Turn
gml_Object_obj_battlecontroller_Step_0

  1. Happens during battle, I think when the game’s wanting to cast a spell.

  2. Windows 7, game version 0.02