Sorry, I should have been more clear. This is with the GMS2 engine v0.9
The error comes from objDifficultyMenu, in the Draw event (approx. line 11). This is the original line of code:
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object objDifficultyMenu:
trying to index a variable which is not an array
at gml_Object_objDifficultyMenu_Draw_0 (line 11) - draw_text(x+i*xSeperation+10,y+70,string_hash_to_newline("Deaths: "+string(death[i])));
############################################################################################
It was fixed when adding "s". In scrInitGlobals, it's initialized as "global.deaths = 0;" Unless I'm looking at the wrong thing, I don't see an array.
EDIT: Oh wait I think I found it. In the Create event it also says deaths:
// Save map didn't load correctly, set variables to the defaults
deaths[i] = 0;
time[i] = 0;
difficulty[i] = 0;
boss[i] = array_create(BOSS_ITEM_TOTAL,false);
clear[i] = false;
The problem might be that I was initially using the IWBTSE for GMS1.4, and I was transferring stuff from the new engine into my project. I might have not copied something correctly.