
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "sxʉcc 05n 6 擪";
	PluginAuthor = "n";
	IconTexture = "";
}
TrainInfo{
	FrontLimit = 10.27;
	TailLimit = -10.00;
	MaxVelocity = 110.0;
	MaxAcceleration = 3.54;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "{ݒ"{
}
DefineSwitch "d"{
GroupCommon = "n05-19d";
	Entry = "";
	Entry = "";
}
DefineSwitch "p^"{
	GroupCommon = "n05-19pt";
	Entry = "(FVvJei)";
	Entry = "̉ː";
}
DefineSwitch "Ηސݒ-"{
}
DefineSwitch "OƓ"{
GroupCommon = "n05-19OƓ";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch ""{
GroupCommon = "n05-19";
	Entry = "";
	Entry = "()";
	Entry = "";
}
DefineSwitch "^]"{
GroupCommon = "n05-19^]";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch "qƖ"{
GroupCommon = "n05-19q";
	Entry = "";
	Entry = "";
}
DefineSwitch "Ԑݒ"{
}
DefineSwitch "s"{
GroupCommon = "n05-19s";
	Entry = "\";
	Entry = "";
	Entry = "D";
	Entry = "";
	Entry = "O";
	Entry = "@tc";
	Entry = "@";
	Entry = "Óc";
}
DefineSwitch "Ԕԍ100"{
GroupCommon = "n05-19Ԕԍ100";
	Entry = "0";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
	Entry = "6";
	Entry = "7";
	Entry = "8";
	Entry = "9";
}
DefineSwitch "Ԕԍ10"{
GroupCommon = "n05-19Ԕԍ10";
	Entry = "0";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
	Entry = "6";
	Entry = "7";
	Entry = "8";
	Entry = "9";
}
DefineSwitch "Ԕԍ1"{
GroupCommon = "n05-19Ԕԍ1";
	Entry = "S";
	Entry = "K";
	Entry = "T";
	Entry = "\";
}
DefineSwitch "ԗݒ"{
}
DefineSwitch "Ґ"{
GroupCommon = "n05-19Ґ";
	Entry = "19";
	Entry = "20";
	Entry = "21";
	Entry = "22";
	Entry = "23";
}
DefineSwitch ""{
	Entry = "1(D擪)";	//( 07-100)
	Entry = "10(擪)";	//( 07-000)
}
DefineSwitch "dl"{
GroupCommon = "n05-19dl";
	Entry = "cc";
	Entry = "g1";
	Entry = "g2";
}
DefineSwitch "Ռ"{
	Entry = "";
	Entry = "J";
	Entry = "";
}
DefineSwitch ""{
GroupCommon = "n05-19";
	Entry = "";
	Entry = "";
}
DefineSwitch "ȈՉe"{
	GroupCommon = "n05-19ȈՉA";
	Entry = "";
	Entry = "";
}

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

		Coord = (-7.95,0.43);
	}
	Axle "wheel4"{
		ModelFileName = "../n_TRTA07_y_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-5.85,0.43);
	}
	Body "Bogie1"{
		ModelFileName = "../n_TRTA07_y_1/bogie_101.x";
		ApplySwitch ""{
			Case 1:
				ShiftTexture = 0, 0.0, 0.5;
				ShiftTexture = 1, 0.0, 0.5;
				ShiftTexture = 2, 0.0, 0.5;
				ShiftTexture = 3, 0.0, 0.5;
		}
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.05,0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05,0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "../n_TRTA07_y_1/bogie_101.x";
		Turn = yes;
		ApplySwitch ""{
			Case 1:
				ShiftTexture = 0, 0.0, 0.5;
				ShiftTexture = 1, 0.0, 0.5;
				ShiftTexture = 2, 0.0, 0.5;
				ShiftTexture = 3, 0.0, 0.5;
		}
		JointZY "wheel3"{
			AttachCoord = (0,0);
			LocalCoord = (1.05,0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05,0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (6.9, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.9, 1.0);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "body_100.x";
		NoShadow = 3,4,5,6,7;
		NoCastShadow = 16,17,56,57,68,69,70,72;
		Transparent = 59,60,61,62,63;
		If ("Ռ"==0 && !"_FRONT"&&!"_CONNECT1")||"Ռ"==2{
					ShiftTexture = 59, 0.25, 0.0;
			}
		If "d"==0{
				ApplySwitch "OƓ"{
					Case 0:
						If !"_FRONT"&&!"_CONNECT1"{
							ChangeTexture = 0, "tex/Cg_.png";
							NoShadow = 0;
							ChangeMaterial{
								MaterialID = 0;
								Emissive = 1.0, 1.0, 1.0;
@@@@@	@@					}
						}
					Case 1:
						ChangeTexture = 0, "tex/Cg_.png";
						NoShadow = 0;
						ChangeMaterial{
							MaterialID = 0;
							Emissive = 1.0, 1.0, 1.0;
@@@@@	@@				}
				}

				ApplySwitch ""{
					Case 0:
						If "_FRONT"&&!"_CONNECT1"{
							ChangeTexture = 1, "tex/e[_.png";
							NoShadow = 1;
							ChangeMaterial{
								MaterialID = 1;
								Emissive = 1.0, 1.0, 1.0;
@@@@@	@@					}
						}
					Case 1:
						ChangeTexture = 1, "tex/e[_.png";
						NoShadow = 1;
						ChangeMaterial{
							MaterialID = 1;
							Emissive = 1.0, 1.0, 1.0;
@@@@@	@@				}
				}
			If "qƖ"==0{
					ChangeMaterial{
						MaterialID = 22,23,24,25,26,27,28,29,30,31,34,35,36,37,38,39,40,41,42,43,44,47,48,49,50,51,52;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
			If "^]"==1 || ("^]"==0 && "_FRONT"){
					ChangeMaterial{
						MaterialID = 32,33,54,55;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
								ApplySwitch "s"{
									Case 1:
									Case 2:
										ShiftTexture = 3, -0.25, 0.0625;
									Case 3:
										ShiftTexture = 3, -0.25, 0.125;
									Case 4:
										ShiftTexture = 3, -0.25, 0.1875;
									Case 5:
										ShiftTexture = 3, -0.25, 0.25;
									Case 6:
										ShiftTexture = 3, -0.25, 0.3125;
									Case 7:
										ShiftTexture = 3, -0.25, 0.375;
									Default:
										ChangeAlpha = 3, 0.0;
								}
								ApplySwitch "s"{
									Case 1:
										ShiftTexture = 4, 0.1875, 0.0;
									Case 2:
										ShiftTexture = 4, 0.1875, 0.03125;
									Case 3:
										ShiftTexture = 4, 0.1875, 0.0625;
									Case 4:
										ShiftTexture = 4, 0.1875, 0.09375;
									Case 5:
										ShiftTexture = 4, 0.1875, 0.125;
									Case 6:
										ShiftTexture = 4, 0.1875, 0.15625;
									Case 7:
										ShiftTexture = 4, 0.1875, 0.1875;
									Default:
										ChangeAlpha = 4, 0.0;
								}
					ApplySwitch "Ԕԍ100"{
						Case 0:
							ShiftTexture = 5, 0.03125, 0.0;
						Case 1:
							ShiftTexture = 5, 0.03125, -0.01611328125;
						Case 2:
							ShiftTexture = 5, 0.03125, -0.0322265625;
						Case 3:
							ShiftTexture = 5, 0.03125, -0.0483398438;
						Case 4:
							ShiftTexture = 5, 0.03125, -0.064453125;
						Case 5:
							ShiftTexture = 5, 0.03125, -0.0805664062;
						Case 6:
							ShiftTexture = 5, 0.03125, -0.0966796875;
						Case 7:
							ShiftTexture = 5, 0.03125, -0.112792969;
						Case 8:
							ShiftTexture = 5, 0.03125, -0.12890625;
						Case 9:
							ShiftTexture = 5, 0.03125, -0.145019531;
						Default:
							ChangeAlpha = 5, 0.0;
					}
					ApplySwitch "Ԕԍ10"{
						Case 0:
							ShiftTexture = 6, 0.03125, 0.01611328125;
						Case 1:
							ShiftTexture = 6, 0.03125, 0.0;
						Case 2:
							ShiftTexture = 6, 0.03125, -0.01611328125;
						Case 3:
							ShiftTexture = 6, 0.03125, -0.0322265625;
						Case 4:
							ShiftTexture = 6, 0.03125, -0.0483398438;
						Case 5:
							ShiftTexture = 6, 0.03125, -0.064453125;
						Case 6:
							ShiftTexture = 6, 0.03125, -0.0805664062;
						Case 7:
							ShiftTexture = 6, 0.03125, -0.0966796875;
						Case 8:
							ShiftTexture = 6, 0.03125, -0.112792969;
						Case 9:
							ShiftTexture = 6, 0.03125, -0.12890625;
						Default:
							ChangeAlpha = 6, 0.0;
					}
					ApplySwitch "Ԕԍ1"{
						Case 0:
							ShiftTexture = 7, 0.03125, -0.12890625;
						Case 1:
							ShiftTexture = 7, 0.03125, -0.145019531;
						Case 2:
							ShiftTexture = 7, 0.03125, -0.161132812;
						Default:
							ChangeAlpha = 7, 0.0;
						}

		}Else{
			ChangeAlpha = 3, 0.0;
				ChangeAlpha = 4, 0.0;
				ChangeAlpha = 5, 0.0;
				ChangeAlpha = 6, 0.0;
				ChangeAlpha = 7, 0.0;
		}

		ApplySwitch ""{
			Case 1:
				If "dl">0{
					ShiftTexture = 60, -0.3125, 0.0;
				}
				ShiftTexture = 67, 0.125, 0.125;
		}
		ApplySwitch "dl"{
			Case 0:
				ChangeAlpha = 65, 0.0;
				ChangeAlpha = 66, 0.0;
				NoShadow = 65,66;
			Case 1:
				ChangeAlpha = 64, 0.0;
				ChangeAlpha = 71, 0.0;
				NoShadow = 64,71;
				NoCastShadow = 65;
				ShiftTexture = 63, 0.0, 0.375;
			Case 2:
				ChangeAlpha = 64, 0.0;
				ChangeAlpha = 71, 0.0;
				NoShadow = 64,71;
				NoCastShadow = 65;
				ShiftTexture = 61, 0.0, 0.125;
		}
		ApplySwitch "Ґ"{
			Case 0:
				ApplySwitch ""{
					Case 0:
					Case 1:
						ShiftTexture = 56, 0.5, 0.0;
						ShiftTexture = 57, 0.5, 0.0;
				}
			Case 1:
				ApplySwitch ""{
					Case 0:
						ShiftTexture = 56, 0.0, 0.125;
						ShiftTexture = 57, 0.0, 0.125;
					Case 1:
						ShiftTexture = 56, 0.5, 0.125;
						ShiftTexture = 57, 0.5, 0.125;
				}
				ShiftTexture = 46, 0.125, 0.0;
			Case 2:
				ApplySwitch ""{
					Case 0:
						ShiftTexture = 56, 0.0, 0.25;
						ShiftTexture = 57, 0.0, 0.25;
					Case 1:
						ShiftTexture = 56, 0.5, 0.25;
						ShiftTexture = 57, 0.5, 0.25;
				}
				ShiftTexture = 46, 0.0, 0.125;
			Case 3:
				ApplySwitch ""{
					Case 0:
						ShiftTexture = 56, 0.0, 0.375;
						ShiftTexture = 57, 0.0, 0.375;
					Case 1:
						ShiftTexture = 56, 0.5, 0.375;
						ShiftTexture = 57, 0.5, 0.375;
				}
				ShiftTexture = 46, 0.125, 0.125;
			Case 4:
				ApplySwitch ""{
					Case 0:
						ShiftTexture = 56, 0.0, 0.5;
						ShiftTexture = 57, 0.0, 0.5;
					Case 1:
						ShiftTexture = 56, 0.5, 0.5;
						ShiftTexture = 57, 0.5, 0.5;
				}
				ShiftTexture = 46, -0.25, 0.625;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "SideWindow"{
		ModelFileName = "w.x";
		Transparent = 0;
		If "dl" >=1 && ""==1 {
			ChangeModel = "w1.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "yuka"{
		ModelFileName = "";
		ApplySwitch ""{
			Case 1:
				ChangeTexture = 0, "tex/1.png";
		}
		ApplySwitch ""{
			Case 0:ChangeModel = "yuka101.x", 1.0;
			Case 1:ChangeModel = "yuka001.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorll"{
		ModelFileName = "Doorl.x";
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch "Ґ"{
			Case 6:
				ShiftTexture = 2, 0.0, 0.125;
			Case 7:
				ShiftTexture = 2, 0.0, 0.0625;
			Default :
				ApplySwitch "dl"{
					Case 2,3:
						ShiftTexture = 2, 0.0, 0.0625;
				}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "Doorr.x";
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "Doorr.x";
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "Doorl.x";
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					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.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Doorl"{
		ModelFileName = "../n_TRTA07_y_1/tojime.x";
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
		If "Ґ" <=5 && "dl" ==3{
			ChangeModel = "../n_TRTA07_y_1/tojime1.x", 1.0;
		}
		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.4, 3.255, 0.0);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "../n_TRTA07_y_1/tojime.x";
		If "Ґ" <=5 && "dl" ==3{
			ChangeModel = "../n_TRTA07_y_1/tojime1.x", 1.0;
		}
		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.4, 3.255, 0.0);
		}
	}
	Object3D "Shadow"{
		ModelFileName = "../n_TRTA07_y_1/Shadow.x";
		NoCastShadow = 0;
			ApplySwitch "ȈՉe"{
			Case 1:
			ChangeModel = "", 1.0;
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

