if(phase==13 && stagephase==2){
	DeleteEnemyShot(ALL);
	if(enemiescalled<1){
		if(GetCommonData("Difficulty")==1){ CreateEnemyBossFromFile("script\Events\Stage 2\Boss Easy.txt",cx,cy,0,0,NULL); }
		if(GetCommonData("Difficulty")==2){ CreateEnemyBossFromFile("script\Events\Stage 2\Boss Normal.txt",cx,cy,0,0,NULL); }
		if(GetCommonData("Difficulty")==3){ CreateEnemyBossFromFile("script\Events\Stage 2\Boss Hard.txt",cx,cy,0,0,NULL); }
		if(GetCommonData("Difficulty")==4){ CreateEnemyBossFromFile("script\Events\Stage 2\Boss Lunatic.txt",cx,cy,0,0,NULL); }
		}
	enemiescalled++;
	if(enemiescalled==1){ nextphase=1; }
}

if(phase==14 && stagephase==2){
	if(GetCommonData("Conversation")==1){
	CreateEnemyFromFile("script\Events\Stage 2\Dialogue PostBoss.txt",cx,cy,0,0,NULL);
	SetCommonData("Conversation",0);
	}
	if(GetCommonData("Conversation")==2){

if(Continued==false){
	if(GetCommonData("Difficulty")==1 && GetCommonData("HighScoreEasy")[2]<(GetScore-oldscore)){
		let scorearray=GetCommonData("HighScoreEasy");
		scorearray[2]=GetScore-oldscore;
		SetCommonData("HighScoreEasy",scorearray);
	}
	if(GetCommonData("Difficulty")==2 && GetCommonData("HighScoreNormal")[2]<(GetScore-oldscore)){
		let scorearray=GetCommonData("HighScoreNormal");
		scorearray[2]=GetScore-oldscore;
		SetCommonData("HighScoreNormal",scorearray);
	}
	if(GetCommonData("Difficulty")==3 && GetCommonData("HighScoreHard")[2]<(GetScore-oldscore)){
		let scorearray=GetCommonData("HighScoreHard");
		scorearray[2]=GetScore-oldscore;
		SetCommonData("HighScoreHard",scorearray);
	}
	if(GetCommonData("Difficulty")==4 && GetCommonData("HighScoreLunatic")[2]<(GetScore-oldscore)){
		let scorearray=GetCommonData("HighScoreLunatic");
		scorearray[2]=GetScore-oldscore;
		SetCommonData("HighScoreLunatic",scorearray);
	}
SaveCommonData;
}

	phase=0;
	stagephase=3;
	SetCommonData("Conversation",0);
	if(GetCommonDataDefault("StageUnlocked",0)<2){ SetCommonData("StageUnlocked",2); }
	SaveCommonData;
	CreateEnemyFromFile("script\Functions\stageclear.txt",0,0,0,0,0);
	}
}