function ExperimentSuccess(num){
	let temparray=[];
	let temparrayb=[];
	let temparrayc=[];
	if(num==0){
		if(GetCommonData("BLUEPRINTS")[0][0]==1){
			PlaySE(GCSD~"select.wav");
			temparray=GetCommonData("WEAPONS");
			temparrayb=temparray[0];
			temparrayb[0]=temparrayb[0]+1;
			temparray[0]=temparrayb;
			SetCommonData("WEAPONS", temparray);
			temparray=GetCommonData("MATERIALS");
			ascent(i in 0..length(temparray)){
				temparray[i]=temparray[i]-experimentrequirements[num][i];
			}
			SetCommonData("MATERIALS", temparray);
			temparrayc=weaponlist[0];
			SaveCommonData;
		}else{
			PlaySE(GCSD~"error.wav");
		}
	}else if(num==1){
		if(GetCommonData("BLUEPRINTS")[1][0]==1){
			PlaySE(GCSD~"select.wav");
			temparray=GetCommonData("WEAPONS");
			temparrayb=temparray[1];
			temparrayb[0]=temparrayb[0]+1;
			temparray[1]=temparrayb;
			SetCommonData("WEAPONS", temparray);
			temparray=GetCommonData("MATERIALS");
			ascent(i in 0..length(temparray)){
				temparray[i]=temparray[i]-experimentrequirements[num][i];
			}
			SetCommonData("MATERIALS", temparray);
			temparrayc=weaponlist[1];
			SaveCommonData;
		}else{
			PlaySE(GCSD~"error.wav");
		}
	}
	if(length(temparrayc)!=0){drawstats;}
	
	function drawstats{
		if(temparrayc[1]=="GUN"){
			DrawTextCustom("TYPE: "~temparrayc[1], 23, 255, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("BULLETS: "~temparrayc[2], 23, 275, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("POWER: "~temparrayc[3], 23, 295, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("PENETRATION: "~temparrayc[4], 23, 315, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("SPEED: "~temparrayc[5], 23, 335, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("RECHARGE: "~temparrayc[6], 23, 355, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("SPECIAL: "~temparrayc[7], 23, 375, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("WEIGHT: "~temparrayc[8], 23, 395, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom("ENERGY: "~temparrayc[9], 23, 415, 640, 255, 255, 255, 255, 1, 1, 1, 0);
			DrawTextCustom(temparrayc[10], 190, 255, 630, 255, 255, 255, 255, 1, 1, 1, 0);
		}
	}
}