﻿add_namespace = hamburg

#hamburg.1-200		Starting, General Information and Flavour Events
#hamburg.201-500	Political and War Events
#hamburg.501-700	Economy and Trade Events
#hamburg.701-900	Military Events
#hamburg.901-999	Parliamentary Events

##### STARTING, GENERAL INFO AND FLAVOUR EVENTS (hamburg.1-200) #####

##### POLITICAL AND WAR EVENTS (hamburg.201-500) #####

### DOMESTIC POLITICS EVENTS (hamburg.201-300) ###

#Zoologischer Garten
country_event = {
	id = hamburg.201
	title = hamburg.201.t
	desc = hamburg.201.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	
	option = {
		name = hamburg.201.a
		ai_chance = { factor = 100 }
		add_political_power = 75
		add_stability = 0.02
		add_war_support = -0.02
	}
}

#Hamburgischer Verein zur Rettung Schiffbrüchiger
country_event = {
	id = hamburg.202
	title = hamburg.202.t
	desc = hamburg.202.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	
	option = {
		name = hamburg.202.a
		ai_chance = { factor = 100 }
		add_political_power = 100
		add_stability = 0.02
		add_tech_bonus = { bonus = 0.1 uses = 2 category = health_tech }
		add_tech_bonus = { bonus = 0.1 uses = 2 category = transport_tech }
		add_equipment_to_stockpile = {
                type = convoy
                amount = 5
        }
	}
}

### FOREIGN POLITICS AND WAR EVENTS (hamburg.301-500) ###

country_event = {
	id = hamburg.301
	title = hamburg.301.t
	desc = hamburg.301.d
	#picture =
	
	is_triggered_only = yes
	
	option = {
	    name = hamburg.301.a
		trigger = {
			NOT = { has_country_flag = afr_traditional_tree }
			NOT = { has_country_flag = afr_jihadist_tree }
			NOT = {
				has_country_flag = afr_rrp_british_company_port
				has_country_flag = afr_rrp_french_company_port
				has_country_flag = afr_rrp_german_company_port
				has_country_flag = afr_rrp_bremen_company_port
				has_country_flag = afr_rrp_portugal_company_port
			}
		}
		ai_chance = {
			factor = 100
		}
		set_country_flag = HAM_negotiation_with_afr_kingdom_success_flag
		hidden_effect = {
			if = {
				limit = { ROOT = { owns_state = 539 } }
				set_global_flag = HAM_woermann_tradeport_gabon
				HAM = { country_event = { id = hamburg.503 days = 720 } }
			}
			ROOT = { country_event = { id = hamburg.305 days = 1 } }
			FROM = { country_event = { id = hamburg.302 days = 10 random = 5 } }
		}
	}
	option = { 
	    name = hamburg.301.b
		trigger = {
			NOT = {
				has_country_flag = afr_rrp_british_company_port
				has_country_flag = afr_rrp_french_company_port
				has_country_flag = afr_rrp_german_company_port
				has_country_flag = afr_rrp_bremen_company_port
				has_country_flag = afr_rrp_portugal_company_port
			}
		}
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			FROM = { country_event = { id = hamburg.303 days = 10 random = 5 } }
			if = {
				limit = { ROOT = { owns_state = 539 } }
				HAM = { set_country_flag = HAM_woermann_tradeport_gabon_declined }
			}
			if = {
				limit = { ROOT = { owns_state = 538 } }
				HAM = { set_country_flag = HAM_woermann_tradeport_cameroon_declined }
			}
		}
	}
	option = {
	    name = hamburg.301.c
		trigger={
			OR = {
				has_country_flag = afr_rrp_british_company_port
				has_country_flag = afr_rrp_french_company_port
				has_country_flag = afr_rrp_german_company_port
				has_country_flag = afr_rrp_bremen_company_port
				has_country_flag = afr_rrp_portugal_company_port
			}
		}
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			FROM = { country_event = { id = hamburg.304 days = 5 random = 5 } }
			if = {
				limit = { ROOT = { owns_state = 539 } }
				HAM = { set_country_flag = HAM_woermann_tradeport_gabon_declined }
			}
			if = {
				limit = { ROOT = { owns_state = 538 } }
				HAM = { set_country_flag = HAM_woermann_tradeport_cameroon_declined }
			}
		}
	}
}

country_event = {
	id = hamburg.302
	title = hamburg.302.t
	desc = hamburg.302.d

	is_triggered_only = yes
	
	option = { 
	    name = hamburg.302.a
		ai_chance = {
			factor = 100
		}
		FROM = { add_ideas = HAM_idea_woermann_trading_company }
		FROM = { give_military_access = HAM }
		add_political_power = 100
		add_stability = 0.1
	}
}

country_event = {
	id = hamburg.303
	title = hamburg.303.t
	desc = hamburg.303.d

	is_triggered_only = yes
	
	option = { 
	    name = hamburg.303.a
		trigger = {
			NOT = { has_country_flag = HAM_woermann_tradeport_cameroon_declined }
		}
		ai_chance = {
			factor = 100
		}
	}
	
	option = { 
	    name = hamburg.303.b
		trigger = {
			has_country_flag = HAM_woermann_tradeport_gabon_declined
			NOT = { has_country_flag = HAM_woermann_tradeport_cameroon_alternative }
		}
		ai_chance = {
			factor = 100
		}
		add_political_power = -100
		hidden_effect = {
			country_event = { id = hamburg.503 days = 30 }
			clr_country_flag = HAM_woermann_tradeport_gabon_declined
			set_country_flag = HAM_woermann_tradeport_cameroon_alternative
		}
	}
	
	option = { 
	    name = hamburg.303.c
		trigger = {
			has_country_flag = HAM_woermann_tradeport_cameroon_declined
		}
		ai_chance = {
			factor = 100
		}
		add_stability = -0.05
		hidden_effect = {
			clr_country_flag = HAM_woermann_tradeport_cameroon_declined
			clr_country_flag = HAM_woermann_tradeport_cameroon_alternative
		}
	}
}

country_event = {
	id = hamburg.304
	title = hamburg.304.t
	desc = hamburg.304.d

	is_triggered_only = yes
	
	option = { 
	    name = hamburg.304.a
		ai_chance = {
			factor = 100
		}
		add_political_power = 100
		add_stability = 0.1
	}
	
	option = { 
	    name = hamburg.304.b
		trigger = {
			has_country_flag = HAM_woermann_tradeport_gabon_declined
			NOT = { has_country_flag = HAM_woermann_tradeport_cameroon_alternative }
		}
		ai_chance = {
			factor = 100
		}
		add_political_power = -100
		hidden_effect = {
			country_event = { id = hamburg.503 days = 30 }
			clr_country_flag = HAM_woermann_tradeport_gabon_declined
			set_country_flag = HAM_woermann_tradeport_cameroon_alternative
		}
	}
	
	option = { 
	    name = hamburg.304.c
		trigger = {
			has_country_flag = HAM_woermann_tradeport_cameroon_declined
		}
		ai_chance = {
			factor = 100
		}
		add_stability = -0.05
		hidden_effect = {
			clr_country_flag = HAM_woermann_tradeport_cameroon_declined
			clr_country_flag = HAM_woermann_tradeport_cameroon_alternative
		}
	}
}

country_event = {
	id = hamburg.305
	is_triggered_only = yes
	hidden = yes
	immediate = {
		FROM = {
		}
	}
}

##### ECONOMY AND TRADE EVENTS (hamburg.501-700) #####

#Woermann Traiding Company
country_event = {
	id = hamburg.501
	title = hamburg.501.t
	desc = hamburg.501.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	
	option = {
		name = hamburg.501.a
		ai_chance = { factor = 100 }
		add_political_power = 20
		add_equipment_to_stockpile = { type = convoy_1 amount = 30 producer = HAM }
		country_event = { id = hamburg.502 days = 720 }
		hidden_effect = {
			HAM = { set_country_flag = HAM_woermann_tradeport_expansion_flag }
		}
	}
}

#Woermanns Trade Station in Gabon 
country_event = {
	id = hamburg.502
	title = hamburg.502.t
	desc = hamburg.502.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	
	option = {
		name = hamburg.502.a
		ai_chance = { factor = 100 } 
		539 = { OWNER = { country_event = { id = hamburg.301 } } }
	}
}

#Woermanns Trade Station in Kamerun
country_event = {
	id = hamburg.503
	title = hamburg.503.t
	desc = hamburg.503.d
	picture = GFX_report_event_soviet_finnish_pact
	
	is_triggered_only = yes
	
	option = {
		name = hamburg.503.a
		ai_chance = { factor = 100 }
		538 = { OWNER = { country_event = { id = hamburg.301 } } }
	}
}
	