capital = 451
oob = "LBA"
set_stability = 0.26
set_war_support = 0.51
add_political_power = 14

set_technology = {
	### Infantry ##
	infantry_weapons = 1
	basic_train = 1
	camelry = 1
}
### Navy - MtG ###
set_technology = {
	early_ship_hull_light = 1
	basic_ship_hull_light = 1
	early_ship_hull_cruiser = 1
	basic_ship_hull_cruiser = 1
	
	basic_naval_mines = 1

	## Modules##
	basic_battery = 1
	basic_light_battery = 1
	smoke_generator = 1
}

set_research_slots = 1
set_convoys = 20

add_ideas = {
	LBA_Wahbi_Ahmed_El_Bouri_hog_ade
	LBA_Mahmoud_al_Montaser_for_ade
	LBA_Abdel_Mawla_Lanki_eco_ade
	LBA_Nuri_Killigil_sec_ade
}

add_ideas = {
	LBA_home_of_the_Senussi
	LBA_ottoman_naval_penetration
	isolation
	limited_exports
	extensive_conscription
}

1009 = {#Kufra
	set_state_flag = lba_zawiya_1
	set_state_flag = lba_zawiya_2
}
273 = {	#Murzuq
	set_state_flag = lba_zawiya_1
}
448 = {	#Tripoli
	set_state_flag = lba_zawiya_1
}
452 = {	#Mersa Matruh
	set_state_flag = lba_zawiya_1
}
514 = {	#Algerian Desert
	set_state_flag = lba_zawiya_1
}
910 = {	#Niger
	set_state_flag = lba_zawiya_1
}
515 = {	#Wadai
	set_state_flag = lba_zawiya_1
	set_state_flag = blocked_caravan
}
556 = {	#Timbuktu
	set_state_flag = blocked_caravan
}

add_dynamic_modifier = {
	modifier = senussi_volunteers_dynamic_modifier
}

set_variable = {
	waf_route = 50
}
set_variable = {
	alg_route = 50
}
set_variable = {
	nig_route = 50
}
set_variable = {
	cam_route = 50
}
set_variable = {
	con_route = 50
}
set_variable = {
	siw_route = 20
}

activate_mission = LBA_waf_Timbuktu_Bilma_Caravan
#activate_mission = LBA_alg_Tuat_Murzuq_Caravan
activate_mission = LBA_siw_Siwa_Benghazi_Caravan
activate_mission = LBA_con_Congo_Wadai_Caravan
activate_mission = LBA_cam_Cameroon_Wadai_Caravan
activate_mission = LBA_nig_Nigeria_Wadai_Caravan

lba_evaluate_volunteers = yes
lba_recalculate_caravan_total = yes

add_opinion_modifier = { target = NFA modifier = KR_hostile }
reverse_add_opinion_modifier = { target = NFA modifier = KR_hostile }

country_event = {
	id = libya.1 #Emirate intro
	days = 1
}
LBA = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 25
	}
}
TUR = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
EGY = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
TUN = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
NFA = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
SRD = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
ITA = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
SIC = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
SRI = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
PAP = {
	country_event = {
		id = libyanew.19 #The North Africa Campaign
		days = 125
	}
}
#libya.18 fired for LBA in the Ottoman event file
TUN = {
	country_event = {
		id = libya.18 #The Ottoman Recession Hits Libya
		days = 43
	}
}
NFA = {
	country_event = {
		id = libya.18 #The Ottoman Recession Hits Libya
		days = 43
	}
}
LBA = {
	country_event = {
		id = libyanew.5 #The Cyrenaica Issue
		days = 56
	}
}
TUR = {
	country_event = {
		id = libyanew.5 #The Cyrenaica Issue
		days = 56
	}
}
EGY = {
	country_event = {
		id = libyanew.5 #The Cyrenaica Issue
		days = 56
	}
}
TUN = {
	country_event = {
		id = libyanew.5 #The Cyrenaica Issue
		days = 156
	}
}
NFA = {
	country_event = {
		id = libyanew.5 #The Cyrenaica Issue
		days = 156
	}
}
LBA = {
	country_event = {
		id = libyanew.1 #The Ottoman Presence in the Sahara
		days = 98
	}
}
TUR = {
	country_event = {
		id = libyanew.1 #The Ottoman Presence in the Sahara
		days = 98
	}
}
NFA = {
	country_event = {
		id = libyanew.1 #The Ottoman Presence in the Sahara
		days = 98
	}
}
TUN = {
	country_event = {
		id = libyanew.1 #The Ottoman Presence in the Sahara
		days = 98
	}
}
country_event = {
	id = libya.15 #Conflict in the Jabal
	days = 214
}
EGY = {
	country_event = {
		id = libya.15 #Conflict in the Jabal
		days = 214
	}
}
NFA = {
	country_event = {
		id = libya.15 #Conflict in the Jabal
		days = 214
	}
}
SUD = {
	country_event = {
		id = libya.15 #Conflict in the Jabal
		days = 214
	}
}
TUN = {
	country_event = {
		id = libya.15 #Conflict in the Jabal
		days = 214
	}
}
TUR = {
	country_event = {
		id = libya.15 #Conflict in the Jabal
		days = 214
	}
}
LBA = {
	country_event = {
		id = libyanew.2 #Legacy of the Akrama Agreement
		days = 245
	}
}
TUR = {
	country_event = {
		id = libyanew.2 #Legacy of the Akrama Agreement
		days = 245
	}
}
ITA = {
	country_event = {
		id = libyanew.2 #Legacy of the Akrama Agreement
		days = 245
	}
}
SRI = {
	country_event = {
		id = libyanew.2 #Legacy of the Akrama Agreement
		days = 245
	}
}
PAP = {
	country_event = {
		id = libyanew.2 #Legacy of the Akrama Agreement
		days = 245
	}
}
SIC = {
	country_event = {
		id = libyanew.2 #Legacy of the Akrama Agreement
		days = 245
	}
}
SRD = {
	country_event = {
		id = libyanew.2 #Legacy of the Akrama Agreement
		days = 245
	}
}
LBA = {
	country_event = {
		id = libyanew.13 #The Aouzou Dispute
		days = 268
	}
}
NFA = {
	country_event = {
		id = libyanew.13 #The Aouzou Dispute
		days = 268
	}
}
TUN = {
	country_event = {
		id = libyanew.13 #The Aouzou Dispute
		days = 268
	}
}
SUD = {
	country_event = {
		id = libyanew.13 #The Aouzou Dispute
		days = 268
	}
}
CEA = {
	country_event = {
		id = libyanew.13 #The Aouzou Dispute
		days = 268
	}
}
LBA = {
	country_event = {
		id = libyanew.3 #Republican Sentiments in Misrata
		days = 319
	}
}
TUR = {
	country_event = {
		id = libyanew.3 #Republican Sentiments in Misrata
		days = 319
	}
}
TUN = {
	country_event = {
		id = libyanew.3 #Republican Sentiments in Misrata
		days = 319
	}
}
country_event = {
	id = ottfla.12 #The Ottoman Empire Celebrates Eid-ul-Fitr
	days = 348 
}
country_event = {
	id = libya.16 #Border Friction in Western Egypt
	days = 395
}
TUN = {
	country_event = {
		id = libya.16 #Border Friction in Western Egypt
		days = 395
	}
}
EGY = {
	country_event = {
		id = libya.16 #Border Friction in Western Egypt
		days = 395
	}
}
TUR = {
	country_event = {
		id = libya.16 #Border Friction in Western Egypt
		days = 395
	}
}
SUD = {
	country_event = {
		id = libya.16 #Border Friction in Western Egypt
		days = 395
	}
}
NFA = {
	country_event = {
		id = libya.16 #Border Friction in Western Egypt
		days = 395
	}
}
country_event = {
	id = libya.29 #An Unexpected Encounter
	days = 424
}
LBA = {
	country_event = {
		id = libyanew.12 #Libyan Tobacco Harvest Increases
		days = 453
	}
}
TUR = {
	country_event = {
		id = libyanew.12 #Libyan Tobacco Harvest Increases
		days = 453
	}
}
TUN = {
	country_event = {
		id = libyanew.12 #Libyan Tobacco Harvest Increases
		days = 453
	}
}
CEA = {
	country_event = {
		id = libyanew.12 #Libyan Tobacco Harvest Increases
		days = 453
	}
}
NFA = {
	country_event = {
		id = libyanew.12 #Libyan Tobacco Harvest Increases
		days = 453
	}
}
country_event = {
	id = libya.24 #The Search for Zerzura
	days = 476
}
TUR = {
	country_event = {
		id = libya.24 #The Search for Zerzura
		days = 476
	}
}
EGY = {
	country_event = {
		id = libya.24 #The Search for Zerzura
		days = 476
	}
}
HUN = {
	country_event = {
		id = libya.24 #The Search for Zerzura
		days = 476
	}
}
AUS = {
	country_event = {
		id = libya.24 #The Search for Zerzura
		days = 476
	}
}
country_event = {
	id = libyanew.16 #Ongoing Tensions Over Jifarah
	days = 502
}
TUR = {
	country_event = {
		id = libyanew.16 #Ongoing Tensions Over Jifarah
		days = 502
	}
}
NFA = {
	country_event = {
		id = libyanew.16 #Ongoing Tensions Over Jifarah
		days = 502
	}
}
TUN = {
	country_event = {
		id = libyanew.16 #Ongoing Tensions Over Jifarah
		days = 502
	}
}
country_event = {
	id = libya.17 #Slavery on the Saharan Routes
	days = 531
}
TUR = {
	country_event = {
		id = libya.17 #Slavery on the Saharan Routes
		days = 531
	}
}
TUN = {
	country_event = {
		id = libya.17 #Slavery on the Saharan Routes
		days = 531
	}
}
MOR = {
	country_event = {
		id = libya.17 #Slavery on the Saharan Routes
		days = 531
	}
}
EGY = {
	country_event = {
		id = libya.17 #Slavery on the Saharan Routes
		days = 531
	}
}
SUD = {
	country_event = {
		id = libya.17 #Slavery on the Saharan Routes
		days = 531
	}
}
NFA = {
	country_event = {
		id = libya.17 #Slavery on the Saharan Routes
		days = 531
	}
}
CEA = {
	country_event = {
		id = libya.17 #Slavery on the Saharan Routes
		days = 531
	}
}
LBA = {
	country_event = {
		id = libyanew.4 #The Altars of the Philaeni
		days = 566
	}
}
TUR = {
	country_event = {
		id = libyanew.4 #The Altars of the Philaeni
		days = 566
	}
}
GRE = {
	country_event = {
		id = libyanew.4 #The Altars of the Philaeni
		days = 566
	}
}
EGY = {
	country_event = {
		id = libyanew.4 #The Altars of the Philaeni
		days = 566
	}
}
country_event = {
	id = libyanew.18 #Tripoli Relaxes the Libyan Tourism Ban
	days = 591
}
TUR = {
	country_event = {
		id = libyanew.18 #Tripoli Relaxes the Libyan Tourism Ban
		days = 591
	}
}
SRD = {
	country_event = {
		id = libyanew.18 #Tripoli Relaxes the Libyan Tourism Ban
		days = 591
	}
}
SIC = {
	country_event = {
		id = libyanew.18 #Tripoli Relaxes the Libyan Tourism Ban
		days = 591
	}
}
PAP = {
	country_event = {
		id = libyanew.18 #Tripoli Relaxes the Libyan Tourism Ban
		days = 591
	}
}
ITA = {
	country_event = {
		id = libyanew.18 #Tripoli Relaxes the Libyan Tourism Ban
		days = 591
	}
}
SRI = {
	country_event = {
		id = libyanew.18 #Tripoli Relaxes the Libyan Tourism Ban
		days = 591
	}
}
country_event = {
	id = libya.19 #Great Summit of the Cyrenaican Tribes
	days = 612
}
LBA = {
	country_event = {
		id = libyanew.11 #Esparto Grass Exports Recover
		days = 645
	}
}
TUN = {
	country_event = {
		id = libyanew.11 #Esparto Grass Exports Recover
		days = 645
	}
}
TUR = {
	country_event = {
		id = libyanew.11 #Esparto Grass Exports Recover
		days = 645
	}
}
country_event = {
	id = libya.2 #Emir is incapacitated
	days = 697
}
TUR = {
	country_event = {
		id = libyanew.6 #Emir is incapacitated
		days = 696
	}
}
EGY = {
	country_event = {
		id = libyanew.6 #Emir is incapacitated
		days = 696
	}
}
TUN = {
	country_event = {
		id = libyanew.6 #Emir is incapacitated
		days = 696
	}
}
NFA = {
	country_event = {
		id = libyanew.6 #Emir is incapacitated
		days = 696
	}
}

LBA = {
	country_event = {
		id = libyanew.14 #The Kufra Agreement
		days = 734
	}
}
EGY = {
	country_event = {
		id = libyanew.14 #The Kufra Agreement
		days = 734
	}
}
SUD = {
	country_event = {
		id = libyanew.14 #The Kufra Agreement
		days = 734
	}
}
TUR = {
	country_event = {
		id = libyanew.14 #The Kufra Agreement
		days = 734
	}
}
TUN = {
	country_event = {
		id = libyanew.14 #The Kufra Agreement
		days = 734
	}
}
CEA = {
	country_event = {
		id = libyanew.14 #The Kufra Agreement
		days = 734
	}
}
country_event = {
	id = libya.32 #Desert Glass Exports Boom in North Africa
	days = 789
}
EGY = {
	country_event = {
		id = libya.32 #Desert Glass Exports Boom in North Africa
		days = 789
	}
}
TUR = {
	country_event = {
		id = libya.32 #Desert Glass Exports Boom in North Africa
		days = 789
	}
}

country_event = {
	id = libyanew.15 #The Sidra Scheme
	days = 845
}
TUR = {
	country_event = {
		id = libyanew.15 #The Sidra Scheme
		days = 845
	}
}
country_event = {
	id = libyanew.17 #Battle of the Anai Pass
	days = 878
}
TUR = {
	country_event = {
		id = libyanew.17 #Battle of the Anai Pass
		days = 878
	}
}
TUN = {
	country_event = {
		id = libyanew.17 #Battle of the Anai Pass
		days = 878
	}
}
EGY = {
	country_event = {
		id = libyanew.17 #Battle of the Anai Pass
		days = 878
	}
}
CEA = {
	country_event = {
		id = libyanew.17 #Battle of the Anai Pass
		days = 878
	}
}
country_event = {
	id = libya.10 #Anniversary of the Treaty of Rome
	days = 1295
}

set_politics = {
	ruling_party = paternal_autocrat
	last_election = "1930.11.9"
	election_frequency = 48
	elections_allowed = no
}

set_popularities = {
	totalist = 0
	radical_socialist = 0
	syndicalist = 0
	social_democrat = 0
	social_liberal = 0
	market_liberal = 0
	social_conservative = 0
	authoritarian_democrat = 19
	paternal_autocrat = 58
	national_populist = 23
}

set_cosmetic_tag = LBA_OTT

create_country_leader = {
	name = "az-Zubayr bin Ahmad as-Sharif"
	desc = "POLITICS_ZUBAYR_SHARIF_DESC"
	picture = "gfx/leaders/LBA/Portrait_LBA_Zubayr_Sharif.png"
	expire = "1.1.1"
	ideology = pataut_islamism_subtype
}

create_country_leader = {
	name = "Idris I"
	desc = "POLITICS_IDRIS_DESC"
	picture = "gfx/leaders/LBA/Portrait_LBA_Idris.png"
	expire = "1.1.1"
	ideology = islamism_subtype
}

create_country_leader = {
	name = "az-Zubayr bin Ahmad as-Sharif"
	desc = "POLITICS_ZUBAYR_SHARIF_DESC"
	picture = "gfx/leaders/LBA/Portrait_LBA_Zubayr_Sharif.png"
	expire = "1.1.1"
	ideology = natpop_islamism_subtype
}

### Field Marshals ##
create_field_marshal = {
	name = "az-Zubayr bin Ahmad as-Sharif"
	portrait_path = "gfx/leaders/LBA/Portrait_LBA_Zubayr_Sharif.png"
	id = 613
	traits = {
		
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

### Corps Commanders ##
create_corps_commander = {
	name = "Omar Shegewi"
	portrait_path = "gfx/leaders/LBA/Portrait_LBA_Omar_Shegewi.png"
	traits = {
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Umar al-Mukhtār"
	portrait_path = "gfx/leaders/LBA/Portrait_LBA_Omar_Mukhtar.png"
	id = 610
	traits = {
		old_guard
		war_hero
		trickster
		guerilla_fighter
		commando
		desert_fox
	}
	skill = 4
	attack_skill = 3
	defense_skill = 4
	planning_skill = 3
	logistics_skill = 3
}

create_corps_commander = {
	name = "Yousaf Borahil Al-Msmare"
	portrait_path = "gfx/leaders/LBA/Portrait_LBA_Yousaf_Borahil_Al_Msmare.png"
	traits = {
		old_guard
		war_hero
		guerilla_fighter
		desert_fox
	}
	skill = 3
	attack_skill = 2
	defense_skill = 4
	planning_skill = 1
	logistics_skill = 3
}

create_corps_commander = {
	name = "Safi al-bin bin Muhammad as-Sharif"
	portrait_path = "gfx/leaders/LBA/Portrait_LBA_Safi_Muhammad_Sharif.png"
	traits = {
		war_hero
		guerilla_fighter
		desert_fox
	}
	skill = 2
	attack_skill = 2
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 1
}


### Admirals ##
create_navy_leader = {
	name = "Omar Faiek Shennib"
	portrait_path = "gfx/leaders/LBA/Portrait_LBA_Omar_Faiek_Shennibi.png"
	traits = {
		spotter
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	maneuvering_skill = 1
	coordination_skill = 1
}