PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "kBS 1000` (擪)";
	PluginAuthor = "mitsubachi";
	IconTexture = "../common_mtbc/icon.png";
	Description = "";
}

TrainInfo{
	FrontLimit = 8.2;
	TailLimit = -7.3;
	MaxVelocity = 65.0;	//݌vōx 80km/h?
	MaxAcceleration = 3.5;
	MaxDeceleration = 4.0;
	DoorClosingTime = 3.4;
}

DefineSwitch "Ґ"{
GroupCommon = "mtbc_kitakyushu-monorail1000_Ґ";
	Entry = "1Ґ ()";
	Entry = "2Ґ ()";
	Entry = "3Ґ (/ˋ)";
	Entry = "4Ґ ()";
	Entry = "5Ґ ()";
	Entry = "6Ґ ()";
	Entry = "7Ґ ()";
	Entry = "8Ґ ()";
	Entry = "9Ґ ()";
}

DefineSwitch "Cg"{
GroupCommon = "mtbc_kitakyushu-monorail1000_Cg";
	Entry = "";
	Entry = " (펞_)";
	Entry = "";
}

DefineSwitch "ԓƖ"{
GroupCommon = "mtbc_kitakyushu-monorail1000_ԓƖ";
	Entry = "";
	Entry = "";
}

DefineSwitch "hA"{
GroupCommon = "mtbc_kitakyushu-monorail1000_hA";
	Entry = "";
	Entry = "";
}

DefineSwitch "@ (q)"{
GroupCommon = "mtbc_kitakyushu-monorail1000_@";
	Entry = " (~G)";
	Entry = " (~G/ғ)";
	Entry = "Ȃ";
}

PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.5;
		Symmetric = 16;
		Coord = (4.8, 0.5);
	}
	Axle "wheel2"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.5;
		Symmetric = 16;
		Coord = (-4.8, 0.5);
	}
	Axle "bogie2_ff_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (5.8, 0.0);
	}
	Axle "bogie2_fr_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (3.8, 0.0);
	}
	Axle "bogie2_rf_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (-3.8, 0.0);
	}
	Axle "bogie2_rr_pos"{
		ModelFileName = "";
		ModelScale = 10;
		Diameter = 0.0;
		Symmetric = 16;
		Coord = (-5.8, 0.0);
	}
	Body "body"{
		ModelFileName = "";
		ModelScale = 10.0;
		JointZY "wheel1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (4.8, 0.5);
		}
		JointZY "wheel2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-4.8, 0.5);
		}
	}
	Object3D "wheellf"{
		ModelFileName = "wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (-0.775, -1.0, 4.8);
		}
	}
	Object3D "wheellr"{
		ModelFileName = "wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (-0.775, -1.0, -4.8);
		}
	}
	Object3D "wheelrf"{
		ModelFileName = "wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (0.775, -1.0, 4.8);
		}
	}
	Object3D "wheelrr"{
		ModelFileName = "wheel.x";
		ModelScale = 10.0;
		Joint3D "body"{
			AttachCoord = (0.775, -1.0, -4.8);
		}
	}
	Object3D "door_ll"{
		ModelFileName = "door_l.x";
		ModelScale = 10.0;
		If "_DOOR1"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, 0.527);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "exterior2b.png";
		Case 5: ChangeTexture = 0, "exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "door_lr"{
		ModelFileName = "door_r.x";
		ModelScale = 10.0;
		If "_DOOR1"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, -0.53);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "exterior2b.png";
		Case 5: ChangeTexture = 0, "exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "door_rl"{
		ModelFileName = "door_r.x";
		ModelScale = 10.0;
		If "_DOOR2"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, -0.53);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "exterior2b.png";
		Case 5: ChangeTexture = 0, "exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "door_rr"{
		ModelFileName = "door_l.x";
		ModelScale = 10.0;
		If "_DOOR2"==1&&"hA"==0 {
			StaticMove{
				Displacement = (0.0, 0.0, 0.533);
				PreAnimationDelay = 0.5;
				AnimationTime = 1.4;
				PostAnimationDelay = 1.5;
				PreReverseDelay = 0.5;
				PostReverseDelay = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.12);
				PreAnimationDelay = 1.9;
				AnimationTime = 1.0;
				PostAnimationDelay = 0.5;
				PreReverseDelay = 1.9;
				PostReverseDelay = 0.5;
			}
		}
		If "ԓƖ"==0{
			ChangeAlpha = 1, NightAlpha;
		}Else{
			ChangeAlpha = 1, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0: ShiftTexture = 0, 0.54492, -0.50195;
		Case 1: ShiftTexture = 0, 0.54492, -0.26367;
		Case 2: ShiftTexture = 0, 0.54492, -0.02539;
		Case 3: ShiftTexture = 0, 0.54492, 0.21289;
		Case 4: ShiftTexture = 0, 0.54492, -0.50195;
		Case 4,6,7,8: ChangeTexture = 0, "exterior2b.png";
		Case 5: ChangeTexture = 0, "exterior.png";
		Case 6: ShiftTexture = 0, 0.54492, -0.26367;
		Case 7: ShiftTexture = 0, 0.54492, 0.21289;
		Case 8: ShiftTexture = 0, 0.54492, -0.02539;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "bogie"{
		ModelFileName = "bogie.x";
		ModelScale = 10.0;
		Transparent = 6;
		If "ԓƖ"==0{
			ChangeAlpha = 5, NightAlpha;
		}Else{
			ChangeAlpha = 5, 0.0;
		}
		ChangeTexture = 2, "exterior2b.png";
		ApplySwitch "Ґ" {
		Case 0:
			ShiftTexture = 1, 0.00098, -0.39063;
			ShiftTexture = 2, -0.02734, 0.44141;
			ShiftTexture = 3, 0.54492, -0.50195;
			ShiftTexture = 4, 0.00098, -0.21680;
		Case 1:
			ShiftTexture = 1, 0.00098, -0.31836;
			ShiftTexture = 2, 0.20117, 0.44141;
			ShiftTexture = 3, 0.54492, -0.26367;
			ShiftTexture = 4, 0.00098, -0.09961;
		Case 2:
			ShiftTexture = 1, 0.00098, -0.24609;
			ShiftTexture = 2, 0.42969, 0.44141;
			ShiftTexture = 3, 0.54492, -0.02539;
			ShiftTexture = 4, 0.00098, 0.01758;
		Case 3:
			ShiftTexture = 1, 0.00098, -0.17383;
			ShiftTexture = 2, 0.65820, 0.44141;
			ShiftTexture = 3, 0.54492, 0.21289;
			ShiftTexture = 4, 0.00098, 0.13477;
		Case 4:
			ShiftTexture = 1, 0.00098, -0.10156;
			ShiftTexture = 2, -0.02734, 0.51367;
			ShiftTexture = 3, 0.54492, -0.50195;
			ShiftTexture = 4, 0.00098, 0.25195;
		Case 4,6,7,8: ChangeTexture = 3, "exterior2b.png";
		Case 5:
			ChangeTexture = 1, "exterior.png";
			ChangeTexture = 2, "exterior.png";
			ShiftTexture = 2, 0.24023, 0.5;
			ChangeTexture = 3, "exterior.png";
			ChangeTexture = 4, "exterior.png";
		Case 6:
			ShiftTexture = 1, 0.00098, -0.02930;
			ShiftTexture = 2, 0.20117, 0.51367;
			ShiftTexture = 3, 0.54492, -0.26367;
			ShiftTexture = 4, 0.00098, 0.36914;
		Case 7:
			ShiftTexture = 1, 0.00098, 0.11523;
			ShiftTexture = 2, 0.65820, 0.51367;
			ShiftTexture = 3, 0.54492, 0.21289;
			ShiftTexture = 4, 0.00098, 0.60352;
		Case 8:
			ShiftTexture = 1, 0.00098, 0.04297;
			ShiftTexture = 2, 0.42969, 0.51367;
			ShiftTexture = 3, 0.54492, -0.02539;
			ShiftTexture = 4, 0.00098, 0.48633;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "body_model"{
		ModelFileName = "body.x";
		ModelScale = 10.0;
		If "_CONNECT1"==0&&(("Cg"==0&&"_NIGHT"==1)|"Cg"==1){
			If "_FRONT"==0 {
				ShiftTexture = 7, 0.56738, -0.20313;
			}Else{
				ShiftTexture = 7, 0.65820, -0.20313;
			}
		}Else{
			ChangeAlpha = 7, 0.0;
		}
		If "ԓƖ"==0{
			ChangeAlpha = 8, NightAlpha;
		}Else{
			ChangeAlpha = 8, 0.0;
		}
		ApplySwitch "Ґ" {
		Case 0:
			ShiftTexture = 0, 0.54492, -0.50195;
			ShiftTexture = 1, 0.35059, -0.16211;
			ShiftTexture = 3, 0.0, -0.12891;
			ShiftTexture = 4, 0.00098, -0.21680;
			ShiftTexture = 5, 0.00098, -0.39063;
			ShiftTexture = 6, -0.18164, -0.29688;
		Case 1:
			ShiftTexture = 0, 0.54492, -0.26367;
			ShiftTexture = 1, 0.35059, -0.12695;
			ShiftTexture = 3, 0.18164, -0.12891;
			ShiftTexture = 4, 0.00098, -0.09961;
			ShiftTexture = 5, 0.00098, -0.31836;
			ShiftTexture = 6, 0.01270, -0.29688;
		Case 2:
			ShiftTexture = 0, 0.54492, -0.02539;
			ShiftTexture = 1, 0.35059, -0.09180;
			ShiftTexture = 3, 0.36328, -0.12891;
			ShiftTexture = 4, 0.00098, 0.01758;
			ShiftTexture = 5, 0.00098, -0.24609;
			ShiftTexture = 6, 0.20703, -0.29688;
		Case 3:
			ShiftTexture = 0, 0.54492, 0.21289;
			ShiftTexture = 1, 0.35059, -0.05664;
			ShiftTexture = 3, 0.54492, -0.12891;
			ShiftTexture = 4, 0.00098, 0.13477;
			ShiftTexture = 5, 0.00098, -0.17383;
			ShiftTexture = 6, 0.40137, -0.29688;
		Case 4:
			ShiftTexture = 0, 0.54492, -0.50195;
			ShiftTexture = 1, 0.42285, -0.16211;
			ShiftTexture = 3, 0.0, -0.00195;
			ShiftTexture = 4, 0.00098, 0.25195;
			ShiftTexture = 5, 0.00098, -0.10156;
			ShiftTexture = 6, -0.18164, -0.00195;
		Case 4,6,7,8: ChangeTexture = 0, "exterior2b.png";
		Case 5:
			ChangeTexture = 0, "exterior.png";
			ChangeTexture = 1, "exterior.png";
			ChangeTexture = 3, "exterior.png";
			ChangeTexture = 4, "exterior.png";
			ChangeTexture = 5, "exterior.png";
			ChangeTexture = 6, "exterior.png";
		Case 6:
			ShiftTexture = 0, 0.54492, -0.26367;
			ShiftTexture = 1, 0.42285, -0.12695;
			ShiftTexture = 3, 0.18164, -0.00195;
			ShiftTexture = 4, 0.00098, 0.36914;
			ShiftTexture = 5, 0.00098, -0.02930;
			ShiftTexture = 6, 0.01270, -0.00195;
		Case 7:
			ShiftTexture = 0, 0.54492, 0.21289;
			ShiftTexture = 1, 0.42285, -0.05664;
			ShiftTexture = 3, 0.54492, -0.00195;
			ShiftTexture = 4, 0.00098, 0.60352;
			ShiftTexture = 5, 0.00098, 0.11523;
			ShiftTexture = 6, 0.40137, -0.00195;
		Case 8:
			ShiftTexture = 0, 0.54492, -0.02539;
			ShiftTexture = 1, 0.42285, -0.09180;
			ShiftTexture = 3, 0.36328, -0.00195;
			ShiftTexture = 4, 0.00098, 0.48633;
			ShiftTexture = 5, 0.00098, 0.04297;
			ShiftTexture = 6, 0.20703, -0.00195;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_ff"{
		ModelFileName = "bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		Joint3D "bogie2_ff_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_fr"{
		ModelFileName = "bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		StaticRotation{
			RotationAxis = (0,1,0);
			RotationAngle = 180;
		}
		Joint3D "bogie2_fr_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_rf"{
		ModelFileName = "bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		Joint3D "bogie2_rf_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "bogie2_rr"{
		ModelFileName = "bogie2.x";
		ModelScale = 10.0;
		NoCastShadow = 1;
		Transparent = 2;
		StaticRotation{
			RotationAxis = (0,1,0);
			RotationAngle = 180;
		}
		Joint3D "bogie2_rr_pos"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "snow_remover"{
		ModelFileName = "";
		ModelScale = 10.0;
		AlphaZeroTest = 0;
		NoCastShadow = 0;
		If "_FRONT"==0&&"_CONNECT1"==0&&"@ (q)"!=2&&"_SEASON"==3 {
			ChangeModel = "snow_remover.x", 10.0;
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "snow_remover_brush"{
		ModelFileName = "";
		ModelScale = 10.0;
		AlphaZeroTest = 0;
		NoCastShadow = 0;
		If "_FRONT"==0&&"_CONNECT1"==0&&"@ (q)"!=2&&"_SEASON"==3 {
			ChangeModel = "snow_remover2.x", 10.0;
			If "@ (q)"==1 {
				StaticMove{
					Displacement = (0.0, -0.11, 0.0);
					AnimationTime = 0.5;
				}
			}
		}
		Joint3D "body"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	If (("Cg"==0&&"_NIGHT"==1)|"Cg"==1)&&"_CONNECT1"==0&&"_FRONT"==0{
		Headlight{
			AttachObject = "body";
			SourceCoord = (1.181, 1.382, 7.78);
			Direction = (0.0, 0.0, 1.0);
			MaxDistance = 50.0;
			LensFlare{
			StartAngle = 30.0;
				Texture{
				Distance = 0.0;
				Radius = 0.35;
				TexFileName = "../common_mtbc/flare.png";
				Color = #fff0edd0;
				}
			}
		}
		Headlight{
			AttachObject = "body";
			SourceCoord = (-1.181, 1.382, 7.78);
			Direction = (0.0, 0.0, 1.0);
			MaxDistance = 50.0;
		}
	}
	FrontCabin{
		Joint3D "body"{
			AttachCoord = (-0.635, 2.387, 6.979);
		}
	}
}