add_namespace = erx_train


country_event = { #Logistics officer returns!
	id = erx_train.1
	title = erx_train.1.t
	desc = erx_train.1.d
	picture = GFX_train_event_1
	fire_only_once = yes
	is_triggered_only = no
	trigger = {
		has_completed_focus = enc_reform
		original_tag = ERB
	}
	
	option = { #yes
		name = erx_train.1.a
		add_manpower = 50
		set_technology = { basic_supply_transport_tech = 1 }
		set_technology = { bike_tech_1 = 1 } 
		set_technology = { logistics_company_tech_1 = 1 }
		set_technology = { mobile_logistics_vehicle_tech = 1 }
		country_event = {
			id = erx_train.2
			days = 1
		}
		hidden_effect = {
			TRA = {
				TRA_yukari_akiyama ={
					set_nationality = ERB 
				}
			}
		}
		
	}
}

country_event = { #Story of a young lieutenant and new captain.
	id = erx_train.2
	title = erx_train.2.t
	desc = erx_train.2.d
	picture = GFX_train_event_2
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.2.a
		add_equipment_to_stockpile = { type = supply_equipment_1 amount = 10 producer = ERB }
		add_equipment_to_stockpile = { type = bike_equipment_1 amount = 100 producer = ERB }

	}
}

country_event = { #Our first railway.
	id = erx_train.3
	title = erx_train.3.t
	desc = erx_train.3.d
	picture = GFX_train_event_3
	fire_only_once = yes
	is_triggered_only = no
	trigger = {
		controls_state = 159
		controls_state = 614
		controls_state = 285
		original_tag = ERB
	}
	
	option = { #yes
		name = erx_train.3.a
			285 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			614 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			159 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		country_event = {
			id = erx_train.4
			days = 10
		}
	}
}

country_event = { #What is that, down there?
	id = erx_train.4
	title = erx_train.4.t
	desc = erx_train.4.d
	picture = GFX_train_event_4
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.4.a
		country_event = {
			id = erx_train.5
		}
	}
}

country_event = { #Our first powered train!
	id = erx_train.5
	title = erx_train.5.t
	desc = erx_train.5.d
	picture = GFX_train_event_5
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.5.a
		add_equipment_to_stockpile = { type = supply_equipment_1 amount = 10 producer = ERB }
		set_technology = { enc_locomotive_tech_1 = 1 }
		set_country_flag = rail_nevada

	}
}

country_event = { #Wagon and locomotive refurbishment facility.
	id = erx_train.6
	title = erx_train.6.t
	desc = erx_train.6.d
	picture = GFX_train_event_7
	fire_only_once = yes
	is_triggered_only = yes
	trigger = {
	}
	
	option = { #yes
		name = erx_train.6.a
		country_event = {
			id = erx_train.7
			days = 50
		}
	}
}

country_event = { #First proper train is here!
	id = erx_train.7
	title = erx_train.7.t
	desc = erx_train.7.d
	picture = GFX_train_event_6
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.7.a
		set_technology = { enc_locomotive_tech_2 = 1 }
	}
}

country_event = { #New Reno-Carson City Railroad
	id = erx_train.8
	title = erx_train.8.t
	desc = erx_train.8.d
	picture = GFX_train_event_8
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.8.a
		add_equipment_to_stockpile = {
			type = supply_equipment
			amount = -5
			producer = ERB
		}
		country_event = {
			id = erx_train.9
			days = 70
		}

	}
}

country_event = { #New Reno-Carson City Railroad is finnished
	id = erx_train.9
	title = erx_train.9.t
	desc = erx_train.9.d
	picture = GFX_train_event_9
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.9.a
		add_equipment_to_stockpile = { type = supply_equipment_2 amount = 20 producer = ERB }
		set_technology = { enc_locomotive_tech_3 = 1 }
		285 = {
			add_extra_state_shared_building_slots = 5
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}
}

country_event = { #military railway service
	id = erx_train.10
	title = erx_train.10.t
	desc = erx_train.10.d
	picture = GFX_train_event_10
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.10.a
		add_ideas = ERB_military_railway_service

	}
}

country_event = { #Vault City Railway
	id = erx_train.11
	title = erx_train.11.t
	desc = erx_train.11.d
	picture = GFX_train_event_11
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.11.a
		add_equipment_to_stockpile = {
			type = supply_equipment
			amount = -10
			producer = ERB
		}
		country_event = {
			id = erx_train.12
			days = 100
		}
	}
}

country_event = { #New Reno-Vault City Railway is finnished
	id = erx_train.12
	title = erx_train.12.t
	desc = erx_train.12.d
	picture = GFX_train_event_12
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.12.a
		add_equipment_to_stockpile = { type = supply_equipment_2 amount = 20 producer = ERB }
			184 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			336 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			291 = {
				add_extra_state_shared_building_slots = 4
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			339 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		country_event = {
			id = erx_train.17
			days = 20
		}
	}
}

country_event = { #Nevada Railway
	id = erx_train.13
	title = erx_train.13.t
	desc = erx_train.13.d
	picture = GFX_train_event_13
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.13.a
		add_equipment_to_stockpile = {
			type = supply_equipment
			amount = -15
			producer = ERB
		}
		country_event = {
			id = erx_train.14
			days = 150
		}
	}
}

country_event = { #Nevada Railway is finnished
	id = erx_train.14
	title = erx_train.14.t
	desc = erx_train.14.d
	picture = GFX_train_event_14
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		set_country_flag = rail_nev
		name = erx_train.14.a
		add_equipment_to_stockpile = { type = supply_equipment_2 amount = 10 producer = ERB }
			160 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			161 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			165 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			307 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			947 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			526 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			210 = {
				add_extra_state_shared_building_slots = 6
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
	}
}

country_event = { #Sky Raiders Railway
	id = erx_train.15
	title = erx_train.15.t
	desc = erx_train.15.d
	picture = GFX_train_event_15
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.15.a
		add_equipment_to_stockpile = {
			type = supply_equipment
			amount = -10
			producer = ERB
		}
		country_event = {
			id = erx_train.16
			days = 70
		}
	}
}

country_event = { #Sky Raiders Railway is finnished
	id = erx_train.16
	title = erx_train.16.t
	desc = erx_train.16.d
	picture = GFX_train_event_16
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.16.a
		add_equipment_to_stockpile = { type = supply_equipment_2 amount = 20 producer = ERB }
			944 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			187 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			201 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			389 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			333 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
					
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
			12 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = civilian_power_grid
					level = 1
					instant_build = yes
				}
			}
	}
}


country_event = { #military railway service 2
	id = erx_train.17
	title = erx_train.17.t
	desc = erx_train.17.d
	picture = GFX_train_event_17
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.17.a
		swap_ideas = {
			remove_idea = ERB_military_railway_service
			add_idea = ERB_military_railway_service2
		}
		add_ideas = {
			ERB_no_train_1
		}
	}
}

country_event = { #military railway service 3
	id = erx_train.18
	title = erx_train.18.t
	desc = erx_train.18.d
	picture = GFX_train_event_18
	fire_only_once = yes
	is_triggered_only = no
	trigger = {
		has_completed_focus = enc_operation_babylon
		original_tag = ERB
		has_idea = ERB_military_railway_service2
	}
	mean_time_to_happen = {
		days = 1

	}
	
	option = { #yes
		name = erx_train.18.a
		swap_ideas = {
			remove_idea = ERB_military_railway_service2
			add_idea = ERB_military_railway_service3
		}
	}
}

country_event = { #Capture of NCR railway
	id = erx_train.19
	title = erx_train.19.t
	desc = erx_train.19.d
	picture = GFX_train_event_19
	fire_only_once = yes
	is_triggered_only = no
	trigger = {
		has_completed_focus = enc_rebuilding_a_nation
		original_tag = ERB
	}
	mean_time_to_happen = {
		days = 1

	}
	
	option = { #yes
		name = erx_train.19.a
		swap_ideas = {
			remove_idea = ERB_military_railway_service3
			add_idea = ERB_military_railway_service4
		}
		add_ideas = {
			ERB_destroyed_railstock_1
			ERB_destroyed_railway
		}
		swap_ideas = {
				remove_idea = ERB_no_train_1
				add_idea = ERB_no_train_2
		}
	}
}

country_event = { # institute
	id = erx_train.20
	title = erx_train.20.t
	desc = erx_train.20.d
	picture = GFX_train_event_20
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.20.a
	}
}

country_event = { # destroyed railway removed
	id = erx_train.21
	title = erx_train.21.t
	desc = erx_train.21.d
	picture = GFX_train_event_0
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.21.a
		swap_ideas = {
			remove_idea = ERB_destroyed_railway
			add_idea = ERB_destroyed_railway_2
		}
		swap_ideas = {
				remove_idea = ERB_no_train_2
				add_idea = ERB_no_train_3
		}
		
	}
}

country_event = { # American railway 
	id = erx_train.22
	title = erx_train.22.t
	desc = erx_train.22.d
	picture = GFX_train_event_22
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.22.a
		add_ideas = ERB_american_railway 
		TRA = {
				TRA_david_perner ={
					set_nationality = ERB 
				}
		}
			
	}
}

country_event = { # destroyed railway removed
	id = erx_train.23
	title = erx_train.23.t
	desc = erx_train.23.d
	picture = GFX_train_event_23
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.23.a
		remove_ideas = ERB_destroyed_railway_2
			
	}
}

country_event = { # railway crossings
	id = erx_train.24
	title = erx_train.24.t
	desc = erx_train.24.d
	picture = GFX_train_event_0
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.24.a
			
	}
}

country_event = { # American railway 2
	id = erx_train.25
	title = erx_train.25.t
	desc = erx_train.25.d
	picture = GFX_train_event_25
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.25.a
		swap_ideas = {
			remove_idea = ERB_american_railway
			add_idea = ERB_american_railway_2
		}
			
	}
}

country_event = { # American railway 3
	id = erx_train.26
	title = erx_train.26.t
	desc = erx_train.26.d
	picture = GFX_train_event_26
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.26.a
		swap_ideas = {
			remove_idea = ERB_american_railway_2
			add_idea = ERB_american_railway_3
		}
			
	}
}

country_event = { # Presidential Train
	id = erx_train.27
	title = erx_train.27.t
	desc = erx_train.27.d
	picture = GFX_train_event_27
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.27.a
		
			
	}
}

country_event = { # Cargo railway
	id = erx_train.28
	title = erx_train.28.t
	desc = erx_train.28.d
	picture = GFX_train_event_28
	fire_only_once = yes
	is_triggered_only = yes
	
	option = { #yes
		name = erx_train.28.a
		set_technology = { tanker_car_tech = 1 }
		
			
	}
}
