sub HiScoreLoad
{
	if(SelectedDifficult=="Easy")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAEasy2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBEasy2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAEasy[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAEasy2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBEasy[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBEasy2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersEasy[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersEasy2[i],0);
			}
		}
	}

	if(SelectedDifficult=="Normal")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuANormal2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBNormal2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaANormal[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaANormal2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBNormal[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBNormal2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersNormal[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersNormal2[i],0);
			}
		}
	}


	if(SelectedDifficult=="Hard")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAHard2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBHard2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAHard2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBHard[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBHard2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersHard[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersHard2[i],0);
			}
		}
	}


	if(SelectedDifficult=="Lunatic")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALunatic[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuALunatic2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLunatic[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBLunatic2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaALunatic[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaALunatic2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBLunatic[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBLunatic2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersLunatic[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersLunatic2[i],0);
			}
		}
	}


	if(SelectedDifficult=="Extra")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAExtra[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuAExtra2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBExtra[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreReimuBExtra2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAExtra[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaAExtra2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBExtra[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreMarisaBExtra2[i],0);
			}
		}
		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let i in 0..10)
			{
				Hiscore[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersExtra[i],0);
				Hiscore2[i] = GetCommonDataDefaultEx(NsScore,NsHiScoreOthersExtra2[i],0);
			}
		}
	}
}

//----------------------------------------------------------------------------------------------------------------------
sub HiScoreSave
{
//	let score = GetScore();
	let score1 =ScoreNumber1;
	let score2 = ScoreNumber2;
	if(SelectedDifficult=="Easy")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuAEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuAEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuAEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuAEasy2[j],score2);
					break;
				}

				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuAEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuAEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuAEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuAEasy2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBEasy2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBEasy2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy2[j],score2);
					break;
				}

				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaAEasy2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBEasy2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersEasy2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersEasy[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersEasy2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersEasy[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersEasy2[j],score2);
					break;
				}
			}
		}
	}

	if(SelectedDifficult=="Normal")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuANormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuANormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuANormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuANormal2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuANormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuANormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuANormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuANormal2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBNormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBNormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBNormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBNormal2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBNormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBNormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBNormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBNormal2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaANormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaANormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaANormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaANormal2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaANormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaANormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaANormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaANormal2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBNormal2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersNormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersNormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersNormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersNormal2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersNormal[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersNormal2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersNormal[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersNormal2[j],score2);
					break;
				}
			}
		}
	}

	if(SelectedDifficult=="Hard")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuAHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuAHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuAHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuAHard2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuAHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuAHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuAHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuAHard2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBHard2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBHard2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaAHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaAHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaAHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaAHard2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaAHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaAHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaAHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaAHard2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBHard2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBHard2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersHard2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersHard[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersHard2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersHard[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersHard2[j],score2);
					break;
				}
			}
		}
	}

	if(SelectedDifficult=="Lunatic")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuALunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuALunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuALunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuALunatic2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuALunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuALunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuALunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuALunatic2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBLunatic2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaALunatic2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBLunatic2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersLunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersLunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersLunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersLunatic2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersLunatic[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersLunatic2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersLunatic[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersLunatic2[j],score2);
					break;
				}
			}
		}
	}

	if(SelectedDifficult=="Extra")
	{
		if(SelectedCharacter==DefinedPlayer1)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuAExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuAExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuAExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuAExtra2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuAExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuAExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuAExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuAExtra2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer2)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBExtra2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreReimuBExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreReimuBExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreReimuBExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreReimuBExtra2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer3)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaAExtra2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer4)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreMarisaBExtra2[j],score2);
					break;
				}
			}
		}

		if(SelectedCharacter==DefinedPlayer5)
		{
			ascent(let j in 0..10)
			{
				if(score2 > Hiscore2[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersExtra2[j],score2);
					break;
				}
				if(score2 == Hiscore2[j] && score1 >= Hiscore[j])
				{
					ascent(let i in j+1..10)
					{
						SetCommonDataEx(NsScore,NsHiScoreOthersExtra[i],Hiscore[i-1]);
						SetCommonDataEx(NsScore,NsHiScoreOthersExtra2[i],Hiscore2[i-1]);
					}
					SetCommonDataEx(NsScore,NsHiScoreOthersExtra[j],score1);
					SetCommonDataEx(NsScore,NsHiScoreOthersExtra2[j],score2);
					break;
				}
			}
		}
	}
}