add_namespace = SHM_nf_events

country_event = {
	id = SHM_nf_events.1
	title = SHM_nf_events.1.title
	desc = SHM_nf_events.1.desc
	picture = GFX_event_rrg_raiders

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.1.a
		add_equipment_to_stockpile = {
		    type = infantry_equipment
		    amount = 200
		    producer = USA
		}
	}
	option = {
		name = SHM_nf_events.1.b
		capital_scope = {
			add_building_construction = {
			    type = bunker
			    level = 1
			    instant_build = yes
			    province = {
				all_provinces = yes
				limit_to_victory_point > 1
			    }
			}
		}
	}
	option = {
		name = SHM_nf_events.1.c
		add_manpower = 200
	}	
}

country_event = {
	id = SHM_nf_events.2
	title = SHM_nf_events.2.title
	desc = SHM_nf_events.2.desc
	picture = GFX_event_brain

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.2.a
		add_trait = {
		     character = SHM_shermanbot
		     ideology = military_government
		     trait = SHM_biographical_coding_trait
		}
	}
	option = {
		name = SHM_nf_events.2.b
		add_trait = {
		     character = SHM_shermanbot
		     ideology = military_government
		     trait = SHM_military_coding_trait
		}
	}
	option = {
		name = SHM_nf_events.2.c
		add_trait = {
		     character = SHM_shermanbot
		     ideology = military_government
		     trait = SHM_period_coding_trait
		}
	}	
}

country_event = {
	id = SHM_nf_events.3
	title = SHM_nf_events.3.title
	desc = SHM_nf_events.3.desc
	picture = GFX_event_shermanbot_robot_buddies

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.3.a
		hidden_effect = {
			load_oob = "SHM_museum_security_oob"
		}
	}	
}

country_event = {
	id = SHM_nf_events.4
	title = SHM_nf_events.4.title
	desc = SHM_nf_events.4.desc
	picture = GFX_event_BRA_moon_and_fireworks

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.4.a
		add_war_support = 0.1
	}	
}

country_event = {
	id = SHM_nf_events.5
	title = SHM_nf_events.5.title
	desc = SHM_nf_events.5.desc
	picture = GFX_event_generic_caravan

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.5.a
		add_political_power = 50
	}
	option = {
		name = SHM_nf_events.5.b
		set_temp_variable = { 
			caps_to_add = 100 
		}
		add_caps = yes
	}
	option = {
		name = SHM_nf_events.5.c
		add_equipment_to_stockpile = {
			type = ballistic_equipment_1
			amount = 200
			producer = USA
		}
	}
	option = {
		name = SHM_nf_events.5.d
		add_equipment_to_stockpile = {
			type = support_robot_scrap_equipment
			amount = 200
			producer = USA
		}
	}
}
country_event = {
	id = SHM_nf_events.6
	title = SHM_nf_events.6.title
	desc = SHM_nf_events.6.desc
	picture = GFX_event_shermanbots_march

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.6.a
		SHM = { add_to_faction = NHS }
	}
	option = {
		name = SHM_nf_events.6.b
		NHS = {
			SHM = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
	}
}

country_event = {
	id = SHM_nf_events.7
	title = SHM_nf_events.7.title
	desc = SHM_nf_events.7.desc
	picture = GFX_event_radio_new_vegas

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.7.a
		add_political_power = 200
		hidden_effect = {
			scoped_sound_effect = MAM_union_dixie
		}
		custom_effect_tooltip = SHM_tt_11
	}
}

country_event = {
	id = SHM_nf_events.8
	title = SHM_nf_events.8.title
	desc = SHM_nf_events.8.desc
	picture = GFX_event_BRK_wasteland_boat_militia

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.8.a
		add_political_power = 100
		add_stability = 0.05
	}
	option = {
		name = SHM_nf_events.8.b
		hidden_effect = {
			load_oob = "SHM_captured_fleet_oob"
		}
		custom_effect_tooltip = SHM_tt_12
	}
	option = {
		name = SHM_nf_events.8.c
		set_temp_variable = { 
			caps_to_add = 300 
		}
		add_caps = yes
	}
}

country_event = {
	id = SHM_nf_events.9
	title = SHM_nf_events.9.title
	desc = SHM_nf_events.9.desc
	picture = GFX_event_airplane_ruins

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.9.a
		set_technology = {
		    air_tech_level_tribal = 1
		}
		set_technology = {
		    air_tech_level_settler = 1
		}
		set_technology = {
		    glider_tech = 1
		}
		set_technology = {
		    aerodynamics_tech_1 = 1
		}
		set_technology = {
		    air_chaff_tech = 1
		}
		set_technology = {
		    fighter_tech_1 = 1
		}
	}
}

country_event = {
	id = SHM_nf_events.10
	title = SHM_nf_events.10.title
	desc = SHM_nf_events.10.desc
	picture = GFX_event_shermanbots_march

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.10.a
		add_stability = -0.2
		set_country_flag = SHM_civil_war_over_flag
	}
}

country_event = {
	id = SHM_nf_events.11
	title = SHM_nf_events.11.title
	desc = SHM_nf_events.11.desc
	picture = GFX_event_brain

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.11.a
	}
}

country_event = {
	id = SHM_nf_events.12
	title = SHM_nf_events.12.title
	desc = SHM_nf_events.12.desc
	picture = GFX_event_ENC_soldiers

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.12.a
		EEN = {
			ROOT = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
	}
}

country_event = {
	id = SHM_nf_events.13
	title = SHM_nf_events.13.title
	desc = SHM_nf_events.13.desc
	picture = GFX_event_shermanbots_march

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.13.a
		trigger = {
			BLN = {
				exists = yes
			}
		}
		add_stability = 0.03
		add_political_power = 50
		hidden_effect = {
			set_country_flag = SHM_brotherhood_own_DC_flag
		}
	}
	option = {
		name = SHM_nf_events.13.a
		trigger = {
			BLN = {
				exists = no
			}
		}
		add_stability = 0.03
		add_political_power = 50
		hidden_effect = {
			set_country_flag = SHM_settlements_own_DC_flag
		}
	}
}

country_event = {
	id = SHM_nf_events.14
	title = SHM_nf_events.14.title
	desc = SHM_nf_events.14.desc
	picture = GFX_event_capitol_ruins

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.14.a
		EEN = {
			ROOT = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
		BLN = {
			ROOT = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
		DCS = {
			ROOT = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
		hidden_effect = {		
			unlock_national_focus = SHM_nf_c007	
			unlock_national_focus = SHM_nf_c008	
			unlock_national_focus = SHM_nf_c009
		}
	}
}
country_event = {
	id = SHM_nf_events.15
	title = SHM_nf_events.15.title
	desc = SHM_nf_events.15.desc
	picture = GFX_event_shermanbots_march

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.15.a
		trigger = {
			SHM = {
				is_ai = yes
			}
		}
		SHM = {
			ROOT = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
		hidden_effect = {
			load_oob = "SHM_landing_beefed_the_fuck_out_oob"
		}
	}
	option = {
		name = SHM_nf_events.15.a
		trigger = {
			SHM = {
				is_ai = no
			}
		}
		SHM = {
			ROOT = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
	}
}

country_event = {
	id = SHM_nf_events.16
	title = SHM_nf_events.16.title
	desc = SHM_nf_events.16.desc
	picture = GFX_event_shermanbot_victory_parade

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.16.a
		every_owned_state = { 
			limit = {
				is_core_of = BLN
			}
			add_compliance = 50
		}
		every_owned_state = { 
			limit = {
				is_core_of = DCS
			}
			add_compliance = 50
		}
		every_owned_state = { 
			limit = {
				is_core_of = EEN
			}
			add_compliance = 50
		}
	}
}

country_event = {
	id = SHM_nf_events.17
	title = SHM_nf_events.17.title
	desc = SHM_nf_events.17.desc
	picture = GFX_event_shermanbots_march

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.17.a
		SHM = {
			ROOT = {
				grant_wargoals_on_core_states_of_prev = yes
			}
		}
	}
}

country_event = {
	id = SHM_nf_events.18
	title = SHM_nf_events.18.title
	desc = SHM_nf_events.18.desc
	picture = GFX_event_shermanbots_march

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.18.a #No dave and no nashville#
		trigger = {
			NOT = {
				has_global_flag = DCS_dave_leader_flag
			}
			NOT = {
				NHS = {
					is_in_faction_with = SHM
				}
			}
		}
		DCS = { add_to_faction = SHM }
	}
	option = {
		name = SHM_nf_events.18.a #no dave and nashville#
		trigger = {
			NOT = {
				has_global_flag = DCS_dave_leader_flag
			}
			NHS = {
				is_in_faction_with = SHM
			}
		}
		DCS = { add_to_faction = SHM }
		DCS = { add_to_faction = NHS }
	}
	option = {
		name = SHM_nf_events.18.b #president dave#
		trigger = {
			has_global_flag = DCS_dave_leader_flag
		}
		diplomatic_relation = {
		    country = SHM
		    relation = non_aggression_pact
		    active = yes
		}
		SHM = {
			diplomatic_relation = {
			    country = DCS
			    relation = non_aggression_pact
			    active = yes
			}
		}
	}
}

country_event = {
	id = SHM_nf_events.19
	title = SHM_nf_events.19.title
	desc = SHM_nf_events.19.desc
	picture = GFX_event_shermanbots_march

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.19.a
		trigger = {
			not = {
				has_country_flag = MAM_southern_nation_flag
			}
		}
	}
	option = {
		name = SHM_nf_events.19.b
		trigger = {
			has_country_flag = MAM_southern_nation_flag
		}
	}
}

country_event = {
	id = SHM_nf_events.20
	title = SHM_nf_events.20.title
	desc = SHM_nf_events.20.desc
	picture = GFX_event_desolate_mire

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.20.a
		add_ideas = SHM_fountain_of_dreams_secured_idea
	}
}

country_event = {
	id = SHM_nf_events.21
	title = SHM_nf_events.21.title
	desc = SHM_nf_events.21.desc
	picture = GFX_event_feral_ghoul_attack

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.21.a
		add_manpower = -200
		1683 = {
			add_manpower = -300
			add_compliance = 50
			remove_building = {
			    type = infrastructure
			    level = 1
			}
		}
	}
	option = {
		name = SHM_nf_events.21.b
		trigger = {
			has_equipment = {
			    flamer_demolitions_equipment_2 > 50
			}
		}
		add_manpower = -100
		1683 = {
			add_manpower = -300
			add_compliance = 50
		}
		add_equipment_to_stockpile = {
			type = flamer_demolitions_equipment_2
			amount = -50
		}
	}
	option = {
		name = SHM_nf_events.21.c
		1683 = {
			add_manpower = -1000
			add_compliance = 50
			remove_building = {
			    type = infrastructure
			    level = 2
			}
		}
	}
	option = {
		name = SHM_nf_events.21.d
		trigger = {
			has_equipment = {
			    support_robot_two_legs_equipment_1 > 50
			}
		}
		1683 = {
			add_manpower = -300
			add_compliance = 50
			remove_building = {
			    type = infrastructure
			    level = 1
			}
		}
		add_equipment_to_stockpile = {
			type = support_robot_two_legs_equipment_1
			amount = -50
		}
	}
}
country_event = {
	id = SHM_nf_events.22
	title = SHM_nf_events.22.title
	desc = SHM_nf_events.22.desc
	picture = GFX_event_ash_barrens

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.22.a
		add_war_support = -0.05
	}
}

country_event = {
	id = SHM_nf_events.23
	title = SHM_nf_events.23.title
	desc = SHM_nf_events.23.desc
	picture = GFX_event_sunset_binoculars

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.23.a
		add_stability = -0.05
	}
}
country_event = {
	id = SHM_nf_events.24
	title = SHM_nf_events.24.title
	desc = SHM_nf_events.24.desc
	picture = GFX_event_shermanbot_victory_parade

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.24.a
		add_stability = 0.25
		set_cosmetic_tag = SHM_union_cosmetic_tag
		every_state = {
			limit = {
				NOT = {
					is_owned_by = SHM
				}
			}
			add_claim_by = SHM
		}
	}
}
country_event = {
	id = SHM_nf_events.25
	title = SHM_nf_events.25.title
	desc = SHM_nf_events.25.desc
	picture = GFX_event_shermanbot_victory_parade

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.25.a
		add_stability = 0.25
		set_cosmetic_tag = SHM_union_cosmetic_tag
	}
}


country_event = {
	id = SHM_nf_events.26
	title = SHM_nf_events.26.title
	desc = SHM_nf_events.26.desc
	picture = GFX_event_shermanbot_victory_parade

	is_triggered_only = yes

	option = {
		name = SHM_nf_events.26.a
	}
}
