So I ask, how? How would I assign a variable to it? My first idea was something along the lines of
if ID2 = "Weapon 2"
{global.p2 = 2}
But obviously that didn't work. So how exactly should I go about changing this so it does? Is it even possible?
Male
buzzbomb hasn't added any friends yet.
11 July 2010 - 04:32 PM
if ID2 = "Weapon 2"
{global.p2 = 2}
08 July 2010 - 11:25 PM
draw event .. line 46 will get the selection number when you press it .. just add some code right after it, or store it as you want.
ID2 = ddm_create_menu(200,650,"Choose a weapon",10,false,false,fnt_menu);
if global.p211 > 0 {ddm_add_option (ID2,"weapon 1")};
if global.p212 > 0 {ddm_add_option (ID2,"weapon 2")};
ddm_add_option(ID2,"weapon 3");
ddm_add_option(ID2,"weapon 4");
ddm_add_option(ID2,"weapon 5");
It works fine, if the player has access to weapon 1 or 2, then they display on the menu respectively, while weapons 3-5 are always there, and it all functions properly.menuOption = ds_list_find_value(list,scrollPosition+i-1);I must be doing something wrong here... could you help out just a bit more?
07 July 2010 - 12:21 AM
21 August 2009 - 05:32 PM
13 July 2009 - 10:00 PM
Community Forum Software by IP.Board
Licensed to: YoYo Games Ltd

Find content