You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-Multitroid-Fair-Team-PVP/Export_CodeServer/gml_Script_scr_random_draw_...

40 lines
1.0 KiB

var shuff, tc;
while 1
{
checkcounter = 0
shuff = ds_list_find_value(oControl.list_locations, (ds_list_size(oControl.list_locations) - 1))
tc = 0
if (oControl.bombs_wall == 1 || oControl.spring_wall == 1)
tc++
if (oControl.spider_wall == 1)
tc++
if (oControl.spacejump_wall == 1)
tc++
if (oControl.hijump_wall == 1)
tc++
if (shuff == 7 && tc > 1)
{
}
else
checkcounter++
if (shuff == 7 && oControl.screw_wall == 1)
{
}
else
checkcounter++
if ((shuff == 0 || shuff == 2 || shuff == 3 || shuff == 4 || shuff == 6 || shuff == 7) && (oControl.mod_112 == 0 || oControl.mod_112 == 2 || oControl.mod_112 == 3 || oControl.mod_112 == 4 || oControl.mod_112 == 6 || oControl.mod_112 == 7))
{
}
else
checkcounter++
if (checkcounter == 3)
break
else
{
ds_list_shuffle(oControl.list_locations)
continue
}
}
ds_list_delete(oControl.list_locations, (ds_list_size(oControl.list_locations) - 1))
return shuff;