Every time i boot up the game and enter battle this error pops up:
############################################################################################
ERROR in
action number 1
of Step Event0
for object obj_Battle:
Variable <unknown_object>.func(100019, -2147483648) not set before reading it.
at gml_Script_BattleStatePerformAction@gml_Object_obj_Battle_Create_0 (line 143) - currentAction.func(currentUser, currentTargets);
############################################################################################
gml_Script_BattleStatePerformAction@gml_Object_obj_Battle_Create_0 (line 143)
gml_Object_obj_Battle_Step_0 (line 1) - battleState()
I tried moving the currentAction.func(currentUser, currentTargets); in other places (because gamemaker show that this line is the problem) and with that everything work besides that hp is not going down and effect animations are not working at all!
I'm following the youtube tutorial and copied every line of code but it still not working, please help!