Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I tried to add the line at line 238 per the error message here:  

 

___________________________________________

############################################################################################

ERROR in

action number 1

of Create Event

for object obj_init:

 

DoAdd :1: illegal array use

 at gml_Object_obj_init_Create_0 (line 238) - global.spells[e_spell_types.heal, e_spell_stats.min_value] = 8 + global.pl_stats[e_pl_stats.level];

############################################################################################

gml_Object_obj_init_Create_0 (line 238)   



so I commented out 238 and added your line from below in it's place (straight up copy/paste):


global.spells[e_spell_types.heal][e_spell_stats.min_value] instead of global.spells[e_spell_types.heal, e_spell_stats.min_value]


I got the following error in the compiling, not in a prelaunch window:


Object: obj_init Event: Create at line 238 : Assignment operator expected