
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "sʋ V20n Ԏ";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "";
	Description = "ԃp^[";
	Description = "-{-";
	Description = "[21]ʊ - Ȃ2024N322܂Ő痢s";
	Description = "[21]V - V";
	Description = "[22] - ";
	Description = "[23]~c - ZV]";
	Description = "[24]RXXNGA - /wޗǓou";
	Description = "[25]c_ - F";
	Description = "-bV-";
	Description = "[21]V - V";
	Description = "[21] - V";
	Description = "[22]s - ̗/AZj";
	Description = "[23]~c - kꉮ";
	Description = "[24]RXXNGA - Xm{";
	Description = "-bVȌoɉ-";
	Description = "[25]c_ - g - { - Xm{";
	Description = "";
	Description = "SʍLԗɂ";
	Description = "2002N̏pԗɑOサāAԑ̑SʂɍL{ꂽԗ䓰ؐɓoꂵ܂B";
	Description = "SʍL͎Ɍ䓰ؐ̏pԗɐݒ肳ꂽAHł擙ňꕔԁA邢͑SԂɃbsO{邱Ƃ܂B";
	Description = "䓰ؐւ̃z[hAݒu2024NAHiЂ̍LŌ21nł̑SʍLԗ͌ȂȂ܂B";
}
TrainInfo{
	FrontLimit = 9.35;
	TailLimit = -9.35;
	MaxVelocity = 95.0;
	MaxAcceleration = 3.0;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "{ݒ"{
}
DefineSwitch "d"{
GroupCommon = "nomtbn20d";
	Entry = "";
	Entry = "";
}
DefineSwitch "s()"{
GroupCommon = "nomtbn20s()";
	Entry = "";
	Entry = "";
	Entry = "~---l-";
	Entry = "---X-";
	Entry = "--Z-`-[";
	Entry = "----";
	Entry = "-s-k--";
	Entry = "----";
	Entry = "V---R-";
	Entry = "V---o-";
	Entry = "]----";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
}
DefineSwitch "s()"{
GroupCommon = "nomtbn20s()";
	Entry = "";
	Entry = "";
	Entry = "~---l-";
	Entry = "---X-";
	Entry = "--Z-`-[";
	Entry = "----";
	Entry = "-s-k--";
	Entry = "----";
	Entry = "V---R-";
	Entry = "V---o-";
	Entry = "]----";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
}
DefineSwitch "Ηސݒ-"{
}
DefineSwitch "qƖ"{
GroupCommon = "nomtbn20q";
	Entry = "";
	Entry = "";
}
DefineSwitch "ԗݒ"{
}
DefineSwitch "Ґ"{
GroupCommon = "nomtbn20Ґ";
	Entry = "01";	
	Entry = "02";
	Entry = "03";
	Entry = "04";
	Entry = "05";
	Entry = "06";
	Entry = "07";
	Entry = "08";
	Entry = "09";
	Entry = "10";
	Entry = "11";
	Entry = "12";
	Entry = "13";
	Entry = "14";
	Entry = "15";
	Entry = "16";
	Entry = "17";
	Entry = "18";
	Entry = "19";
	Entry = "20";
	Entry = "21";
	Entry = "22";
	Entry = "51";	
	Entry = "52";
	Entry = "53";
	Entry = "54";
	Entry = "55";
	Entry = "56";
	Entry = "57";
	Entry = "58";
	Entry = "59";
	Entry = "60";
	Entry = "61";
	Entry = "62";
	Entry = "63";
}
DefineSwitch ""{
GroupCommon = "nomtbn20";
	Entry = "21n(䓰ؐ)";
	Entry = "22n(J)";
	Entry = "23n(l)";
	Entry = "24n()";
	Entry = "25n(O)";
}
DefineSwitch "Aʒu"{										/*  M  / TYC /  S  */
	Entry = "2(]//~c/ӽ/F)";	/* 000 / 100 / 100 */
	Entry = "3(23n5E)";				/* 100 /(800)/ 300 */
	Entry = "4";					/* 700 / 300 */	
	Entry = "5";					/* 400 / 200 */
	Entry = "6";					/* 800 */
	Entry = "7(21n9E)";				/* 500 */
	Entry = "8";					/* 300 */
	Entry = "9";					/* 200 */
}
DefineSwitch "j[A"{
GroupCommon = "nomtbn20j[A";
	Entry = "{H";
	Entry = "{H";
}
DefineSwitch "p"{
GroupCommon = "nomtbn20p";
	Entry = "bsO";
	Entry = "bsO-1";
	Entry = "bsO-2";
	Entry = "bsO-3";
}
DefineSwitch "dlݒ(ו)"{
}
DefineSwitch "dl-ҐS"{
GroupCommon = "nomtbn20dl";
	Entry = "wioOǉ";
	Entry = "";
	Entry = "oꎞ";
}
DefineSwitch "]h~y"{
GroupCommon = "nomtbn20]h~y";
	Entry = "L(2000`)";
	Entry = "";
	Entry = "(ԎԊ)";
}
DefineSwitch "S"{
GroupCommon = "nomtbn20S";
	Entry = "Osaka Metro(2018.4.1`)";
	Entry = "sʋ";
}
DefineSwitch "xr[J[}[N"{
GroupCommon = "nomtbn20xr[J[}[N";
	Entry = "L(2014.6.18`)";
	Entry = "";
}
DefineSwitch "pԃXebJ["{
GroupCommon = "nomtbn2023npԃXebJ[";
	Entry = "21nXVԂł̓\tʒuύX(201X`)";
	Entry = "䓰ؐŏIݒJn(2004`)";
	Entry = "ݒJn(2002`EJ2003`)";
	Entry = "";
}

/*
	2025Nȍ~XebJ[XVĂ܂Ałł͍ČĂ܂BiXVŎ\j

	2024NOA21602F21604F̃XebJ[̔zuύXĂ܂B
	PIł2̃XCb`Kpɂ2ҐIĂꍇAԂł̔zuČ܂B
*/

DefineSwitch "ʖԔ"{
GroupCommon = "nomtbn20ʖԔ";
	Entry = "";
	Entry = "(ꕔҐ)";
}
DefineSwitch "ԊOXebJ[L"{			
GroupCommon = "nomtbn20ԊOXebJ[L";	//pԗXebJ[Ƃ̊͎XVŏC\łB
	Entry = "";	
	Entry = "1(sTCYE2024?`)";
	Entry = "2(TCY)";
	Entry = "[U[`";
	Entry = "[U[`";
	Entry = "[U[`";
	Entry = "[U[`";
	Entry = "[U[`";
	Entry = "[U[`";
	Entry = "[U[`";
}
DefineSwitch "ݒ"{
}
DefineSwitch "ȈՉe"{
	GroupCommon = "nomtbn20ȈՉA";
	Entry = "";
	Entry = "";
}
DefineSwitch "gp܂"{
	GroupCommon = "nomtbn208000pbr";
	Entry = "gp܂";
}


PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (7.3,0.43);
	}
	Axle "wheel2"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (5.1,0.43);
	}
	Axle "wheel3"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;

		Coord = (-7.3,0.43);
	}
	Axle "wheel4"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-5.1,0.43);
	}
	Body "Bogie1"{
		ModelFileName = "../n_omtbn20_1/bogie_t.x";
		ApplySwitch ""{
		Case 0:
			ApplySwitch "Aʒu"{
			Case 0,2,3,6,7:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 1,2,3:
			ApplySwitch "Aʒu"{
			Case 2,3:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 4:
			ApplySwitch "Aʒu"{
			Case 1:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		}
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.1, 0.0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.1, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "../n_omtbn20_1/bogie_t.x";
		Turn = yes;
		ApplySwitch ""{
		Case 0:
			ApplySwitch "Aʒu"{
			Case 0,1,3,7:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 1,2,3:
			ApplySwitch "Aʒu"{
			Case 0,3:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 4:
			ApplySwitch "Aʒu"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		}
		JointZY "wheel3"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.1, 0.0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-1.1, 0.0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (6.2, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.2, 1.0);
		}
	}

/*---------------------------------------`---------------------------------------*/
	Object3D "Interior"{
		ModelFileName = "../n_omtbn20_1/in_20200.x";
		Transparent = 6;
		If !"d"&& !"qƖ"{
			ChangeMaterial{
				MaterialID = 0,1,2,3,4;
				Emissive = 1.0, 1.0, 1.0;
@@@@@	@@	}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------`܂---------------------------------------*/

/*---------------------------------------ԓf`---------------------------------------*/


	Object3D "Doorll_i"{
		ModelFileName = "../n_omtbn20_1/doorill.x";
		Transparent = 3,4,5;
		If !"d"&&!"qƖ"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR1"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorlr_i"{
		ModelFileName = "../n_omtbn20_1/doorilr.x";
		Transparent = 3,4,5;
		If !"d"&&!"qƖ"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR1" {
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				 PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl_i"{
		ModelFileName = "../n_omtbn20_1/doorirl.x";
		Transparent = 3,4,5;
		If !"d"&&!"qƖ"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				 PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrr_i"{
		ModelFileName = "../n_omtbn20_1/doorirr.x";
		Transparent = 3,4,5;
		If !"d"&&!"qƖ"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				 PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

/*---------------------------------------ԓf`܂---------------------------------------*/


/*---------------------------------------ԑ̃f`---------------------------------------*/
	Object3D "MainBody"{
		ModelFileName = "../n_omtbn20_1/body_20200.x";
		Transparent = 30;
		If !"d"&&!"qƖ"{
			If !"qƖ"{
				ChangeMaterial{
					MaterialID = 28;
					Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
		}

		If ""==0 && "Aʒu"==3{
			ApplySwitch "p"{
			Case 1:
				ChangeModel = "../n_omtbn20_1/body_21400.x", 1.0;
			Case 2:
				ChangeModel = "../n_omtbn20_1/body_21400.x", 1.0;
				ShiftTexture = 5, 0.0, 0.3125;
			Case 3:
				ChangeModel = "../n_omtbn20_1/body_21400.x", 1.0;
				ShiftTexture = 5, 0.0, 0.625;
			}
		}
		ApplySwitch ""{
		Case 1:
			ChangeTexture = 5, "../n_omtbn20_1/tex/body_22900.png";
			ChangeTexture = 6, "../n_omtbn20_1/tex/body_22900.png";
			ChangeTexture = 7, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 5, "../n_omtbn20_1/tex/body_23900.png";
			ChangeTexture = 6, "../n_omtbn20_1/tex/body_23900.png";
			ChangeTexture = 7, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "Ґ">=33{
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_900.png";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_900.png";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_24900.png";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_24900.png";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 5, "../n_omtbn20_1/tex/body_25900.png";
			ChangeTexture = 6, "../n_omtbn20_1/tex/body_25900.png";
			ChangeTexture = 7, "../n_omtbn20_1/tex/body_25900.png";
		}
		If !"j[A"{
			ApplySwitch ""{
			Case 0:
				ApplySwitch "Aʒu"{
				Case 0:
					ShiftTexture = 7, -0.125, 0.0;
				Case 1:
					ShiftTexture = 7, -0.1875, 0.0;
				Case 2:
					ShiftTexture = 7, -0.25, 0.0;
				Case 3:
					ShiftTexture = 7, -0.3125, 0.0;
				Case 4:
					ShiftTexture = 7, -0.375, 0.0;
				Case 5:
					ShiftTexture = 7, -0.4375, 0.0;
				Case 6:
					ShiftTexture = 7, -0.5, 0.0;
				Case 7:
					ShiftTexture = 7, -0.5625, 0.0;
				}
			Case 1,4:
				ApplySwitch "Aʒu"{
				Case 0:
					ShiftTexture = 7, -0.5625, 0.0;
				Case 1:
					ShiftTexture = 7, -0.5, 0.0;
				Case 2:
					ShiftTexture = 7, -0.4375, 0.0;
				Case 3:
					ShiftTexture = 7, -0.375, 0.0;
				}
			Case 2,3:
				ApplySwitch "Aʒu"{
				Case 0:
					ShiftTexture = 7, -0.375, 0.0;
				Case 1:
					ShiftTexture = 7, -0.4375, 0.0;
				Case 2:
					ShiftTexture = 7, -0.5, 0.0;
				Case 3:
					ShiftTexture = 7, -0.5625, 0.0;
				}
			}
			ShiftTexture = 6, 0.0, 0.375;
		}

		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԑ̃f`܂---------------------------------------*/



/*---------------------------------------ԊOf`---------------------------------------*/
	Object3D "Doorll"{
		ModelFileName = "../n_omtbn20_1/Doorll.x";
		Transparent = 1;
		ApplySwitch ""{
		Case 0:
			If "Aʒu"==3{
				ApplySwitch "p"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorll_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorll_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorll_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			ApplySwitch "Ґ"{
			Case 33,34:
				ShiftTexture = 1, -0.25, 0.0;
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			Default:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		Joint3D "Doorll_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorlr"{
		ModelFileName = "../n_omtbn20_1/Doorlr.x";
		Transparent = 1;
		ApplySwitch ""{
		Case 0:
			If "Aʒu"==3{
				ApplySwitch "p"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorlr_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorlr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorlr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "Ґ">=33{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		Joint3D "Doorlr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "../n_omtbn20_1/Doorrl.x";
		Transparent = 1;
		ApplySwitch ""{
		Case 0:
			If "Aʒu"==3{
				ApplySwitch "p"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorrl_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorrl_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorrl_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "Ґ">=33{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		Joint3D "Doorrl_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrr"{
		ModelFileName = "../n_omtbn20_1/Doorrr.x";
		Transparent = 1;
		ApplySwitch ""{
		Case 0:
			If "Aʒu"==3{
				ApplySwitch "p"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorrr_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorrr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorrr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "Ґ">=33{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		Joint3D "Doorrr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԊOf`܂---------------------------------------*/


/*---------------------------------------ʖ`---------------------------------------*/

	Object3D "roll"{
		ModelFileName = "../n_omtbn20_1/roll_s.x";
		ApplySwitch ""{
		Case 0:
			If!"_FRONT"{
				ApplySwitch "s()"{
				Case 0:
					If !"dl-ҐS"&&!"S"{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
					}Else{
						ShiftTexture = 0, 0.0, -0.4375;
						ShiftTexture = 1, 0.0, -0.4375;
					}
				Case 2:
					ShiftTexture = 0, -0.25, -0.4375;
					ShiftTexture = 1, -0.25, -0.4375;
				Case 3:
					ShiftTexture = 0, -0.25, -0.375;
					ShiftTexture = 1, -0.25, -0.375;
				Case 4:
					ShiftTexture = 0, -0.25, -0.3125;
					ShiftTexture = 1, -0.25, -0.3125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.4375;
					ShiftTexture = 1, 0.0, -0.4375;
				Case 6:
					ShiftTexture = 0, 0.0, -0.375;
					ShiftTexture = 1, 0.0, -0.375;
				Case 7:
					ShiftTexture = 0, 0.0, -0.3125;
					ShiftTexture = 1, 0.0, -0.3125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.4375;
					ShiftTexture = 1, 0.25, -0.4375;
				Case 9:
					ShiftTexture = 0, 0.25, -0.375;
					ShiftTexture = 1, 0.25, -0.375;
				Case 10:
					ShiftTexture = 0, 0.25, -0.3125;
					ShiftTexture = 1, 0.25, -0.3125;
				Case 11:
					If "dl-ҐS"!=1{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}

				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}Else{
				ApplySwitch "s()"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.4375;
					ShiftTexture = 1, -0.25, -0.4375;
				Case 3:
					ShiftTexture = 0, -0.25, -0.375;
					ShiftTexture = 1, -0.25, -0.375;
				Case 0,4:
					ShiftTexture = 0, -0.25, -0.3125;
					ShiftTexture = 1, -0.25, -0.3125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.4375;
					ShiftTexture = 1, 0.0, -0.4375;
				Case 6:
					ShiftTexture = 0, 0.0, -0.375;
					ShiftTexture = 1, 0.0, -0.375;
				Case 7:
					ShiftTexture = 0, 0.0, -0.3125;
					ShiftTexture = 1, 0.0, -0.3125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.4375;
					ShiftTexture = 1, 0.25, -0.4375;
				Case 9:
					ShiftTexture = 0, 0.25, -0.375;
					ShiftTexture = 1, 0.25, -0.375;
				Case 10:
					ShiftTexture = 0, 0.25, -0.3125;
					ShiftTexture = 1, 0.25, -0.3125;
				Case 11:
					If "dl-ҐS"!=1{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}
		Case 1:
			If!"_FRONT"{
				ApplySwitch "s()"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.25;
					ShiftTexture = 1, -0.25, -0.25;
				Case 0,3:
					ShiftTexture = 0, -0.25, -0.1875;
					ShiftTexture = 1, -0.25, -0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, -0.125;
					ShiftTexture = 1, -0.25, -0.125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.25;
					ShiftTexture = 1, 0.0, -0.25;
				Case 6:
					ShiftTexture = 0, 0.0, -0.1875;
					ShiftTexture = 1, 0.0, -0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, -0.125;
					ShiftTexture = 1, 0.0, -0.125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.25;
					ShiftTexture = 1, 0.25, -0.25;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}Else{
				ApplySwitch "s()"{
				Case 0,2:
					ShiftTexture = 0, -0.25, -0.25;
					ShiftTexture = 1, -0.25, -0.25;
				Case 3:
					ShiftTexture = 0, -0.25, -0.1875;
					ShiftTexture = 1, -0.25, -0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, -0.125;
					ShiftTexture = 1, -0.25, -0.125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.25;
					ShiftTexture = 1, 0.0, -0.25;
				Case 6:
					ShiftTexture = 0, 0.0, -0.1875;
					ShiftTexture = 1, 0.0, -0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, -0.125;
					ShiftTexture = 1, 0.0, -0.125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.25;
					ShiftTexture = 1, 0.25, -0.25;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}
		Case 2:
			If!"_FRONT"{
				ApplySwitch "s()"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.0625;
					ShiftTexture = 1, -0.25, -0.0625;
				Case 3:
					ShiftTexture = 0, -0.25, 0.0;
					ShiftTexture = 1, -0.25, 0.0;
				Case 4:
					ShiftTexture = 0, -0.25, 0.0625;
					ShiftTexture = 1, -0.25, 0.0625;
				Case 0,5:
					ShiftTexture = 0, 0.0, -0.0625;
					ShiftTexture = 1, 0.0, -0.0625;
				Case 6:
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}Else{
				ApplySwitch "s()"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.0625;
					ShiftTexture = 1, -0.25, -0.0625;
				Case 3:
					ShiftTexture = 0, -0.25, 0.0;
					ShiftTexture = 1, -0.25, 0.0;
				Case 0,4:
					ShiftTexture = 0, -0.25, 0.0625;
					ShiftTexture = 1, -0.25, 0.0625;
				Case 5:
					ShiftTexture = 0, 0.0, -0.0625;
					ShiftTexture = 1, 0.0, -0.0625;
				Case 6:
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}
		Case 3:
			If!"_FRONT"{
				ApplySwitch "s()"{
				Case 0:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
				Case 2:
					ShiftTexture = 0, -0.25, 0.125;
					ShiftTexture = 1, -0.25, 0.125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.1875;
					ShiftTexture = 1, -0.25, 0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, 0.25;
					ShiftTexture = 1, -0.25, 0.25;
				Case 5:
					ShiftTexture = 0, 0.0, 0.125;
					ShiftTexture = 1, 0.0, 0.125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.1875;
					ShiftTexture = 1, 0.0, 0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, 0.25;
					ShiftTexture = 1, 0.0, 0.25;
				Case 8:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
				Case 9:
					If "dl-ҐS"<2{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 10:
					If "dl-ҐS"<2{
						ShiftTexture = 0, 0.25, 0.25;
						ShiftTexture = 1, 0.25, 0.25;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 11:
					If "dl-ҐS"!=1{
						ShiftTexture = 0, 0.5, 0.125;
						ShiftTexture = 1, 0.5, 0.125;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}Else{
				ApplySwitch "s()"{
				Case 0:
					If "Ґ"<4||"Ґ"==27{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
					}Else{
						ShiftTexture = 0, 0.0, 0.1875;
						ShiftTexture = 1, 0.0, 0.1875;
					}
				Case 2:
					ShiftTexture = 0, -0.25, 0.125;
					ShiftTexture = 1, -0.25, 0.125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.1875;
					ShiftTexture = 1, -0.25, 0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, 0.25;
					ShiftTexture = 1, -0.25, 0.25;
				Case 5:
					ShiftTexture = 0, 0.0, 0.125;
					ShiftTexture = 1, 0.0, 0.125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.1875;
					ShiftTexture = 1, 0.0, 0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, 0.25;
					ShiftTexture = 1, 0.0, 0.25;
				Case 8:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
				Case 9:
					If "dl-ҐS"<2{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 10:
					If "dl-ҐS"<2{
						ShiftTexture = 0, 0.25, 0.25;
						ShiftTexture = 1, 0.25, 0.25;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 11:
					If "dl-ҐS"!=1{
						ShiftTexture = 0, 0.5, 0.125;
						ShiftTexture = 1, 0.5, 0.125;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}
		Case 4:
			If!"_FRONT"{
				ApplySwitch "s()"{
				Case 0,2:
					ShiftTexture = 0, -0.25, 0.3125;
					ShiftTexture = 1, -0.25, 0.3125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.375;
					ShiftTexture = 1, -0.25, 0.375;
				Case 4:
					ShiftTexture = 0, -0.25, 0.4375;
					ShiftTexture = 1, -0.25, 0.4375;
				Case 5:
					ShiftTexture = 0, 0.0, 0.3125;
					ShiftTexture = 1, 0.0, 0.3125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.375;
					ShiftTexture = 1, 0.0, 0.375;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}Else{
				ApplySwitch "s()"{
				Case 2:
					ShiftTexture = 0, -0.25, 0.3125;
					ShiftTexture = 1, -0.25, 0.3125;
				Case 0,3:
					ShiftTexture = 0, -0.25, 0.375;
					ShiftTexture = 1, -0.25, 0.375;
				Case 4:
					ShiftTexture = 0, -0.25, 0.4375;
					ShiftTexture = 1, -0.25, 0.4375;
				Case 5:
					ShiftTexture = 0, 0.0, 0.3125;
					ShiftTexture = 1, 0.0, 0.3125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.375;
					ShiftTexture = 1, 0.0, 0.375;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}
		}
		ApplySwitch "dl-ҐS"{
		Case 0:
			ChangeTexture = 0, "../n_omtbn20_1/tex/roll_7.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/roll_7.png";
			ChangeTexture = 2, "../n_omtbn20_1/tex/roll_1.png";
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/roll_6.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/roll_6.png";
			ChangeTexture = 2, "../n_omtbn20_1/tex/roll_1.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/roll_5.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/roll_5.png";
			ChangeTexture = 2, "../n_omtbn20_1/tex/roll_0.png";
		}
		If !"d"{
			ChangeMaterial{
				MaterialID = 0,1,2;
				Emissive = 1.0, 1.0, 1.0;
@@@			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ʖ`܂---------------------------------------*/

/*---------------------------------------}[N`---------------------------------------*/

	Object3D "mark_s"{
		ModelFileName = "../n_omtbn20_1/mark_om.x";
		CastShadow = no;
		If !"S"{
			If ""==3 && "Ґ">=33{
				ChangeModel = "../n_omtbn20_1/mark_ots_s.x", 1.0;
			}
		}Else{
			ApplySwitch ""{
			Case 0:
				ShiftTexture = 0, -0.125, 0.0;
			Case 1:
				ShiftTexture = 0, -0.0625, 0.0;
			Case 2:
			Case 3:
				ShiftTexture = 0, 0.0625, 0.0;
			Case 4:
				ShiftTexture = 0, 0.125, 0.0;
			}
			ChangeModel = "../n_omtbn20_1/mark_omtb.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------}[N`܂---------------------------------------*/

/*---------------------------------------ԔԒ`---------------------------------------*/

	Object3D "number"{
		ModelFileName = "../n_omtbn20_1/number_20200.x";
		CastShadow = no;
		If ""==3&& "Ґ">=33{
			ChangeModel = "../n_omtbn20_1/number_251.x", 1.0;
		}
		ApplySwitch ""{
		Case 0:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.5;
			Case 1:
				ShiftTexture = 0, 0.0, 0.4375;
			Case 2:
				ShiftTexture = 0, 0.0, 0.375;
			Case 3:
				ShiftTexture = 0, 0.0, 0.3125;
			Case 4:
				ShiftTexture = 0, 0.0, 0.25;
			Case 5:
				ShiftTexture = 0, 0.0, 0.1875;
			Case 6:
				ShiftTexture = 0, 0.0, 0.125;
			Case 7:
				ShiftTexture = 0, 0.0, 0.0625;
			}
		Case 1:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.875;
			Case 1:
				ShiftTexture = 0, 0.0, 0.8125;
			Case 2:
				ShiftTexture = 0, 0.0, 0.75;
			Case 3:
				ShiftTexture = 0, 0.0, 0.6875;
			}
		Case 2:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.25;
			Case 1:
				ShiftTexture = 0, 0.25, 0.1875;
			Case 2:
				ShiftTexture = 0, 0.25, 0.125;
			Case 3:
				ShiftTexture = 0, 0.25, 0.0625;
			}
		Case 3:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.625;
			Case 1:
				ShiftTexture = 0, 0.25, 0.5625;
			Case 2:
				ShiftTexture = 0, 0.25, 0.5;
			Case 3:
				ShiftTexture = 0, 0.25, 0.43725;
		}
		Case 4:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.875;
			Case 1:
				ShiftTexture = 0, 0.25, 0.8125;
			}
		}
		ApplySwitch "Ґ"{
		Case 0:	
		Case 1:
			ShiftTexture = 1, 0.0, 0.0625;
		Case 2:
			ShiftTexture = 1, 0.0, 0.125;
		Case 3:
			ShiftTexture = 1, 0.0, 0.1875;
		Case 4:
			ShiftTexture = 1, 0.0, 0.25;
		Case 5:
			ShiftTexture = 1, 0.0, 0.3125;
		Case 6:
			ShiftTexture = 1, 0.0, 0.375;
		Case 7:
			ShiftTexture = 1, 0.0, 0.4375;
		Case 8:
			ShiftTexture = 1, 0.0, 0.5;
		Case 9:
			ShiftTexture = 1, 0.0, 0.5625;
		Case 10:
			ShiftTexture = 1, 0.0, 0.625;
		Case 11:
			ShiftTexture = 1, 0.0, 0.6875;
		Case 12:
			ShiftTexture = 1, 0.0, 0.75;
		Case 13:
			ShiftTexture = 1, 0.0, 0.8125;
		Case 14:
			ShiftTexture = 1, 0.0, 0.875;
		Case 15:
			ShiftTexture = 1, 0.0, 0.9375;
		Case 16:
			ShiftTexture = 1, 0.25, 0.0;
		Case 17:
			ShiftTexture = 1, 0.25, 0.0625;
		Case 18:
			ShiftTexture = 1, 0.25, 0.125;
		Case 19:
			ShiftTexture = 1, 0.25, 0.1875;
		Case 20:
			ShiftTexture = 1, 0.25, 0.25;
		Case 21:
			ShiftTexture = 1, 0.25, 0.3125;
		Case 22:
			ShiftTexture = 1, 0.25, 0.375;
		Case 23:
			ShiftTexture = 1, 0.25, 0.4375;
		Case 24:
			ShiftTexture = 1, 0.25, 0.5;
		Case 25:
			ShiftTexture = 1, 0.25, 0.5625;
		Case 26:
			ShiftTexture = 1, 0.25, 0.625;
		Case 27:
			ShiftTexture = 1, 0.25, 0.6875;
		Case 28:
			ShiftTexture = 1, 0.25, 0.75;
		Case 29:
			ShiftTexture = 1, 0.25, 0.8125;
		Case 30:
			ShiftTexture = 1, 0.25, 0.875;
		Case 31:
			ShiftTexture = 1, 0.25, 0.9375;
		Case 32:
			ShiftTexture = 1, 0.5, 0.0;
		Case 33:
			ShiftTexture = 1, 0.5, 0.0625;
		Case 34:
			ShiftTexture = 1, 0.5, 0.125;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԔԒ`܂---------------------------------------*/

/*---------------------------------------ԔԒ`---------------------------------------*/

	Object3D "number_sr"{
		ModelFileName = "";
		CastShadow = no;
		If !"j[A"&&""!=3&&!("ʖԔ"&&((""==0&&"Ґ"<=8)||(""==1&&"Ґ"<=6)||(""==2&&("Ґ"<=8||"Ґ"==27)))){
			ChangeModel = "../n_omtbn20_1/number_20200r.x", 1.0;
		}
		ApplySwitch ""{
		Case 0:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.5;
			Case 1:
				ShiftTexture = 0, 0.0, 0.4375;
			Case 2:
				ShiftTexture = 0, 0.0, 0.375;
			Case 3:
				ShiftTexture = 0, 0.0, 0.3125;
			Case 4:
				ShiftTexture = 0, 0.0, 0.25;
			Case 5:
				ShiftTexture = 0, 0.0, 0.1875;
			Case 6:
				ShiftTexture = 0, 0.0, 0.125;
			Case 7:
				ShiftTexture = 0, 0.0, 0.0625;
			}
		Case 1:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.875;
			Case 1:
				ShiftTexture = 0, 0.0, 0.8125;
			Case 2:
				ShiftTexture = 0, 0.0, 0.75;
			Case 3:
				ShiftTexture = 0, 0.0, 0.6875;
			}
		Case 2:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.25;
			Case 1:
				ShiftTexture = 0, 0.25, 0.1875;
			Case 2:
				ShiftTexture = 0, 0.25, 0.125;
			Case 3:
				ShiftTexture = 0, 0.25, 0.0625;
			}
		Case 3:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.625;
			Case 1:
				ShiftTexture = 0, 0.25, 0.5625;
			Case 2:
				ShiftTexture = 0, 0.25, 0.5;
			Case 3:
				ShiftTexture = 0, 0.25, 0.43725;
		}
		Case 4:
			ApplySwitch "Aʒu"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.875;
			Case 1:
				ShiftTexture = 0, 0.25, 0.8125;
			}
		}
		ApplySwitch "Ґ"{
		Case 0:	
		Case 1:
			ShiftTexture = 1, 0.0, 0.0625;
		Case 2:
			ShiftTexture = 1, 0.0, 0.125;
		Case 3:
			ShiftTexture = 1, 0.0, 0.1875;
		Case 4:
			ShiftTexture = 1, 0.0, 0.25;
		Case 5:
			ShiftTexture = 1, 0.0, 0.3125;
		Case 6:
			ShiftTexture = 1, 0.0, 0.375;
		Case 7:
			ShiftTexture = 1, 0.0, 0.4375;
		Case 8:
			ShiftTexture = 1, 0.0, 0.5;
		Case 9:
			ShiftTexture = 1, 0.0, 0.5625;
		Case 10:
			ShiftTexture = 1, 0.0, 0.625;
		Case 11:
			ShiftTexture = 1, 0.0, 0.6875;
		Case 12:
			ShiftTexture = 1, 0.0, 0.75;
		Case 13:
			ShiftTexture = 1, 0.0, 0.8125;
		Case 14:
			ShiftTexture = 1, 0.0, 0.875;
		Case 15:
			ShiftTexture = 1, 0.0, 0.9375;
		Case 16:
			ShiftTexture = 1, 0.25, 0.0;
		Case 17:
			ShiftTexture = 1, 0.25, 0.0625;
		Case 18:
			ShiftTexture = 1, 0.25, 0.125;
		Case 19:
			ShiftTexture = 1, 0.25, 0.1875;
		Case 20:
			ShiftTexture = 1, 0.25, 0.25;
		Case 21:
			ShiftTexture = 1, 0.25, 0.3125;
		Case 22:
			ShiftTexture = 1, 0.25, 0.375;
		Case 23:
			ShiftTexture = 1, 0.25, 0.4375;
		Case 24:
			ShiftTexture = 1, 0.25, 0.5;
		Case 25:
			ShiftTexture = 1, 0.25, 0.5625;
		Case 26:
			ShiftTexture = 1, 0.25, 0.625;
		Case 27:
			ShiftTexture = 1, 0.25, 0.6875;
		Case 28:
			ShiftTexture = 1, 0.25, 0.75;
		Case 29:
			ShiftTexture = 1, 0.25, 0.8125;
		Case 30:
			ShiftTexture = 1, 0.25, 0.875;
		Case 31:
			ShiftTexture = 1, 0.25, 0.9375;
		Case 32:
			ShiftTexture = 1, 0.5, 0.0;
		Case 33:
			ShiftTexture = 1, 0.5, 0.0625;
		Case 34:
			ShiftTexture = 1, 0.5, 0.125;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԔԒ`܂---------------------------------------*/



/*---------------------------------------sNgOXebJ[`---------------------------------------*/
	Object3D "sticker"{
		ModelFileName = "";
		CastShadow = no;
		If !(""==0 && "Aʒu"==3&&"p">0) {
			If "j[A"{
				If !"xr[J[}[N"{
					ChangeModel = "../n_omtbn20_1/sticker_1.x", 1.0;
				}Else{
					ChangeModel = "../n_omtbn20_1/sticker_0.x", 1.0;
				}
			}Else{
				If "S"{
					ChangeModel = "../n_omtbn20_1/sticker_2.x", 1.0;
				}Else{
					ChangeModel = "../n_omtbn20_1/sticker_3.x", 1.0;
				}
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
/*---------------------------------------sNgOXebJ[`܂---------------------------------------*/

/*---------------------------------------pԃXebJ[`---------------------------------------*/
	Object3D "stickerw1"{	//ˑܕ
		ModelFileName = "";
		CastShadow = no;
		If ""==0 && "Aʒu"==3 && "p"==0 {
			ApplySwitch "pԃXebJ["{
			Case 0:
				If "j[A"{
					ChangeModel = "../n_omtbn20_1/sticker_w1.x", 1.0;
				}Else{
					If "Ґ"==1 || "Ґ"==3 {
						StaticMove{
							Displacement = (0.0, -0.04, 0.0);
						}
						ChangeModel = "../n_omtbn20_1/sticker_w1.x", 1.0;
					}Else{
						ChangeModel = "../n_omtbn20_1/sticker_w2.x", 1.0;
					}
				}
			Case 1:
				ChangeModel = "../n_omtbn20_1/sticker_w1.x", 1.0;
			Case 2:
				ChangeModel = "../n_omtbn20_1/sticker_w0.x", 1.0;	//̃f͏㕔܂
			}
		}
		If ""==1 && "Aʒu"==1 && "pԃXebJ["!=3 {
			If !"j[A"{
				ChangeModel = "../n_omtbn20_1/sticker_w3.x", 1.0;
			}Else{
				ChangeModel = "../n_omtbn20_1/sticker_w0.x", 1.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
/*---------------------------------------pԃXebJ[`܂---------------------------------------*/
/*---------------------------------------ԑ̃XebJ[L`---------------------------------------*/
	Object3D "sticker_ad_body"{
		ModelFileName = "";
		If !(""==0 && "Aʒu"==3 && "p">0) {
		ApplySwitch "ԊOXebJ[L"{
		Case 1:
			ChangeModel = "../n_omtbn20_1/ad/ad_body_1.x", 1.0;
		Case 2:
			ChangeModel = "../n_omtbn20_1/ad/ad_body_2.x", 1.0;
		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԑ̃XebJ[L`܂---------------------------------------*/

/*---------------------------------------ԃXebJ[`---------------------------------------*/
	Object3D "wsticker_c"{
		ModelFileName = "";
		If !"d"&&!"qƖ"{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 1.0, 1.0, 1.0;
@@@			}
		}

			ChangeModel = "../n_omtbn20_1/sticker_w_c.x", 1.0;

			ApplySwitch ""{
			Case 0:
				ApplySwitch "Aʒu"{
				Case 0:
					ShiftTexture = 0, 0.03125, 0.03125;
					ShiftTexture = 1, 0.03125, 0.03125;
				Case 1:
					ShiftTexture = 0, -0.0, 0.03125;
					ShiftTexture = 1, -0.0, 0.03125;
				Case 2:
					ShiftTexture = 0, -0.03125, 0.03125;
					ShiftTexture = 1, -0.03125, 0.03125;
				Case 3:
					ShiftTexture = 0, -0.0625, 0.03125;
					ShiftTexture = 1, -0.0625, 0.03125;
				Case 4:
					ShiftTexture = 0, 0.0625, 0.0;
					ShiftTexture = 1, 0.0625, 0.0;
				Case 5:
					ShiftTexture = 0, 0.03125, 0.0;
					ShiftTexture = 1, 0.03125, 0.0;
				Case 7:
					ShiftTexture = 0, -0.03125, 0.0;
					ShiftTexture = 1, -0.03125, 0.0;
				}
			Case 1,4:
				ApplySwitch "Aʒu"{
				Case 0:
					ShiftTexture = 0, -0.03125, 0.0;
					ShiftTexture = 1, -0.03125, 0.0;
				Case 2:
					ShiftTexture = 0, 0.03125, 0.0;
					ShiftTexture = 1, 0.03125, 0.0;
				Case 3:
					ShiftTexture = 0, 0.0625, 0.0;
					ShiftTexture = 1, 0.0625, 0.0;
				}
			Case 2,3:
				ApplySwitch "Aʒu"{
				Case 0:
					ShiftTexture = 0, 0.0625, 0.0;
					ShiftTexture = 1, 0.0625, 0.0;
				Case 1:
					ShiftTexture = 0, 0.03125, 0.0;
					ShiftTexture = 1, 0.03125, 0.0;
				Case 3:
					ShiftTexture = 0, -0.03125, 0.0;
					ShiftTexture = 1, -0.03125, 0.0;
				}
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԃXebJ[`܂---------------------------------------*/

/*---------------------------------------ԊO`---------------------------------------*/
	Object3D "windowo"{
		ModelFileName = "../n_omtbn20_1/window_20200.x";
		Transparent = 2;
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԊO`܂---------------------------------------*/

/*---------------------------------------f`---------------------------------------*/
	Object3D "yuka"{
		ModelFileName = "";
		ApplySwitch ""{
		Case 0:
			ApplySwitch "Aʒu"{
			Case 0,1,3,6,7:
				ChangeModel = "../n_omtbn20_1/yuka_20100.x", 1.0;
			Case 2:
				ChangeModel = "../n_omtbn20_1/yuka_20700.x", 1.0;
			Case 4,5:
				ChangeModel = "../n_omtbn20_1/yuka_20500.x", 1.0;
			}
		Case 1,2,3:
			ApplySwitch "Aʒu"{
			Case 0,2,3:
				ChangeModel = "../n_omtbn20_1/yuka_20100.x", 1.0;
			Case 1:
				ChangeModel = "../n_omtbn20_1/yuka_20500.x", 1.0;
			}
		Case 4:
			ChangeModel = "../n_omtbn20_1/yuka_20100.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

/*---------------------------------------f`܂---------------------------------------*/

/*---------------------------------------]hf`---------------------------------------*/

	Object3D "Horo"{
		ModelFileName = "";
		ApplySwitch "]h~y"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
			Case 2:
				If (""==0 && "Aʒu"==7) || ((""==1 || ""==2 || ""==3) &&"Aʒu"==3) || (""==4 && "Aʒu"==1){
					ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
				}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Horo1"{
		ModelFileName = "";
		ApplySwitch "]h~y"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
			Case 2:
				ApplySwitch "Aʒu"{
					Case 0:
						ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
				}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

/*---------------------------------------]hf`܂---------------------------------------*/


/*---------------------------------------˕f`---------------------------------------*/
	Object3D "Doorl"{
		ModelFileName = "../n_omtbn20_1/tojime.x";
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
		If "_DOOR2"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (1.41, 3.14, -0.43);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "../n_omtbn20_1/tojime.x";
		If "_DOOR1"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (-1.41, 3.14, 0.43);
		}
	}
/*---------------------------------------˕f`܂---------------------------------------*/

/*---------------------------------------ȈՉef`---------------------------------------*/
	Object3D "Shadow"{
		ModelFileName = "";
		If!"ȈՉe"&&!"_SHADOW" { 
			ChangeModel = "../n_omtbn20_1/Shadow.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ȈՉef`܂---------------------------------------*/

	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

