
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "V20XVԑf 擪";
	PluginAuthor = "n";
	IconTexture = "icon.png";
}
TrainInfo{
	FrontLimit = 9.55;
	TailLimit = -9.35;
	MaxVelocity = 70.0;
	MaxAcceleration = 3.0;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "{ݒ"{
}
DefineSwitch "d"{
GroupCommon = "nomtbn20d";
	Entry = "";
	Entry = "";
}
DefineSwitch "Ηސݒ-"{
}
DefineSwitch "OƓ"{
GroupCommon = "nomtbn20OƓ";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch ""{
GroupCommon = "nomtbn20";
	Entry = "";
	Entry = "()";
	Entry = "";
}
DefineSwitch ""{
GroupCommon = "nomtbn20";
	Entry = "";
	Entry = "";
}
DefineSwitch "^]"{
GroupCommon = "nomtbn20^]";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch "qƖ"{
GroupCommon = "nomtbn20q";
	Entry = "";
	Entry = "";
}
DefineSwitch "YtA"{
GroupCommon = "nomtbn20LF";
	Entry = "";
	Entry = "";
}
DefineSwitch "Ԑݒ"{
}
DefineSwitch "s"{
GroupCommon = "nomtbn20s";
	Entry = "===-===-===-===-===";
	Entry = "M16-T11-Y16-C18-S24";
	Entry = "M29-T36-Y19-C19-S11";
	Entry = "M30-T12-Y11-C11-S21";
	Entry = "M08-T29-Y21-C23-S20";
	Entry = "M27-T17-Y20-C27-S13";
	Entry = "M15-T33-===-C26-===";
	Entry = "M23-T35-===-C10-===";
	Entry = "M13-===-===-C30-===";
	Entry = "M11-===-===-C15-===";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
}
DefineSwitch "擪Ԏdl"{			
GroupCommon = "nomtbn20擪Ԏdl";
	Entry = "Cp[^ECg^";	
	Entry = "Cp[XVECg^";
	Entry = "Cp[^ECgXV";
	Entry = "Cp[XVECgXV";
}
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 = "";	
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "56";
	Entry = "";	
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch "OʎԔԃTCY"{
GroupCommon = "nomtbn20OʎԔԃTCY";
	Entry = "ʏ";
	Entry = "(22: 01`07F | 23: 01`07,56F | 24: 56F)";
}
DefineSwitch ""{
GroupCommon = "nomtbn20";
	Entry = "M";
	Entry = "T";
	Entry = "Y";
	Entry = "C";
	Entry = "S";
}
DefineSwitch "Aʒu"{
	Entry = "1(]//~c/ӽ/F)";	//2600
	Entry = "4/5/6/9/10";				//2900
}
DefineSwitch "Ռ"{
	Entry = "J";
	Entry = "";
}
DefineSwitch "]h~y"{
GroupCommon = "nomtbn20]h~y";
	Entry = "L(2000`)";
	Entry = "";
	Entry = "(ԎԊ)";
}
DefineSwitch "S"{
GroupCommon = "nomtbn20S";
	Entry = "sʋ";
	Entry = "Osaka Metro(2018.4.1`)";
}
DefineSwitch "xr[J[}[N"{
GroupCommon = "nomtbn20xr[J[}[N";
	Entry = "L(2014.6.18`)";
	Entry = "";
}
DefineSwitch "ȈՉe"{
	GroupCommon = "nomtbn20ȈՉA";
	Entry = "";
	Entry = "";
}

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 1,2,3:
				ApplySwitch "Aʒu"{
					Case 0:
						ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
				}
			Case 4:
				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 1,2,3:
				ApplySwitch "Aʒu"{
					Case 0:
						ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
				}
			Case 4:
				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 = "";
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (6.2, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.2, 1.0);
		}
	}
/*---------------------------------------_~[ԑ̒`܂---------------------------------------*/

/*---------------------------------------ԑ̃f`---------------------------------------*/
	Object3D "MainBody"{
		ModelFileName = "body_20900r.x";
		Transparent = 9,30;

		//擪Ԏԑ̎dl`

		ApplySwitch "擪Ԏdl"{
			Case 1:
				ChangeModel = "body_20900r_1.x", 1.0;
			Case 2:
				ChangeTexture = 0, "tex/O_n20.png";
				ChangeTexture = 1, "tex/O_n20.png";
			Case 3:
				ChangeModel = "body_20900r_1.x", 1.0;
				ChangeTexture = 0, "tex/O_n20.png";
				ChangeTexture = 1, "tex/O_n20.png";
		}

		//擪Ԏԑ̎dl`܂


		//EƖ`

		If "d"==0{
			If ("OƓ"==0 && !"_FRONT"&&!"_CONNECT1")||"OƓ"==1{
				ChangeAlpha = 1,1.0;
				NoShadow = 0,1;
@@@@@	@@	}
			If (""==0 && "_FRONT"&&!"_CONNECT1")||""==1{
				ChangeMaterial{
					MaterialID = 4;
					Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
				NoReceiveShadow = 4;
				ShiftTexture = 4, 0.0, -0.03125;
			}
			If ""==0{
					ChangeMaterial{
						MaterialID = 2,3;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
			If "qƖ"==0{
					ChangeMaterial{
						MaterialID = 19,20,21,22,23,24,25,26,27,28;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
			If "^]"==1 || ("^]"==0 && "_FRONT"){
					ChangeMaterial{
						MaterialID = 14,15,16,17,18;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
		}

		//EƖ`܂


		//Ռ`

		ApplySwitch "Ռ"{
			Case 1:
				ShiftTexture = 29, 0.25, 0.0;
		}

		//Ռ`܂


		//ђ`

		ApplySwitch ""{
			Case 0:
				ApplySwitch "s"{
					Case 1:
						ShiftTexture = 2, 0.0, 0.125;
						ShiftTexture = 3, 0.0, 0.125;
					Case 2:
						ShiftTexture = 2, 0.0, 0.25;
						ShiftTexture = 3, 0.0, 0.25;
					Case 3:
						ShiftTexture = 2, 0.0, 0.375;
						ShiftTexture = 3, 0.0, 0.375;
					Case 4:
						ShiftTexture = 2, 0.0, 0.5;
						ShiftTexture = 3, 0.0, 0.5;
					Case 5:
						ShiftTexture = 2, 0.0, 0.625;
						ShiftTexture = 3, 0.0, 0.625;
					Case 6:
						ShiftTexture = 2, 0.0, 0.75;
						ShiftTexture = 3, 0.0, 0.75;
					Case 7:
						ShiftTexture = 2, 0.0, 0.875;
						ShiftTexture = 3, 0.0, 0.875;
					Case 8:
						ShiftTexture = 2, 0.25, 0.0;
						ShiftTexture = 3, 0.25, 0.0;
					Case 9:
						ShiftTexture = 2, 0.25, 0.125;
						ShiftTexture = 3, 0.25, 0.125;
					Case 10:
						ShiftTexture = 2, 0.25, 0.25;
						ShiftTexture = 3, 0.25, 0.25;
					Case 11:
						ShiftTexture = 2, 0.25, 0.375;
						ShiftTexture = 3, 0.25, 0.375;
					Case 12:
						ShiftTexture = 2, 0.25, 0.5;
						ShiftTexture = 3, 0.25, 0.5;
					Case 13:
						ShiftTexture = 2, 0.25, 0.625;
						ShiftTexture = 3, 0.25, 0.625;
					Case 14:
						ShiftTexture = 2, 0.25, 0.75;
						ShiftTexture = 3, 0.25, 0.75;
				}
			Case 1:
				ApplySwitch "s"{
					Case 1:
						ShiftTexture = 2, 0.5, 0.0;
						ShiftTexture = 3, 0.5, 0.0;
					Case 2:
						ShiftTexture = 2, 0.5, 0.125;
						ShiftTexture = 3, 0.5, 0.125;
					Case 3:
						ShiftTexture = 2, 0.5, 0.25;
						ShiftTexture = 3, 0.5, 0.25;
					Case 4:
						ShiftTexture = 2, 0.5, 0.375;
						ShiftTexture = 3, 0.5, 0.375;
					Case 5:
						ShiftTexture = 2, 0.5, 0.5;
						ShiftTexture = 3, 0.5, 0.5;
					Case 6:
						ShiftTexture = 2, 0.5, 0.625;
						ShiftTexture = 3, 0.5, 0.625;
					Case 7:
						ShiftTexture = 2, 0.5, 0.75;
						ShiftTexture = 3, 0.5, 0.75;
					Case 12:
						ShiftTexture = 2, 0.25, 0.5;
						ShiftTexture = 3, 0.25, 0.5;
					Case 13:
						ShiftTexture = 2, 0.25, 0.625;
						ShiftTexture = 3, 0.25, 0.625;
					Case 14:
						ShiftTexture = 2, 0.25, 0.75;
						ShiftTexture = 3, 0.25, 0.75;
				}
			ShiftTexture = 5, 0.0, 0.15625;
			ShiftTexture = 6, 0.0, 0.15625;
			ShiftTexture = 7, 0.15625, 0.0;
			Case 2:
				ApplySwitch "s"{
					Case 1:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
					Case 2:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.0, 0.125;
						ShiftTexture = 3, 0.0, 0.125;
					Case 3:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.0, 0.25;
						ShiftTexture = 3, 0.0, 0.25;
					Case 4:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.0, 0.375;
						ShiftTexture = 3, 0.0, 0.375;
					Case 5:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.0, 0.5;
						ShiftTexture = 3, 0.0, 0.5;
					Case 12:
						ShiftTexture = 2, 0.25, 0.5;
						ShiftTexture = 3, 0.25, 0.5;
					Case 13:
						ShiftTexture = 2, 0.25, 0.625;
						ShiftTexture = 3, 0.25, 0.625;
					Case 14:
						ShiftTexture = 2, 0.25, 0.75;
						ShiftTexture = 3, 0.25, 0.75;
				}
			ShiftTexture = 5, 0.0, 0.3125;
			ShiftTexture = 6, 0.0, 0.3125;
			ShiftTexture = 7, 0.3125, 0.0;
			Case 3:
				ApplySwitch "s"{
					Case 1:
						ShiftTexture = 2, 0.75, 0.0;
						ShiftTexture = 3, 0.75, 0.0;
					Case 2:
						ShiftTexture = 2, 0.75, 0.125;
						ShiftTexture = 3, 0.75, 0.125;
					Case 3:
						ShiftTexture = 2, 0.75, 0.25;
						ShiftTexture = 3, 0.75, 0.25;
					Case 4:
						ShiftTexture = 2, 0.75, 0.375;
						ShiftTexture = 3, 0.75, 0.375;
					Case 5:
						ShiftTexture = 2, 0.75, 0.5;
						ShiftTexture = 3, 0.75, 0.5;
					Case 6:
						ShiftTexture = 2, 0.75, 0.625;
						ShiftTexture = 3, 0.75, 0.625;
					Case 7:
						ShiftTexture = 2, 0.75, 0.75;
						ShiftTexture = 3, 0.75, 0.75;
					Case 8:
						ShiftTexture = 2, 0.75, 0.875;
						ShiftTexture = 3, 0.75, 0.875;
					Case 9:
						ShiftTexture = 2, 0.5, 0.875;
						ShiftTexture = 3, 0.5, 0.875;
					Case 10:
						ShiftTexture = 2, 0.25, 0.875;
						ShiftTexture = 3, 0.25, 0.875;
					Case 12:
						ShiftTexture = 2, 0.25, 0.5;
						ShiftTexture = 3, 0.25, 0.5;
					Case 13:
						ShiftTexture = 2, 0.25, 0.625;
						ShiftTexture = 3, 0.25, 0.625;
					Case 14:
						ShiftTexture = 2, 0.25, 0.75;
						ShiftTexture = 3, 0.25, 0.75;
				}
			ShiftTexture = 5, 0.0, 0.46875;
			ShiftTexture = 6, 0.0, 0.46875;
			ShiftTexture = 7, 0.46875, 0.0;
			Case 4:
				ApplySwitch "s"{
					Case 1:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.25, 0.0;
						ShiftTexture = 3, 0.25, 0.0;
					Case 2:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.25, 0.125;
						ShiftTexture = 3, 0.25, 0.125;
					Case 3:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.25, 0.25;
						ShiftTexture = 3, 0.25, 0.25;
					Case 4:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.25, 0.375;
						ShiftTexture = 3, 0.25, 0.375;
					Case 5:
						ChangeTexture = 2, "tex/3.png";
						ChangeTexture = 3, "tex/3.png";
						ShiftTexture = 2, 0.25, 0.5;
						ShiftTexture = 3, 0.25, 0.5;
					Case 12:
						ShiftTexture = 2, 0.25, 0.5;
						ShiftTexture = 3, 0.25, 0.5;
					Case 13:
						ShiftTexture = 2, 0.25, 0.625;
						ShiftTexture = 3, 0.25, 0.625;
					Case 14:
						ShiftTexture = 2, 0.25, 0.75;
						ShiftTexture = 3, 0.25, 0.75;
				}
			ShiftTexture = 5, 0.0, 0.625;
			ShiftTexture = 6, 0.0, 0.625;
			ShiftTexture = 7, 0.625, 0.0;
		}

		//ђ`܂


		//сiʍԕ\j`

		ApplySwitch ""{
			Case 0:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 34, 0.5625, 0.0;
				}
			Case 1:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 34, 0.0, 0.15625;
					Case 1:
						ShiftTexture = 34, 0.3125, 0.15625;
				}
			Case 2:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 34, 0.3125, 0.3125;
					Case 1:
						ShiftTexture = 34, 0.0, 0.3125;
				}
			Case 3:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 34, 0.3125, 0.46875;
					Case 1:
						ShiftTexture = 34, 0.0, 0.46875;
				}
			Case 4:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 34, 0.0, 0.625;
					Case 1:
						ShiftTexture = 34, 0.1875, 0.625;
				}
		}

		//сiʍԕ\j`܂


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

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

	Object3D "number"{
		ModelFileName = "";
		CastShadow = no;

		//ԔԃTCYύX`

		If "OʎԔԃTCY"==1{
			ChangeModel = "../n_omtbn20n_1/number_22901r.x", 1.0;
		}Else{
			ChangeModel = "../n_omtbn20n_1/number_20900r.x", 1.0;
		}

		//ԔԃTCYύX`܂


		//SEѐF`

		ApplySwitch "S"{
			Case 0:
				ApplySwitch ""{
					Case 1:
						ShiftTexture = 6, 0.0625, 0.0;
					Case 2:
						ShiftTexture = 6, 0.125, 0.0;
					Case 3:
						ShiftTexture = 6, 0.1875, 0.0;
					Case 4:
						ShiftTexture = 6, 0.25, 0.0;
				}
				ChangeAlpha = 7,0.0;
			Case 1:
				ChangeAlpha = 6,0.0;
				ChangeAlpha = 7,1.0;
		}

		//SEѐF`܂


		//Ԕԁiԁj`

		ApplySwitch ""{
			Case 0:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 1, 0.0, 0.5625;
						ShiftTexture = 3, 0.0, 0.5625;
					Case 1:
				}
			Case 1:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 1, 0.0, 0.9375;
						ShiftTexture = 3, 0.0, 0.9375;
					Case 1:
						ShiftTexture = 1, 0.0, 0.625;
						ShiftTexture = 3, 0.0, 0.625;
				}
			Case 2:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 1, 0.25, 0.3125;
						ShiftTexture = 3, 0.25, 0.3125;
					Case 1:
						ShiftTexture = 1, 0.25, 0.0;
						ShiftTexture = 3, 0.25, 0.0;
				}
			Case 3:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 1, 0.25, 0.6875;
						ShiftTexture = 3, 0.25, 0.6875;
					Case 1:
						ShiftTexture = 1, 0.25, 0.375;
						ShiftTexture = 3, 0.25, 0.375;
				}
			Case 4:
				ApplySwitch "Aʒu"{
					Case 0:
						ShiftTexture = 1, 0.25, 0.9375;
						ShiftTexture = 3, 0.25, 0.9375;
					Case 1:
						ShiftTexture = 1, 0.25, 0.75;
						ShiftTexture = 3, 0.25, 0.75;
				}
		}

		//Ԕԁiԁj`܂


		//ԔԁiҐj`

		ApplySwitch "Ґ"{
			Case 0:
				
			Case 1:
				ShiftTexture = 2, 0.0, 0.0625;
				ShiftTexture = 4, 0.0, 0.0625;
			Case 2:
				ShiftTexture = 2, 0.0, 0.125;
				ShiftTexture = 4, 0.0, 0.125;
			Case 3:
				ShiftTexture = 2, 0.0, 0.1875;
				ShiftTexture = 4, 0.0, 0.1875;
			Case 4:
				ShiftTexture = 2, 0.0, 0.25;
				ShiftTexture = 4, 0.0, 0.25;
			Case 5:
				ShiftTexture = 2, 0.0, 0.3125;
				ShiftTexture = 4, 0.0, 0.3125;
			Case 6:
				ShiftTexture = 2, 0.0, 0.375;
				ShiftTexture = 4, 0.0, 0.375;
			Case 7:
				ShiftTexture = 2, 0.0, 0.4375;
				ShiftTexture = 4, 0.0, 0.4375;
			Case 8:
				ShiftTexture = 2, 0.0, 0.5;
				ShiftTexture = 4, 0.0, 0.5;
			Case 9:
				ShiftTexture = 2, 0.0, 0.5625;
				ShiftTexture = 4, 0.0, 0.5625;
			Case 10:
				ShiftTexture = 2, 0.0, 0.625;
				ShiftTexture = 4, 0.0, 0.625;
			Case 11:
				ShiftTexture = 2, 0.0, 0.6875;
				ShiftTexture = 4, 0.0, 0.6875;
			Case 12:
				ShiftTexture = 2, 0.0, 0.75;
				ShiftTexture = 4, 0.0, 0.75;
			Case 13:
				ShiftTexture = 2, 0.0, 0.8125;
				ShiftTexture = 4, 0.0, 0.8125;
			Case 14:
				ShiftTexture = 2, 0.0, 0.875;
				ShiftTexture = 4, 0.0, 0.875;
			Case 15:
				ShiftTexture = 2, 0.0, 0.9375;
				ShiftTexture = 4, 0.0, 0.9375;
			Case 16:
				ShiftTexture = 2, 0.25, 0.0;
				ShiftTexture = 4, 0.25, 0.0;
			Case 17:
				ShiftTexture = 2, 0.25, 0.0625;
				ShiftTexture = 4, 0.25, 0.0625;
			Case 18:
				ShiftTexture = 2, 0.25, 0.125;
				ShiftTexture = 4, 0.25, 0.125;
			Case 19:
				ShiftTexture = 2, 0.25, 0.1875;
				ShiftTexture = 4, 0.25, 0.1875;
			Case 20:
				ShiftTexture = 2, 0.25, 0.25;
				ShiftTexture = 4, 0.25, 0.25;
			Case 21:
				ShiftTexture = 2, 0.25, 0.3125;
				ShiftTexture = 4, 0.25, 0.3125;
			Case 22:
				ShiftTexture = 2, 0.25, 0.375;
				ShiftTexture = 4, 0.25, 0.375;
			Case 23:
				ShiftTexture = 2, 0.25, 0.4375;
				ShiftTexture = 4, 0.25, 0.4375;
			Case 24:
				ShiftTexture = 2, 0.25, 0.5;
				ShiftTexture = 4, 0.25, 0.5;
			Case 25:
				ShiftTexture = 2, 0.25, 0.5625;
				ShiftTexture = 4, 0.25, 0.5625;
			Case 26:
				ShiftTexture = 2, 0.25, 0.625;
				ShiftTexture = 4, 0.25, 0.625;
			Case 27:
				ShiftTexture = 2, 0.25, 0.6875;
				ShiftTexture = 4, 0.25, 0.6875;
			Case 28:
				ShiftTexture = 2, 0.25, 0.75;
				ShiftTexture = 4, 0.25, 0.75;
			Case 29:
				ShiftTexture = 2, 0.25, 0.8125;
				ShiftTexture = 4, 0.25, 0.8125;
			Case 30:
				ShiftTexture = 2, 0.25, 0.875;
				ShiftTexture = 4, 0.25, 0.875;
			Case 31:
				ShiftTexture = 2, 0.25, 0.9375;
				ShiftTexture = 4, 0.25, 0.9375;
			Case 32:
				ShiftTexture = 2, 0.5, 0.0;
				ShiftTexture = 4, 0.5, 0.0;
			Case 33:
				ShiftTexture = 2, 0.5, 0.0625;
				ShiftTexture = 4, 0.5, 0.0625;
			Case 34:
				ShiftTexture = 2, 0.5, 0.125;
				ShiftTexture = 4, 0.5, 0.125;
		}

		//ԔԁiҐj`܂

		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ԔԒ`܂---------------------------------------*/

/*---------------------------------------XebJ[`---------------------------------------*/
	Object3D "sticker"{
		ModelFileName = "sticker_20900r.x";
		CastShadow = no;
		ChangeAlpha = 2,0.0;
		ApplySwitch "xr[J[}[N"{
			Case 1:
				ChangeAlpha = 1,0.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------XebJ[`܂---------------------------------------*/

/*---------------------------------------Oʑ`---------------------------------------*/

	Object3D "window"{
		ModelFileName = "../n_omtbn20_1/window_20900.x";
		CastShadow = no;
		Transparent = 0;

		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------Oʑ`܂---------------------------------------*/

/*---------------------------------------f`---------------------------------------*/
	Object3D "yuka"{
		ModelFileName = "../n_omtbn20_1/yuka_20600.x";
		ApplySwitch "Aʒu"{
			Case 1:
				StaticRotation{
					RotationAxis = (0.0, 1.0, 0.0);
					RotationAngle = 180;
				}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------f`܂---------------------------------------*/

/*---------------------------------------A탂f`---------------------------------------*/
	Object3D "yuka_c"{
		ModelFileName = "../n_omtbn20_1/yuka_g.x";
		ApplySwitch ""{
			Case 1,3,4:
				ChangeModel = "../n_omtbn20_1/yuka_f.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------A탂f`܂---------------------------------------*/

/*---------------------------------------]hf`---------------------------------------*/
	Object3D "Horo-z"{
		ModelFileName = "";
		ApplySwitch "]h~y"{
			Case 0,2:
				ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------]hf`܂---------------------------------------*/

/*---------------------------------------f`---------------------------------------*/
	Object3D "Doorll"{
		ModelFileName = "../n_omtbn20_1/Doorl.x";
		Transparent = 4;
		If "d"==0 && "qƖ"==0{
			ChangeMaterial{
				MaterialID = 0,1;
				Emissive = 1.0, 1.0, 1.0;
			}
@@@@@@@@}

		//hA`

		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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}

		//hA`܂


		//ђ`

		ApplySwitch ""{
			Case 1:
				ShiftTexture = 2, 0.09375, 0.0;
			Case 2:
				ShiftTexture = 2, 0.1875, 0.0;
			Case 3:
				ShiftTexture = 2, 0.28125, 0.0;
			Case 4:
				ShiftTexture = 2, 0.375, 0.0;
		}

		//ђ`܂


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

	Object3D "Doorlr"{
		ModelFileName = "../n_omtbn20_1/Doorr.x";
		Transparent = 4;
		If "d"==0 && "qƖ"==0{
			ChangeMaterial{
				MaterialID = 0,1;
				Emissive = 1.0, 1.0, 1.0;
			}
@@@@@@@@}

		//hA`

		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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}

		//hA`܂

		//ђ`

		ApplySwitch ""{
			Case 1:
				ShiftTexture = 2, 0.09375, 0.0;
			Case 2:
				ShiftTexture = 2, 0.1875, 0.0;
			Case 3:
				ShiftTexture = 2, 0.28125, 0.0;
			Case 4:
				ShiftTexture = 2, 0.375, 0.0;
		}

		//ђ`܂

		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "../n_omtbn20_1/Doorr.x";
		Transparent = 4;
		If "d"==0 && "qƖ"==0{
			ChangeMaterial{
				MaterialID = 0,1;
				Emissive = 1.0, 1.0, 1.0;
			}
@@@@@@@@}

		//hA`

		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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}

		//hA`܂


		//ђ`

		ApplySwitch ""{
			Case 1:
				ShiftTexture = 2, 0.09375, 0.0;
			Case 2:
				ShiftTexture = 2, 0.1875, 0.0;
			Case 3:
				ShiftTexture = 2, 0.28125, 0.0;
			Case 4:
				ShiftTexture = 2, 0.375, 0.0;
		}

		//ђ`܂

		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "../n_omtbn20_1/Doorl.x";
		Transparent = 4;
		If "d"==0 && "qƖ"==0{
			ChangeMaterial{
				MaterialID = 0,1;
				Emissive = 1.0, 1.0, 1.0;
			}
@@@@@@@@}

		//hA`

		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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}

		//hA`܂


		//ђ`

		ApplySwitch ""{
			Case 1:
				ShiftTexture = 2, 0.09375, 0.0;
			Case 2:
				ShiftTexture = 2, 0.1875, 0.0;
			Case 3:
				ShiftTexture = 2, 0.28125, 0.0;
			Case 4:
				ShiftTexture = 2, 0.375, 0.0;
		}

		//ђ`܂

		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
/*---------------------------------------f`܂---------------------------------------*/

/*---------------------------------------˕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 = "../n_omtbn20_1/Shadow.x";
		CastShadow = no;
		NoCastShadow = 0;
		ApplySwitch "ȈՉe"{
			Case 1:
				ChangeModel = "", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ȈՉef`܂---------------------------------------*/

	If "d"==0 && (("OƓ"==0 && !"_FRONT")|| "OƓ"==1) && "YtA"==0 && !"_CONNECT1" {
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (0.13, 1.84, 9.14);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
				LensFlare{
				    StartAngle = 90.0;
				    Twinkle = 0.1;
					Texture{
					    Distance = 0.005;
					    Radius = 0.5;
					    TexFileName = "../n_omtbn20_1/tex/tA.png";
					    Color = #FFe2d4b4;
					}
				}
			}
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (-0.13, 1.84, 9.14);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
			}
	}
	If "d"==0 && ((""==0 && "_FRONT")|| ""==1) && "YtA"==0 && !"_CONNECT1" {
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (1.375, 2.72, 9.13);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
			LensFlare{
			    StartAngle = 30.0;
			    Twinkle = 0.1;
				Texture{
				    Distance = 0.005;
				    Radius = 0.5;
				    TexFileName = "../n_omtbn20_1/tex/tA1.png";
				    Color = #FFd20046;
				}
			}
		}
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (-1.375, 2.72, 9.13);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

