GameMaker: Studio

GameMaker: Studio

Find, play, and make games easily
Discover, rate, and download the best player-created games made in GameMaker: Studio for free. Or try making your own and share with the community. Click here to learn more.
B0T WaIIy 5 Oct, 2014 @ 12:38am
Help requested with RPG quest
Hello all,

I am just starting a rpg game and followed some tutorials. Now i got the following error:

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


Push :: Execution Error - Variable Get -1.switches(100073, -2147483648)
at gml_Object_obj_Wine_Quest_StepNormalEvent_1 (line 1) - switches[? "quest_wine_gathering_started"] = false;
############################################################################################

the code of step event in obj_wine quest:

switches[? "quest_wine_gathering_started"] = false;

if(GameState.switches[? "quest_wine_gathering_started"] == true){

active = true;

}

and this is the code inside the gamestate:
///Initialize IVARS
global.gamespeed = 1.0;
global.dest_x = 0;
global.dest_y = 0;

switches[? "quest_wine_gathering_started"] = false;
switches[? "quest_wine_gathering_gotwine"] = false;

and a left pressed code:
///window animatie code
with(instance_create(mouse_x - 32, mouse_y - 32, obj_Window_Base)){
image_xscale = 1 + random(4);
image_yscale = 1 + random(2);
event_user(0);
}

Please add me to explain what gone wrong
< >
Showing 1-2 of 2 comments
Daynar 8 5 Oct, 2014 @ 10:56am 
in the create event do you have

switches = ds_map_create();

The error that occured says switches was undeclared and the syntax you used looked similar to the syntax that can be used with ds_maps. So I think the problem is you don't create a ds_map before trying to edit the map.
B0T WaIIy 5 Dec, 2014 @ 8:20am 
Can somebody help me? I still got the same problem. Here is the link to download the file for dropbox: https://www.dropbox.com/s/cg2ieocbxechzb8/Elder%20Dragons%20MMO.gmz?dl=0
< >
Showing 1-2 of 2 comments
Per page: 1530 50