﻿###########################
# Netherlands events
###########################

add_namespace = tdlra

#Invite ROOT
country_event = {
	id = tdlra.1
	title = tdlra.1.t
	desc = tdlra.1.d
	picture = GFX_news_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #Enter alliance
		name = tdlra.1.a
		ai_chance = {
			factor = 95
		}
		HOL = {
			add_to_faction = ROOT
			ROOT = {
				add_ai_strategy = {
					type = alliance
					id = "FRA"
					value = 200
				}
			}
			country_event = { id = tdlra.3 days = 1 }
		}
	}

	option = { #Refuse
		name = tdlra.1.b
		ai_chance = {
			factor = 5
		}
		effect_tooltip = {
			HOL = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
				country_event = { id = tdlra.2 }
			}
		}
	}
}

#alliance refused
country_event = {
	id = tdlra.2
	title = tdlra.2.t
	desc = tdlra.2.d
	picture = GFX_news_event_desertion_poster
	
	is_triggered_only = yes

	option = {
		name = tdlra.2.a
	}
}

#alliance accepted
country_event = {
	id = tdlra.3
	title = tdlra.3.t
	desc = tdlra.3.d
	picture = GFX_news_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = tdlra.3.a
	}
}

#soviet pact
country_event = {
	id = tdlra.4
	title = tdlra.4.t
	desc = tdlra.4.d
	picture = GFX_report_event_physics_lab_01
	
	is_triggered_only = yes
	
	option = {
		ai_chance = {
			factor = 90
		}
		name = tdlra.4a	#Accept
		HOL = {
			country_event = { days = 1 id = tdlra.5 }
		add_tech_bonus = {
			name = med_armor_bonus
			ahead_reduction = 1
			category = cat_medium_armor
		}
		add_tech_bonus = {
			name = armor_bonus
			bonus = 0.5
			uses = 1
			category = armor
			}
		}
	}
	option = {
		ai_chance = {
			factor = 10
		}
		name = tdlra.4b	#Refuse
		HOL = {
			country_event = { days = 1 id = tdlra.6 }
			}
		}
	}

#Soviet/Germany accepts
country_event = {
	id = tdlra.5
	title = tdlra.5.t
	desc = tdlra.5.d
	picture = GFX_news_event_tank_factory
	
	is_triggered_only = yes

	option = {
		name = tdlra.3.a
	}
}

#Soviet/Germany refuses
country_event = {
	id = tdlra.6
	title = tdlra.6.t
	desc = tdlra.6.d
	picture = GFX_news_event_generic_read_write
	
	is_triggered_only = yes

	option = {
		name = tdlra.3.a
	}
}

#German Military Pact
country_event = {
	id = tdlra.7
	title = tdlra.4.t
	desc = tdlra.4.d
	picture = GFX_report_event_physics_lab_01
	
	is_triggered_only = yes
	
	option = {
		ai_chance = {
			factor = 90
		}
		name = tdlra.4a	#Accept
		HOL = {
			country_event = { days = 1 id = tdlra.5 }
		add_tech_bonus = {
			name = armor_bonus
			bonus = 0.5
			uses = 3
			category = armor
			}
		}
	}
	option = {
		ai_chance = {
			factor = 10
		}
		name = tdlra.4b	#Refuse
		HOL = {
			country_event = { days = 1 id = tdlra.6 }
			}
		}
	}

#Join Allies
country_event = {
	id = tdlra.8
	title = tdlra.8.t
	desc = tdlra.8.d
	picture = GFX_news_event_generic_sign_treaty1

	is_triggered_only = yes

	option = { #Accept
		name = tdlra.8.a
		ai_chance = {
			factor = 95
		}
		ENG = {
			add_to_faction = FROM
		HOL = {
			country_event = { id = tdlra.9 days = 1 }
		}
	}
}

	option = { #Refuse
		name = tdlra.8.b
		ai_chance = {
			factor = 5
		}
			HOL = {
				country_event = { id = tdlra.10 days = 1 }
			}
		}
	}

#Britain Accepts
country_event = {
	id = tdlra.9
	title = tdlra.9.t
	desc = tdlra.9.d
	picture = GFX_news_event_desertion_poster
	
	is_triggered_only = yes

	option = {
		name = tdlra.9.a
	}
}

#Britain Accepts
country_event = {
	id = tdlra.10
	title = tdlra.10.t
	desc = tdlra.10.d
	picture = GFX_news_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = tdlra.10.a
	}
}

#Start Pillarisation
country_event = {
	id = tdlra.11
	title = tdlra.11.t
	desc = tdlra.11.d

	is_triggered_only = yes

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

#BENELUX Economic Cooperation - HOL
country_event = {
	id = tdlra.12
	title = tdlra.12.t
	desc = tdlra.12.d

	is_triggered_only = yes

	option = {
		ai_chance = {
			factor = 95
			}
			name = tdlra.12.a
			HOL = {
				country_event = { id = tdlra.13 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux
				set_country_flag = tdlra_economic_iniative_yes_hol
			}
			BEL = {
				country_event = { id = tdlra.16 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux
				set_country_flag = tdlra_economic_iniative_yes_hol
			}
			LUX = {
				country_event = { id = tdlra.17 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux
				set_country_flag = tdlra_economic_iniative_yes_hol
			}
		}
	option = {
		ai_chance = {
			factor = 5
			}
			name = tdlra.12.b
			HOL = {
				country_event = { id = tdlra.14 days = 1 }
				}
			}
		}

#HOL says yes to Economic Cooperation
country_event = {
	id = tdlra.13
	title = tdlra.13.t
	desc = tdlra.13.d

	is_triggered_only = yes

	option = {
		name = tdlra.13.a
		set_country_flag = tdlra_economic_iniative_yes_hol
		}
	}

#Root says no to economic cooperation
country_event = {
	id = tdlra.14
	title = tdlra.14.t
	desc = tdlra.14.d

	is_triggered_only = yes

	option = {
		name = tdlra_14.a
		}
	}

#Everyone accepts economic iniative - HOL
	country_event = {
		id = tdlra.15
		title = tdlra.15.t
		desc = tdlra.15.d

		fire_only_once = yes

		trigger = {
			has_country_flag = tdlra_economic_iniative_yes_hol
			has_country_flag = tdlra_economic_iniative_yes_bel
			has_country_flag = tdlra_economic_iniative_yes_lux
			tag = HOL
		}

	mean_time_to_happen = {
		days = 0
	}

	option = {
		name = tdlra.15.a
		hidden_effect = {
			HOL = {
				add_ideas = tdlra_economic_cooperation_within_benelux4
				remove_ideas = tdlra_economic_cooperation_within_benelux
				remove_ideas = tdlra_economic_cooperation_within_benelux2
				remove_ideas = tdlra_economic_cooperation_within_benelux3
			}
			BEL = {
				add_ideas = tdlra_economic_cooperation_within_benelux4
				remove_ideas = tdlra_economic_cooperation_within_benelux
				remove_ideas = tdlra_economic_cooperation_within_benelux2
				remove_ideas = tdlra_economic_cooperation_within_benelux3
			}
			LUX = {
				add_ideas = tdlra_economic_cooperation_within_benelux4
				remove_ideas = tdlra_economic_cooperation_within_benelux
				remove_ideas = tdlra_economic_cooperation_within_benelux2
				remove_ideas = tdlra_economic_cooperation_within_benelux3
				}
			}
		}
	}


#BEL says yes to Economic Cooperation
country_event = {
	id = tdlra.16
	title = tdlra.13.t
	desc = tdlra.13.d

	is_triggered_only = yes

	option = {
		name = tdlra.13.a
		set_country_flag = tdlra_economic_iniative_yes_bel
		}
	}

#LUX says yes to Economic Cooperation
country_event = {
	id = tdlra.17
	title = tdlra.13.t
	desc = tdlra.13.d

	is_triggered_only = yes

	option = {
		name = tdlra.13.a
		set_country_flag = tdlra_economic_iniative_yes_lux
		}
	}

#Everyone accepts economic iniative - LUX
	country_event = {
		id = tdlra.18
		title = tdlra.15.t
		desc = tdlra.15.d

		fire_only_once = yes

		trigger = {
			has_country_flag = tdlra_economic_iniative_yes_hol
			has_country_flag = tdlra_economic_iniative_yes_bel
			has_country_flag = tdlra_economic_iniative_yes_lux
			tag = LUX
		}

	mean_time_to_happen = {
		days = 0
	}

	option = {
		name = tdlra.15.a
		hidden_effect = {
			HOL = {
				add_ideas = tdlra_economic_cooperation_within_benelux4
				remove_ideas = tdlra_economic_cooperation_within_benelux
				remove_ideas = tdlra_economic_cooperation_within_benelux2
				remove_ideas = tdlra_economic_cooperation_within_benelux3
				}
			}
		}
	}

#Everyone accepts economic iniative - BEL
	country_event = {
		id = tdlra.19
		title = tdlra.15.t
		desc = tdlra.15.d

		fire_only_once = yes

		trigger = {
			has_country_flag = tdlra_economic_iniative_yes_hol
			has_country_flag = tdlra_economic_iniative_yes_bel
			has_country_flag = tdlra_economic_iniative_yes_lux
			tag = BEL
		}

	mean_time_to_happen = {
		days = 0
	}

	option = {
		name = tdlra.15.a
		hidden_effect = {
			HOL = {
				add_ideas = tdlra_economic_cooperation_within_benelux4
				remove_ideas = tdlra_economic_cooperation_within_benelux
				remove_ideas = tdlra_economic_cooperation_within_benelux2
				remove_ideas = tdlra_economic_cooperation_within_benelux3
				}
			}
		}
	}

#BENELUX Economic Cooperation - BEL
country_event = {
	id = tdlra.20
	title = tdlra.12.t
	desc = tdlra.12.d

	is_triggered_only = yes

	option = {
		ai_chance = {
			factor = 95
			}
			name = tdlra.12.a
			HOL = {
				country_event = { id = tdlra.13 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux2
				set_country_flag = tdlra_economic_iniative_yes_bel
			}
			BEL = {
				country_event = { id = tdlra.16 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux2
				set_country_flag = tdlra_economic_iniative_yes_bel
			}
			LUX = {
				country_event = { id = tdlra.17 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux2
				set_country_flag = tdlra_economic_iniative_yes_bel
			}
		}
	}
#BENELUX Economic Cooperation - LUX
country_event = {
	id = tdlra.21
	title = tdlra.12.t
	desc = tdlra.12.d

	is_triggered_only = yes

	option = {
		ai_chance = {
			factor = 95
			}
			name = tdlra.12.a
			HOL = {
				country_event = { id = tdlra.13 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux3
				set_country_flag = tdlra_economic_iniative_yes_lux
			}
			BEL = {
				country_event = { id = tdlra.16 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux3
				set_country_flag = tdlra_economic_iniative_yes_lux
			}
			LUX = {
				country_event = { id = tdlra.17 days = 1 }
				add_ideas = tdlra_economic_cooperation_within_benelux3
				set_country_flag = tdlra_economic_iniative_yes_lux
			}
		}
	}