//////////////////ハイスコア名前空間///////////////////////////////////////////////
let NsHiScoreReimuAEasy=[];
let NsHiScoreReimuANormal=[];
let NsHiScoreReimuAHard = [];
let NsHiScoreReimuALunatic =[];
let NsHiScoreReimuAExtra = [];

let NsHiScoreReimuBEasy = [];
let NsHiScoreReimuBNormal = [];
let NsHiScoreReimuBHard = [];
let NsHiScoreReimuBLunatic = [];
let NsHiScoreReimuBExtra = [];

let NsHiScoreMarisaAEasy = [];
let NsHiScoreMarisaANormal = [];
let NsHiScoreMarisaAHard = [];
let NsHiScoreMarisaALunatic = [];
let NsHiScoreMarisaAExtra = [];

let NsHiScoreMarisaBEasy = [];
let NsHiScoreMarisaBNormal = [];
let NsHiScoreMarisaBHard = [];
let NsHiScoreMarisaBLunatic = [];
let NsHiScoreMarisaBExtra = [];

let NsHiScoreOthersEasy = [];
let NsHiScoreOthersNormal = [];
let NsHiScoreOthersHard = [];
let NsHiScoreOthersLunatic = [];
let NsHiScoreOthersExtra = [];

ascent(let k in 0..10)
{
NsHiScoreReimuAEasy=NsHiScoreReimuAEasy ~ [k];
NsHiScoreReimuANormal=NsHiScoreReimuANormal ~ [k];
NsHiScoreReimuAHard =NsHiScoreReimuAHard ~ [k];
NsHiScoreReimuALunatic =NsHiScoreReimuALunatic ~ [k];
NsHiScoreReimuAExtra =NsHiScoreReimuAExtra ~ [k];

NsHiScoreReimuBEasy =NsHiScoreReimuBEasy ~ [k];
NsHiScoreReimuBNormal =NsHiScoreReimuBNormal ~ [k];
NsHiScoreReimuBHard =NsHiScoreReimuBHard  ~ [k];
NsHiScoreReimuBLunatic =NsHiScoreReimuBLunatic ~ [k];
NsHiScoreReimuBExtra =NsHiScoreReimuBExtra ~ [k];

NsHiScoreMarisaAEasy =NsHiScoreMarisaAEasy ~ [k];
NsHiScoreMarisaANormal =NsHiScoreMarisaANormal ~ [k];
NsHiScoreMarisaAHard =NsHiScoreMarisaAHard ~ [k];
NsHiScoreMarisaALunatic =NsHiScoreMarisaALunatic ~ [k];
NsHiScoreMarisaAExtra =NsHiScoreMarisaAExtra ~ [k];

NsHiScoreMarisaBEasy =NsHiScoreMarisaBEasy ~ [k];
NsHiScoreMarisaBNormal =NsHiScoreMarisaBNormal ~ [k];
NsHiScoreMarisaBHard =NsHiScoreMarisaBHard ~ [k];
NsHiScoreMarisaBLunatic =NsHiScoreMarisaBLunatic ~ [k];
NsHiScoreMarisaBExtra =NsHiScoreMarisaBExtra ~ [k];

NsHiScoreOthersEasy =NsHiScoreOthersEasy ~ [k];
NsHiScoreOthersNormal =NsHiScoreOthersNormal ~ [k];
NsHiScoreOthersHard =NsHiScoreOthersHard ~ [k];
NsHiScoreOthersLunatic =NsHiScoreOthersLunatic ~ [k];
NsHiScoreOthersExtra =NsHiScoreOthersExtra ~ [k];
}

ascent(let k in 0..10)
{
NsHiScoreReimuAEasy[k]=		k+0.1;
NsHiScoreReimuANormal[k]=	k+10.1;	
NsHiScoreReimuAHard[k]=		k+20.1;
NsHiScoreReimuALunatic[k]=	k+30.1;
NsHiScoreReimuAExtra[k]=	k+40.1;

NsHiScoreReimuBEasy[k]=		k+0.2;
NsHiScoreReimuBNormal[k]=	k+10.2;
NsHiScoreReimuBHard[k]=		k+20.2;
NsHiScoreReimuBLunatic[k]=	k+30.2;
NsHiScoreReimuBExtra[k]=	k+40.2;

NsHiScoreMarisaAEasy[k]=	k+0.3;
NsHiScoreMarisaANormal[k]=	k+10.3;
NsHiScoreMarisaAHard[k]=	k+20.3;
NsHiScoreMarisaALunatic[k]=	k+30.3;
NsHiScoreMarisaAExtra[k]=	k+40.3;

NsHiScoreMarisaBEasy[k]=	k+0.4;
NsHiScoreMarisaBNormal[k]=	k+10.4;
NsHiScoreMarisaBHard[k]=	k+20.4;
NsHiScoreMarisaBLunatic[k]=	k+30.4;
NsHiScoreMarisaBExtra[k]=	k+40.4;

NsHiScoreOthersEasy[k]=		k+0.5;
NsHiScoreOthersNormal[k]=	k+10.5;
NsHiScoreOthersHard[k]=		k+20.5;
NsHiScoreOthersLunatic[k]=	k+30.5;
NsHiScoreOthersExtra[k]=	k+40.5;
}

let NsUpTime = "UP_TIME";
let NsPlayTime = "PLAY_TIME";
///////////プレイ回数部///////////////////////////////////////////////////////////
let NsFrequencyReimuAEasy = "F_RA_E";
let NsFrequencyReimuANormal = "F_RA_N";
let NsFrequencyReimuAHard = "F_RA_H";
let NsFrequencyReimuALunatic = "F_RA_L";
let NsFrequencyReimuAExtra = "F_RA_EX";

let NsFrequencyReimuBEasy = "F_RB_E";
let NsFrequencyReimuBNormal = "F_RB_N";
let NsFrequencyReimuBHard = "F_RB_H";
let NsFrequencyReimuBLunatic = "F_RB_L";
let NsFrequencyReimuBExtra = "F_RB_EX";

let NsFrequencyMarisaAEasy = "F_MA_E";
let NsFrequencyMarisaANormal = "F_MA_N";
let NsFrequencyMarisaAHard = "F_MA_H";
let NsFrequencyMarisaALunatic = "F_MA_L";
let NsFrequencyMarisaAExtra = "F_MA_EX";

let NsFrequencyMarisaBEasy = "F_MB_E";
let NsFrequencyMarisaBNormal = "F_MB_N";
let NsFrequencyMarisaBHard = "F_MB_H";
let NsFrequencyMarisaBLunatic = "F_MB_L";
let NsFrequencyMarisaBExtra = "F_MB_EX";

let NsFrequencyOthersEasy = "F_O_E";
let NsFrequencyOthersNormal = "F_O_N";
let NsFrequencyOthersHard = "F_O_H";
let NsFrequencyOthersLunatic = "F_O_L";
let NsFrequencyOthersExtra = "F_O_EX";
//////////////////////////////////////////////////////////////////////////////////////////
function ResultSpellDrawEachPlayer(let SpellNo,let name,let y,let Result)
{
if(Result%10000<99)
{
	DrawText("全プレイヤー合計",60,80,12,255);
	if(GetCommonDataDefaultEx(NsScore,NsSpellC[SpellNo],0)!=0)
	{			
		DrawText(name,95,y,12,255);
		if(GetCommonDataDefaultEx(NsScore,NsSpellG[SpellNo],0)==0)
		{
			SetFontColor(150,100,100,150,100,100);
		}
		DrawText("No.",40,y,12,255);
		DrawText(NumToString(SpellNo),0,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellG[SpellNo],0)),260,y,12,255);
		DrawText("/",350,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellC[SpellNo],0)),300,y,12,255);
		SetFontColor(200,150,150,200,150,150);
		DrawText("MaxBonus",260,y-15,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellB[SpellNo],0)),310,y-15,12,255);
		SetFontColor(255,255,255,50,50,255);
	}
	else
	{
		DrawText("No.",40,y,12,150);
		DrawText(NumToString(SpellNo),0,y,12,150);
		DrawText("?????",95,y,12,150);
		DrawText("---",320,y,12,150);
		DrawText("/",350,y,12,150);
		DrawText("---",370,y,12,150);
	}
}

if(Result%10100<99)
{
	DrawText(DrawDefinedPlayer1,60,80,12,255);
	if(GetCommonDataDefaultEx(NsScore,NsSpellCRA[SpellNo],0)!=0)
	{			
		DrawText(name,95,y,12,255);
		if(GetCommonDataDefaultEx(NsScore,NsSpellGRA[SpellNo],0)==0)
		{
			SetFontColor(150,100,100,150,100,100);
		}
		DrawText("No.",40,y,12,255);
		DrawText(NumToString(SpellNo),0,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellGRA[SpellNo],0)),260,y,12,255);
		DrawText("/",350,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellCRA[SpellNo],0)),300,y,12,255);
		SetFontColor(200,150,150,200,150,150);
		DrawText("MaxBonus",260,y-15,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellBRA[SpellNo],0)),310,y-15,12,255);
		SetFontColor(255,255,255,50,50,255);
	}
	else
	{
		DrawText("No.",40,y,12,150);
		DrawText(NumToString(SpellNo),0,y,12,150);
		if(GetCommonDataDefaultEx(NsScore,NsSpellC[SpellNo],0)!=0)
		{
			DrawText(name,95,y,12,255);
		}
		else
		{
			DrawText("?????",95,y,12,150);
		}
		DrawText("---",320,y,12,150);
		DrawText("/",350,y,12,150);
		DrawText("---",370,y,12,150);
	}
}

if(Result%10200<99)
{
	DrawText(DrawDefinedPlayer2,60,80,12,255);
	if(GetCommonDataDefaultEx(NsScore,NsSpellCRB[SpellNo],0)!=0)
	{			
		DrawText(name,95,y,12,255);
		if(GetCommonDataDefaultEx(NsScore,NsSpellGRB[SpellNo],0)==0)
		{
			SetFontColor(150,100,100,150,100,100);
		}
		DrawText("No.",40,y,12,255);
		DrawText(NumToString(SpellNo),0,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellGRB[SpellNo],0)),260,y,12,255);
		DrawText("/",350,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellCRB[SpellNo],0)),300,y,12,255);
		SetFontColor(200,150,150,200,150,150);
		DrawText("MaxBonus",260,y-15,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellBRB[SpellNo],0)),310,y-15,12,255);
		SetFontColor(255,255,255,50,50,255);
	}
	else
	{
		DrawText("No.",40,y,12,150);
		DrawText(NumToString(SpellNo),0,y,12,150);
		if(GetCommonDataDefaultEx(NsScore,NsSpellC[SpellNo],0)!=0)
		{
			DrawText(name,95,y,12,255);
		}
		else
		{
			DrawText("?????",95,y,12,150);
		}
		DrawText("---",320,y,12,150);
		DrawText("/",350,y,12,150);
		DrawText("---",370,y,12,150);
	}
}

if(Result%10300<99)
{
	DrawText(DrawDefinedPlayer3,60,80,12,255);
	if(GetCommonDataDefaultEx(NsScore,NsSpellCMA[SpellNo],0)!=0)
	{			
		DrawText(name,95,y,12,255);
		if(GetCommonDataDefaultEx(NsScore,NsSpellGMA[SpellNo],0)==0)
		{
			SetFontColor(150,100,100,150,100,100);
		}
		DrawText("No.",40,y,12,255);
		DrawText(NumToString(SpellNo),0,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellGMA[SpellNo],0)),260,y,12,255);
		DrawText("/",350,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellCMA[SpellNo],0)),300,y,12,255);
		SetFontColor(200,150,150,200,150,150);
		DrawText("MaxBonus",260,y-15,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellBMA[SpellNo],0)),310,y-15,12,255);
		SetFontColor(255,255,255,50,50,255);
	}
	else
	{
		DrawText("No.",40,y,12,150);
		DrawText(NumToString(SpellNo),0,y,12,150);
		if(GetCommonDataDefaultEx(NsScore,NsSpellC[SpellNo],0)!=0)
		{
			DrawText(name,95,y,12,255);
		}
		else
		{
			DrawText("?????",95,y,12,150);
		}
		DrawText("---",320,y,12,150);
		DrawText("/",350,y,12,150);
		DrawText("---",370,y,12,150);
	}
}

if(Result%10400<99)
{
	DrawText(DrawDefinedPlayer4,60,80,12,255);
	if(GetCommonDataDefaultEx(NsScore,NsSpellCMB[SpellNo],0)!=0)
	{			
		DrawText(name,95,y,12,255);
		if(GetCommonDataDefaultEx(NsScore,NsSpellGMB[SpellNo],0)==0)
		{
			SetFontColor(150,100,100,150,100,100);
		}
		DrawText("No.",40,y,12,255);
		DrawText(NumToString(SpellNo),0,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellGMB[SpellNo],0)),260,y,12,255);
		DrawText("/",350,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellCMB[SpellNo],0)),300,y,12,255);
		SetFontColor(200,150,150,200,150,150);
		DrawText("MaxBonus",260,y-15,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellBMB[SpellNo],0)),310,y-15,12,255);
		SetFontColor(255,255,255,50,50,255);
	}
	else
	{
		DrawText("No.",40,y,12,150);
		DrawText(NumToString(SpellNo),0,y,12,150);
		if(GetCommonDataDefaultEx(NsScore,NsSpellC[SpellNo],0)!=0)
		{
			DrawText(name,95,y,12,255);
		}
		else
		{
			DrawText("?????",95,y,12,150);
		}
		DrawText("---",320,y,12,150);
		DrawText("/",350,y,12,150);
		DrawText("---",370,y,12,150);
	}
}

if(Result%10500<99)
{
	DrawText("その他のプレイヤー",60,80,12,255);
	if(GetCommonDataDefaultEx(NsScore,NsSpellCO[SpellNo],0)!=0)
	{			
		DrawText(name,95,y,12,255);
		if(GetCommonDataDefaultEx(NsScore,NsSpellGO[SpellNo],0)==0)
		{
			SetFontColor(150,100,100,150,100,100);
		}
		DrawText("No.",40,y,12,255);
		DrawText(NumToString(SpellNo),0,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellGO[SpellNo],0)),260,y,12,255);
		DrawText("/",350,y,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellCO[SpellNo],0)),300,y,12,255);
		SetFontColor(200,150,150,200,150,150);
		DrawText("MaxBonus",260,y-15,12,255);
		DrawText(NumToString(GetCommonDataDefaultEx(NsScore,NsSpellBO[SpellNo],0)),310,y-15,12,255);
		SetFontColor(255,255,255,50,50,255);
	}
	else
	{
		DrawText("No.",40,y,12,150);
		DrawText(NumToString(SpellNo),0,y,12,150);
		if(GetCommonDataDefaultEx(NsScore,NsSpellC[SpellNo],0)!=0)
		{
			DrawText(name,95,y,12,255);
		}
		else
		{
			DrawText("?????",95,y,12,150);
		}
		DrawText("---",320,y,12,150);
		DrawText("/",350,y,12,150);
		DrawText("---",370,y,12,150);
	}
}
}
