﻿add_namespace = ironborn

country_event = {
	id = ironborn.1
	title = ironborn.1.t
	desc = ironborn.1.d
	picture = GFX_report_event_soviet_finnish_pact
	
#	fire_only_once = yes
	is_triggered_only = yes

#	trigger = {
#		tag = ROM
#		NOT = { has_war_with = FIN }
#		ROM = { has_completed_focus = IRN_reject_robbs_proposition } 
#		is_ai = yes 
#	}

#	mean_time_to_happen = {
#		days = 30
#	}

	option = {
		name = ironborn.1.a
		ai_chance = {
			base = 15
		}
#		declare_war_on = { target = FIN type = annex_everything }
		create_wargoal = { type = annex_everything target = BUL } 
	}
	option = {
		name = ironborn.1.b
		ai_chance = {
			base = 10
		}
		create_wargoal = { type = annex_everything target = FIN } 
	}
	option = {
		name = ironborn.1.c
		ai_chance = {
			base = 45
		}
		add_political_power = -150
	}
}


country_event = {
	id = ironborn.2
	title = ironborn.2.t
	desc = ironborn.2.d
	picture = GFX_report_event_soviet_finnish_pact
	
#	fire_only_once = yes
	is_triggered_only = yes

#	trigger = {
#		tag = ROM
#		NOT = { has_war_with = HOL }
#		ROM = { has_completed_focus = IRN_accept_robbs_proposition } 
#		is_ai = yes 
#	}

#	mean_time_to_happen = {
#		days = 30
#	}

	option = {
		name = ironborn.2.a
		ai_chance = {
			base = 25
		}
#		declare_war_on = { target = HOL type = annex_everything }
		create_wargoal = { type = annex_everything target = HOL }
	}
	option = {
		name = ironborn.1.c
		ai_chance = {
			base = 45
		}
		add_political_power = -150
	}
}


country_event = {
	id = ironborn.3
	title = ironborn.3.t
	desc = ironborn.3.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.3.a
		ai_chance = { factor = 100 }
		ROM = { country_event = { id = ironborn.4 days = 1 } } 
	}
		option = {
		name = ironborn.3.b
		ai_chance = { factor = 0 }
	}
}



country_event = {
	id = ironborn.4
	title = ironborn.4.t
	desc = ironborn.4.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.4.a
		ai_chance = { factor = 100 }
#		FIN = { add_to_faction = ROM }
		create_faction = "Stark-Greyjoy Union"
		add_to_faction = FROM
	}
#		option = {
#		name = ironborn.4.c
#		ai_chance = { factor = 0 }
#	}
}


country_event = {
	id = ironborn.5
	title = ironborn.5.t
	desc = ironborn.5.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.5.a
		ai_chance = { factor = 90 }
		ROM = { country_event = { id = ironborn.6 days = 1 } } 
	}
		option = {
		name = ironborn.5.b
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ironborn.6
	title = ironborn.6.t
	desc = ironborn.6.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.6.a
		ai_chance = { factor = 100 }
		HOL = { add_to_faction = ROM }
	}
		option = {
		name = ironborn.6.b
		ai_chance = { factor = 0 }
	}
}


country_event = {
	id = ironborn.7
	title = ironborn.7.t
	desc = ironborn.7.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	trigger = { has_start_date < 1936.02.02 }

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.7.a
		ai_chance = { factor = 15 }
		ROM = { transfer_state = 183 } 
		ROM = { add_state_core = 183 }
	}
		option = {
		name = ironborn.7.b
		ai_chance = { factor = 55 }
		add_political_power = -100
		remove_from_faction = ROM
	ROM = { country_event = { days = 1 id = ironborn.2 } }
	}
}


country_event = {
	id = ironborn.8
	title = ironborn.8.t
	desc = ironborn.8.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	trigger = { has_start_date < 1936.02.02 }

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.8.a
		ai_chance = { factor = 5 }
		ROM = { transfer_state = 114 } 
		ROM = { add_state_core = 114 }
	}
		option = {
		name = ironborn.8.b
		ai_chance = { factor = 5 }
		release_puppet = BUL
		ROM = { puppet = BUL }
	}
		option = {
		name = ironborn.8.c
		ai_chance = { factor = 60 }
#		add_political_power = -100
		remove_from_faction = ROM
	ROM = { country_event = { days = 1 id = ironborn.1 } }
	}
}

# Kingsmoot
country_event = {
	id = ironborn.9
	title = ironborn.9.t
	desc = ironborn.9.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	trigger = { has_start_date < 1936.02.02 }

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.9.a
		ai_chance = { 
			factor = 60
			modifier = {
				factor = 0
				ROM = { has_idea = democratic_influence }
			}
			modifier = {
				add = 40
				is_historical_focus_on = yes
			}
		}
				add_popularity = {
			ideology = fascism
			popularity = 0.6
		}
		set_politics = { ruling_party = fascism elections_allowed = no } 
	}
	option = {
		name = ironborn.9.b
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				ROM = { has_idea = fascist_influence }
			}
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
			add_popularity = {
			ideology = communism
			popularity = 0.6
		}
		set_politics = { ruling_party = communism elections_allowed = no } 
	}
	option = {
		name = ironborn.9.c
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				ROM = { has_idea = fascist_influence }
			}
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
			add_popularity = {
			ideology = democratic
			popularity = 0.6
		} 
		set_politics = { ruling_party = democratic elections_allowed = no } 
	}
}


country_event = {
	id = ironborn.10
	title = ironborn.10.t
	desc = ironborn.10.d
	picture = GFX_report_event_physics_lab_01
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.10.a
		ai_chance = { factor = 90 }
		ROM = {
				add_tech_bonus = {
				name = construction_bonus
				bonus = 0.5
				uses = 2
				category = construction_tech
			}
		}
				add_tech_bonus = {
				name = industrial_bonus
				bonus = 0.5
				uses = 2
				category = industry
			}
		
	}
	option = {
		name = ironborn.10.b
		ai_chance = { factor = 10 }
		add_political_power = -50 
		ROM = {
			country_event = { days = 1 id = germany.77 }
		}
	}
}


country_event = {
	id = ironborn.11
	title = ironborn.11.t
	desc = ironborn.11.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = ironborn.11.a
		ai_chance = { factor = 95 }
		ROM = {
				add_tech_bonus = {
				name = armor_bonus
				bonus = 0.5
				uses = 2
				category = armor
			}
				add_tech_bonus = {
				name = doctr_bonus
				bonus = 0.5
				uses = 2
				category = land_doctrine
			}
			
		}
				add_tech_bonus = {
				name = captain_bonus
				bonus = 0.5
				uses = 2
				category = naval_equipment
			}
				add_tech_bonus = {
				name = naval_doctrine_bonus
				bonus = 0.5
				uses = 2
				category = naval_doctrine
			}
		
	}
	option = {
		name = ironborn.11.b
		ai_chance = { factor = 5 }
	}
}

country_event = {
	id = ironborn.12
	title = ironborn.12.t
	desc = ironborn.12.d
	picture = GFX_report_event_soviet_finnish_pact
	
	fire_only_once = yes
#	is_triggered_only = yes

	trigger = {
		tag = ROM
		ROM = { has_war = no }
		NOT = { country_exists = SPR }
		SPR = { has_completed_focus = MRT_sandsnakes } 
		ROM = { any_owned_state = { is_core_of = SPR } } 
		ROM = { has_government = fascism }
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = ironborn.12.a
		hidden_effect = { ROM = { country_event = { days = 1 id = ironborn.13 } } }
	}
	option = {
		name = ironborn.12.b
		hidden_effect = { ROM = { country_event = { days = 1 id = ironborn.14 } } }
	}
	option = {
		name = ironborn.12.c
		hidden_effect = { ROM = { country_event = { days = 1 id = ironborn.15 } } }
	}
	option = {
		name = ironborn.12.e
#		hidden_effect = { }
	}
}

country_event = {
	id = ironborn.13
	title = ironborn.13.t
	desc = ironborn.13.d
#	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

#	mean_time_to_happen = {
#		days = 1
#	}

	option = {
		name = ironborn.13.a
		ai_chance = { factor = 95 }		
	}
}

country_event = {
	id = ironborn.14
	title = ironborn.14.t
	desc = ironborn.14.d
#	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	option = {
		name = ironborn.14.a
		ai_chance = { factor = 95 }
		ROM = { country_event = { days = 14 id = ironborn.16 } }		
	}
}

country_event = {
	id = ironborn.15
	title = ironborn.15.t
	desc = ironborn.15.d
#	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	option = {
		name = ironborn.15.a
		ai_chance = { factor = 95 }		
	}
}

country_event = {
	id = ironborn.16
	title = ironborn.16.t
	desc = ironborn.16.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	option = {
		name = ironborn.16.a
		ai_chance = { factor = 95 }
#		if = {
#			limit = { any_owned_state = { is_core_of = SPR } }
#			PREV = { add_state_core = ROM }
#		}
		every_state = {
			limit = {
				is_core_of = SPR
				is_owned_and_controlled_by = ROM
			}
			ROM = {
				add_state_core = PREV
			}
		}
		hidden_effect = { ROM = { country_event = { days = 3 id = ironborn.17 } } }		
	}
}

country_event = {
	id = ironborn.17
	title = ironborn.17.t
	desc = ironborn.17.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes

	option = {
		name = ironborn.17.a
		ai_chance = { factor = 95 }
		kill_country_leader = yes
		create_country_leader = {
			name = "Nymeria Greyjoy"
			desc = "POLITICS_LADY_NYM_DESC"
			picture = "Portrait_Lady_Nym.dds"
			expire = "1965.1.1"
			ideology = fascism_ideology

			traits = {
				
			}
		}		
	}
}

country_event = {
	id = ironborn.18
	title = ironborn.18.t
	desc = ironborn.18.d
	picture = GFX_report_event_merchant_ship_01
	
	is_triggered_only = yes

	option = {
		name = ironborn.18.a
		ai_chance = { factor = 95 }
		hidden_effect = {
				add_manpower = 7000
				load_oob = "Silenced"
		}		
	}
}

# Greyjoys want to build ships again
country_event = {
	id = ironborn.19
	title = ironborn.19.t
	desc = ironborn.19.d
	picture = GFX_report_event_merchant_ship_01
	
	is_triggered_only = yes

	option = {
		name = ironborn.19.a
		ai_chance = { factor = 65 }
		trigger = { TAG = FIN }

		ROM = {	country_event = { days = 1 id = ironborn.20 } }

		hidden_effect = {

		}		
	}
	option = {
		name = ironborn.19.b
		ai_chance = { factor = 65 }
		trigger = { TAG = HOL }

		ROM = {	country_event = { days = 1 id = ironborn.20 } }

		hidden_effect = {

		}		
	}
	option = {
		name = ironborn.19.c
		ai_chance = { factor = 25 }

		ROM = {	country_event = { days = 1 id = ironborn.21 } }

		hidden_effect = {

		}		
	}
}

# They accept!
country_event = {
	id = ironborn.20
	title = ironborn.20.t
	desc = ironborn.20.d
	picture = GFX_report_event_merchant_ship_01
	
	is_triggered_only = yes

	option = {
		name = ironborn.20.a
		ai_chance = { factor = 65 }
		add_political_power = 300
		if = {
			limit = { has_idea = IRN_pyke_treaty }
			remove_ideas = IRN_pyke_treaty
		}
		hidden_effect = {

		}		
	}
}

# They reject!
country_event = {
	id = ironborn.21
	title = ironborn.21.t
	desc = ironborn.21.d
	picture = GFX_report_event_merchant_ship_01
	
	is_triggered_only = yes

	option = {
		name = ironborn.21.a
		ai_chance = { factor = 65 }
		add_political_power = -100
		add_war_support = 0.15
		hidden_effect = {

		}		
	}
}

# We are at war, treaty is null
country_event = {
	id = ironborn.22
	title = ironborn.22.t
	desc = ironborn.22.d
	picture = GFX_report_event_merchant_ship_01
	
	fire_only_once = yes

	trigger = {
		tag = ROM
		ROM = { has_idea = IRN_pyke_treaty }
		OR = { 
			ROM = { has_war_with = FIN }
			ROM = { has_war_with = HOL }
		} 
	}

	mean_time_to_happen = {
		days = 5
	}

	option = {
		name = ironborn.22.a
		ai_chance = { factor = 65 }
		if = {
			limit = { has_idea = IRN_pyke_treaty }
			remove_ideas = IRN_pyke_treaty
		}
		add_political_power = -100
		hidden_effect = {

		}		
	}
}

# Theon deserts to House Stark
country_event = {
	id = ironborn.23
	title = ironborn.23.t
	desc = ironborn.23.d
	picture = GFX_report_event_merchant_ship_01
	
	is_triggered_only = yes

# What a twat
	option = {
		name = ironborn.23.a
		ai_chance = { factor = 65 }

		remove_unit_leader = 28

		hidden_effect = {

		}		
	}
}