﻿namespace = consolidate_region

#arabian peninsula
consolidate_region.1 = {
	type = country_event
	hidden = yes

	title = consolidate_region.1.t

	flavor = consolidate_region.1.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_arabian_peninsula }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_arabian_peninsula_enabled
	}

	immediate = {
		set_global_variable = consolidated_arabian_peninsula

		c:ZAI = {
			annex = c:LAH
			annex = c:KAT
			annex = c:MAH
			s:STATE_YEMEN.region_state:HDJ = {
				set_state_owner = PREV
			}
		}

		c:NEJ = {
			annex = c:HDJ
			annex = c:JAB
			annex = c:BHN
			s:STATE_ABU_DHABI.region_state:ABU = {
				set_state_owner = PREV
			}

			s:STATE_ABU_DHABI.region_state:OMA = {
				set_state_owner = PREV
			}
		}

		c:PER = {
			annex = c:ARB

			s:STATE_LARISTAN.region_state:NEJ = {
				set_state_owner = PREV
			}

			s:STATE_LARISTAN.region_state:OMA = {
				set_state_owner = PREV
			}
		}
	}
}

#ethiopia
consolidate_region.2 = {
	type = country_event
	hidden = yes

	title = consolidate_region.2.t

	flavor = consolidate_region.2.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_ethiopia }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_ethiopia_enabled
	}

	immediate = {
		set_global_variable = consolidated_ethiopia

		c:SHW = {
			annex = c:WLO
			annex = c:KFA
			annex = c:WLG
			annex = c:GJM
			annex = c:BGM
			annex = c:TGR
			annex = c:AWS
			annex = c:SDM
			annex = c:BRN
			annex = c:HAR
			annex = c:HDY
			annex = c:ARS
			annex = c:QWR
			annex = c:WLT
			s:STATE_ERITREA.region_state:EGY = {
				set_state_owner =  PREV
			}
		}

		c:MJT = {
			annex = c:GLD
			annex = c:ISQ
			annex = c:WSG
		}
	}
}

#lake victoria
consolidate_region.3 = {
	type = country_event
	hidden = yes

	title = consolidate_region.3.t

	flavor = consolidate_region.3.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_lake_victoria }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_lake_victoria_enabled
	}

	immediate = {
		set_global_variable = consolidated_lake_victoria

		c:BUG = {
			annex = c:ACH
			annex = c:BNY
			annex = c:ANK
			annex = c:KRG
			annex = c:RWD
			annex = c:BRD
		}
	}
}

#niger region
consolidate_region.4 = {
	type = country_event
	hidden = yes

	title = consolidate_region.4.t

	flavor = consolidate_region.4.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_niger_region }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_niger_region_enabled
	}

	immediate = {
		set_global_variable = consolidated_niger_region

		c:DFR = {
			annex = c:BGI
			annex = c:WAD
			s:STATE_WADDAI.region_state:BOR = {
				set_state_owner =  PREV
			}
			s:STATE_CHAD.region_state:BOR = {
				set_state_owner =  PREV
			}
		}

		c:SOK = {
			annex = c:BOR
			annex = c:HAU
			s:STATE_HAUSALAND.region_state:BRG = {
				set_state_owner =  PREV
			}
		}

		c:DAH = {
			annex = c:BRG
		}
	}
}

#senegal region
consolidate_region.5 = {
	type = country_event
	hidden = yes

	title = consolidate_region.5.t

	flavor = consolidate_region.5.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_senegal_region }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_senegal_region_enabled
	}

	immediate = {
		set_global_variable = consolidated_senegal_region

		c:MSN = {
			annex = c:KRT
			annex = c:SGU
		}

		c:ADG = {
			s:STATE_TIMBUKTU.region_state:MSN = {
				set_state_owner =  PREV
			}
		}	

		c:OUA = {
			s:STATE_MAURITANIA.region_state:FTR = {
				set_state_owner =  PREV
			}
		}

		c:JLF = {
			s:STATE_SENEGAL.region_state:FTR = {
				set_state_owner =  PREV
			}
		}

		c:SSU = {
			annex = c:FTJ
		}
	}
}

#india
consolidate_region.6 = {
	type = country_event
	hidden = yes

	title = consolidate_region.6.t

	flavor = consolidate_region.6.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_india }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_india_enabled
	}

	immediate = {
		set_global_variable = consolidated_india

		c:BIC = {
			annex = c:BIK
			annex = c:JAS
			annex = c:JOD
			annex = c:BER
			annex = c:KUT
			annex = c:JAI
			annex = c:MEW
			annex = c:GWA
			annex = c:IND
			annex = c:BHO
			annex = c:AWA
			annex = c:BUN
			annex = c:NAG
			annex = c:HYD
			annex = c:MYS
			annex = c:TRA
			annex = c:BAS
			annex = c:ORI
			annex = c:GAR
			annex = c:PTA
			annex = c:ORI
			annex = c:MUG
			annex = c:ALW
			annex = c:KOT
			annex = c:IDA
			annex = c:DHA
			annex = c:NAW
			annex = c:PLP
			annex = c:BHV
			annex = c:SAT
			annex = c:KHP
			annex = c:KNO
			annex = c:PUT
			annex = c:JEY
			annex = c:PTA
			annex = c:NAR
			annex = c:MYB
			annex = c:SUR
			annex = c:BAG
			annex = c:COO
			annex = c:ASM
			annex = c:MGH
			annex = c:NGA
			annex = c:TIP
			annex = c:KKI
			annex = c:MNP
			annex = c:JHN
			annex = c:PTN
			annex = c:PUD
			annex = c:COC
			annex = c:JUN
			annex = C:MLD
			annex = C:BCE
		}

		c:NEP = {
			annex = c:SIK
			annex = c:BHU
		}

		c:CHI = {
			annex = c:TIB
		}

		c:PAN = {
			annex = c:BHW
			annex = c:LAD
			annex = c:KAS


			s:STATE_HILL_PUNJAB.region_state:BIC = {
				set_state_owner =  PREV
			}
		}
	}
}

#thailand
consolidate_region.7 = {
	type = country_event
	hidden = yes

	title = consolidate_region.7.t

	flavor = consolidate_region.7.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_thailand }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_thailand_enabled
	}

	immediate = {
		set_global_variable = consolidated_thailand

		c:BIC = {
			s:STATE_MALAYA.region_state:SIA = {
				set_state_owner =  PREV
			}
			s:STATE_MALAYA.region_state:GBR = {
				set_state_owner =  PREV
			}
			annex = c:PRK
			annex = c:JOH
			annex = c:SEL
		}

		c:SIA = {
			annex = c:CMI
			annex = c:LUA
			annex = c:CHP
			s:STATE_TENASSERIM.region_state:BIC = {
				set_state_owner =  PREV
			}
		}

		s:STATE_LAOS = {
			set_owner_of_provinces = {
				country = c:SIA
				provinces = { x578898 x61478F x625009 }
			}
		}

		c:DAI = {
			annex = c:CAM
			annex = c:SCT
			annex = c:DGR
			annex = c:KLO
			s:STATE_CAMBODIA.region_state:SIA = {
				set_state_owner =  PREV
			}
		}

		c:BUR = {
			annex = c:SHS

			s:STATE_PEGU.region_state:BIC = {
				set_state_owner =  PREV
			}

			s:STATE_MANDALAY.region_state:BIC = {
				set_state_owner =  PREV
			}

			s:STATE_ARAKAN.region_state:BIC = {
				set_state_owner =  PREV
			}

			s:STATE_PEGU.region_state:DEN = {
				set_state_owner =  PREV
			}
		}
	}
}

#indonesia
consolidate_region.8 = {
	type = country_event
	hidden = yes

	title = consolidate_region.8.t

	flavor = consolidate_region.8.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_indonesia }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_indonesia_enabled
	}

	immediate = {
		set_global_variable = consolidated_indonesia

		c:DEI = {
			annex = c:JMB
			annex = c:SRK
			annex = c:YOG
			annex = c:SMB
			annex = c:LAN
			annex = c:PON
			annex = c:STG
			annex = c:BAL
			annex = c:TID
			annex = c:BTN
			annex = c:SAK
			annex = c:SLW
			annex = c:PPU
			s:STATE_SUNDA_ISLANDS.region_state:POR = {
				set_state_owner =  PREV
			}
		}

		c:PHI = {
			annex = c:MGD
			s:STATE_LUZON.region_state:SUL = {
				set_state_owner =  PREV
			}
			s:STATE_MINDANAO.region_state:SUL = {
				set_state_owner =  PREV
			}
		}


		c:BRU = {
			annex = c:SUL
			s:STATE_NORTH_BORNEO.region_state:BLG = {
				set_state_owner =  PREV
			}
		}

		c:KTI = {
			annex = c:BNJ
			annex = c:BLG
			s:STATE_EAST_BORNEO.region_state:DEI = {
				set_state_owner =  PREV
			}
		}

		c:ACE = {
			annex = c:BLG
			s:STATE_ACEH.region_state:DEI = {
				set_state_owner =  PREV
			}
		}
	}
}

#australia
consolidate_region.9 = {
	type = country_event
	hidden = yes

	title = consolidate_region.9.t

	flavor = consolidate_region.9.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_australia }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_australia_enabled
	}

	immediate = {
		set_global_variable = consolidated_australia

		c:NSW = {
			annex = c:SAS
			annex = c:WAS
			annex = c:KAU
			annex = c:TAS
			annex = c:UNT										
		}
	}
}

# north_america
consolidate_region.10 = {
	type = country_event
	hidden = yes

	title = consolidate_region.10.t

	flavor = consolidate_region.10.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_north_america }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_north_america_enabled
	}

	immediate = {
		set_global_variable = consolidated_north_america

		c:USA = {
			annex = c:SEQ
		}

		c:HBC = {
			annex = c:ORG
			annex = c:QUE
			annex = c:ONT
			annex = c:NBS
			annex = c:NVS
			s:STATE_NEWFOUNDLAND.region_state:GBR = {
				set_state_owner =  PREV
			}
		}

		c:GBR = {
			s:STATE_WEST_INDIES.region_state:DEN = {
				set_state_owner =  PREV
			}
			s:STATE_WEST_INDIES.region_state:FRA = {
				set_state_owner =  PREV
			}
		}

		c:MEX = {
			s:STATE_CHIAPAS.region_state:UCA = {
				set_state_owner =  PREV
			}
		}

		c:UCA = {
			annex = c:MKT
			s:STATE_GUATEMALA.region_state:GBR = {
				set_state_owner =  PREV
			}
		}
	}
}

#central america
consolidate_region.11 = {
	type = country_event
	hidden = yes

	title = consolidate_region.11.t

	flavor = consolidate_region.11.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_central_america }
		game_date  > 1836.1.7
		has_game_rule = consolidated_central_america_enabled
		exists = c:GUA
		NOT = { exists = c:UCA }
	}

	immediate = {
		set_global_variable = consolidated_central_america

		c:GUA = {
			annex = c:MKT
			annex = c:GUA
			annex = c:HON
			annex = c:NIC
			annex = c:COS
			annex = c:ELS
			annex = c:ALT
		}
	}
}

#south america
consolidate_region.12 = {
	type = country_event
	hidden = yes

	title = consolidate_region.12.t

	flavor = consolidate_region.12.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_south_america }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_south_america_enabled
	}

	immediate = {
		set_global_variable = consolidated_south_america

		c:PRA = {
			s:STATE_AMAZONAS.region_state:CLM = {
				set_state_owner =  PREV
			}
		}

		c:BRZ = {
			s:STATE_MATO_GROSSO.region_state:PRG = {
				set_state_owner =  PREV
			}
			s:STATE_MATO_GROSSO.region_state:BOL = {
				set_state_owner =  PREV
			}
			s:STATE_AMAZONAS.region_state:BOL = {
				set_state_owner =  PREV
			}
		}

		c:ECU = {
			s:STATE_PASTAZA.region_state:NPU = {
				set_state_owner =  PREV
			}
		}

		c:ARG = {
			annex = c:URU
			annex = c:PRG
		}

		c:BOL = {
			s:STATE_JUJUY.region_state:ARG = {
				set_state_owner =  PREV
			}
		}
	}
}

#ionian islands, krakow, montenegro
consolidate_region.13 = {
	type = country_event
	hidden = yes

	title = consolidate_region.13.t

	flavor = consolidate_region.13.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_little_three }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_little_three_enabled
	}

	immediate = {
		set_global_variable = consolidated_little_three

		c:AUS = {
			annex = c:KRA
		}

		c:TUR = {
			annex = c:MON
			s:STATE_MONTENEGRO.region_state:AUS = {
				set_state_owner =  PREV
			}
		}

		c:GRE = {
			annex = c:ION
		}
	}
}

#russia
consolidate_region.14 = {
	type = country_event
	hidden = yes

	title = consolidate_region.14.t

	flavor = consolidate_region.14.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_russia }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_russia_enabled
	}

	immediate = {
		set_global_variable = consolidated_russia

		c:RUS = {
			annex = c:CIR
			annex = c:CHC
		}

		c:TUR = {
			s:STATE_DOBRUDJA.region_state:RUS = {
				set_state_owner = PREV
			}
			s:STATE_KARS.region_state:RUS = {
				set_state_owner = PREV
			}
		}
	}
}

#north africa
consolidate_region.15 = {
	type = country_event
	hidden = yes

	title = consolidate_region.15.t

	flavor = consolidate_region.15.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_north_africa }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_north_africa_enabled
	}

	immediate = {
		set_global_variable = consolidated_north_africa

		c:CON = {
			annex = c:AIT
			annex = c:TUG
		}
	}
}

#italy
consolidate_region.16 = {
	type = country_event
	hidden = yes

	title = consolidate_region.16.t

	flavor = consolidate_region.16.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_italy }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_italy_enabled
	}

	immediate = {
		set_global_variable = consolidated_italy
		c:PAR = {
			annex = c:MOD
			annex = c:LUC
		}
	}
}

#germany
consolidate_region.17 = {
	type = country_event
	hidden = yes

	title = consolidate_region.17.t

	flavor = consolidate_region.17.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_germany }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_germany_enabled
	}

	immediate = {
		set_global_variable = consolidated_germany

		c:HOL = {
			annex = c:SCH
			annex = c:LUB
		}		

		c:WUR = {
			annex = c:HOH
		}
		c:SAX = {
			annex = c:WEI
			annex = c:SCW
			annex = c:COB
			annex = c:MEI
		}
		c:PRU = {
			annex = c:ANH
			annex = c:LIP
			annex = c:SCM
			annex = c:BRA
			s:STATE_BRUNSWICK.region_state:HAN = {
				set_state_owner =  PREV
			}
		}
		c:HES = {
			annex = c:HEK
			annex = c:WLD
			annex = c:HEK
			annex = c:NAS
			annex = c:FRM
		}
		c:HAN = {

			annex = c:HEK
			annex = c:NAS
			annex = c:FRM
			annex = c:BRE
			annex = c:OLD
			annex = c:HAM
		}
		c:MEC = {
			annex = c:MST
		}
	}
}

#polynesia
consolidate_region.19 = {
	type = country_event
	hidden = yes

	title = consolidate_region.19.t

	flavor = consolidate_region.19.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_polynesia }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_polynesia_enabled
	}

	immediate = {
		set_global_variable = consolidated_polynesia


		c:NSW = {
			annex = c:PLY
			annex = c:HAW
			annex = c:TNG
			annex = c:FJI		
			annex = c:KNK
			annex = c:FJI
			annex = c:VNT
			annex = c:BLA				
			annex = c:HLA
			annex = c:MCR
			annex = c:NRU
		}
	}
}

#south africa
consolidate_region.20 = {
	type = country_event
	hidden = yes

	title = consolidate_region.20.t

	flavor = consolidate_region.20.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_south_africa }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_south_africa_enabled
	}

	immediate = {
		set_global_variable = consolidated_south_africa



		c:TRN = {
			annex = c:ORA
			annex = c:BST
			annex = c:TRN
			annex = c:SWZ
			annex = c:PHL
			annex = c:ZUL			
		}

		c:POR = {
			annex = c:GZA
			annex = c:KON
			annex = c:AGC
		}

		c:BRZ = {
			annex = c:PNI
			annex = c:PRA
		}

		c:SAF = {
			annex = c:WBL
		}		

		c:SPU = {
			annex = c:IQU
		}
	}
}

#Treaty Ports
consolidate_region.21 = {
	type = country_event
	hidden = yes

	title = consolidate_region.21.t

	flavor = consolidate_region.21.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_treaty_ports }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_treaty_ports_enabled
	}

	immediate = {
		set_global_variable = consolidated_treaty_ports

		c:BIC = {
			s:STATE_MADRAS.region_state:FRA = {
				set_state_owner =  PREV
			}
			s:STATE_BOMBAY.region_state:POR = {
				set_state_owner =  PREV
			}
			s:STATE_GUJARAT.region_state:POR = {
				set_state_owner =  PREV
			}
			s:STATE_MADRAS.region_state:DEN = {
				set_state_owner =  PREV
			}
		}

		c:CHI = {
			s:STATE_GUANGDONG.region_state:POR = {
				set_state_owner =  PREV
			}
		}
	}
}

#persia and central asia
consolidate_region.22 = {
	type = country_event
	hidden = yes

	title = consolidate_region.22.t

	flavor = consolidate_region.22.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_central_asia }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_central_asia_enabled
	}

	immediate = {
		set_global_variable = consolidated_central_asia

		c:MAK = {
			annex = c:KAL
			s:STATE_BALUCHISTAN.region_state:OMA = {
				set_state_owner =  PREV
			}
			s:STATE_BALUCHISTAN.region_state:KAN = {
				set_state_owner =  PREV
			}
			s:STATE_SISTAN.region_state:OMA = {
				set_state_owner =  PREV
			}
			s:STATE_SISTAN.region_state:KAN = {
				set_state_owner =  PREV
			}
			s:STATE_NORTHERN_BALUCHISTAN.region_state:KAN = {
				set_state_owner =  PREV
			}
		}

		c:PAN = {
			s:STATE_KASHMIR.region_state:CHT = {
				set_state_owner =  PREV
			}
		}

		c:KAB = {
			annex = c:KAN
			annex = c:HER
			annex = c:CHT
			annex = c:KAF
			s:STATE_PASHTUNISTAN.region_state:PAN = {
				set_state_owner =  PREV
			}
		}

		c:UZH = {
			annex = c:OZH
			annex = c:KZH
			s:STATE_AKMOLINSK.region_state:RUS = {
				set_state_owner =  PREV
			}
			s:STATE_URALSK.region_state:RUS = {
				set_state_owner =  PREV
			}
		}

		c:RUS = {
			s:STATE_CHELYABINSK.region_state:UZH = {
				set_state_owner =  PREV
			}
			s:STATE_SAMARA.region_state:UZH = {
				set_state_owner =  PREV
			}
		}

		c:BUK = {
			annex = c:KUN
			annex = c:MAI
			annex = c:KOK
			annex = c:KHI
			annex = c:TRM
			s:STATE_KIRGHIZIA.region_state:CHI = {
				set_state_owner =  PREV
			}
		}

		c:UZH = {
			s:STATE_URALSK.region_state:BUK = {
				set_state_owner =  PREV
			}
			s:STATE_SYRDARYA.region_state:BUK = {
				set_state_owner =  PREV
			}
		}

		c:BUK = {
			s:STATE_KHIVA.region_state:UZH = {
				set_state_owner =  PREV
			}
		}
	}
}

#luxembourg and moldova
consolidate_region.23 = {
	type = country_event
	hidden = yes

	title = consolidate_region.23.t

	flavor = consolidate_region.23.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_lux_moldova }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_lux_moldova_enabled
	}

	immediate = {
		set_global_variable = consolidated_lux_moldova

		c:BEL = {
			annex = c:LUX
		}

		c:PRU = {
			s:STATE_RHINELAND.region_state:BAV = {
				set_state_owner =  PREV
			}
		}
	}
}

#western med treaty ports
consolidate_region.24 = {
	type = country_event
	hidden = yes

	title = consolidate_region.24.t

	flavor = consolidate_region.24.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_med_ports }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_med_ports_enabled
	}

	immediate = {
		set_global_variable = consolidated_med_ports

		c:SPA = {
			s:STATE_UPPER_ANDALUSIA.region_state:GBR = {
				set_state_owner =  PREV
			}
		}

		c:MOR = {
			s:STATE_AL_RIF.region_state:SPA = {
				set_state_owner =  PREV
			}
		}

		c:MAS = {
			s:STATE_ORAN.region_state:FRA = {
				set_state_owner =  PREV
			}
			s:STATE_ALGIERS.region_state:FRA = {
				set_state_owner =  PREV
			}
		}

		c:CON = {
			annex = c:AIT
			s:STATE_CONSTANTINE.region_state:FRA = {
				set_state_owner =  PREV
			}
		}
	}
}

#kenya coast
consolidate_region.25 = {
	type = country_event
	hidden = yes

	title = consolidate_region.25.t

	flavor = consolidate_region.25.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	trigger = {
		NOT = {	has_global_variable = consolidated_kenya_coast }
		game_date  > 1836.1.7
		game_date  < 1837.1.1
		has_game_rule = consolidated_kenya_coast_enabled
	}

	immediate = {
		set_global_variable = consolidated_kenya_coas

		s:STATE_KENYA = {
			set_owner_of_provinces = {
				country = c:OMA
				provinces = { xa02190 x6b52f1 x5c1ada }
			}
		}
		c:OMA = {
			annex = c:MBS
			annex = c:WTU
		}
		c:POR = {
			annex = c:TGI
		}
	}
}



