capital = 458
OOB = "TUN_AFR"
set_research_slots = 2

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
		basic_heavy_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
		improved_light_tank_chassis = 1
		basic_heavy_tank_chassis = 1
		engine_tech_1 = 1
	}
}
set_technology = {
	### MOD ###
	basic_train = 1
	camelry = 1
	### General ###
	electronic_mechanical_engineering = 1

	### INF ###
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_support = 1
	tech_recon = 1
	tech_engineers = 1
	tech_mountaineers = 1
	tech_trucks = 1
	motorised_infantry = 1
	gw_artillery = 1
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			aa_cannon_1 = 1
			early_bombs = 1
			engines_1 = 1
			engines_2 = 1
			iw_small_airframe = 1
			basic_small_airframe = 1
			iw_medium_airframe = 1
			basic_medium_airframe = 1
			iw_large_airframe = 1
			basic_large_airframe = 1
			air_torpedoe_1 = 1
		}
		MAF_BBA_air_variants = yes
	else = {
		set_technology = {
			early_fighter = 1
			fighter1 = 1
			naval_bomber1 = 1
			early_bomber = 1
			strategic_bomber1 = 1
			tactical_bomber1 = 1
			CAS1 = 1
			cv_early_fighter = 1
			cv_naval_bomber1 = 1
			cv_CAS1 = 1
		}
	}
}

#set_country_flag = KX_no_naval_tech_decision_enable

add_political_power = -41

if = {
	limit = {
		is_ai = no
	}
	set_rule = {
		can_send_volunteers = yes
		can_be_spymaster = yes
		can_decline_call_to_war = yes
		can_not_declare_war = no
		can_puppet = yes
		units_deployed_to_overlord = yes
	}
}


set_convoys = 18
set_stability = 0.41
set_war_support = 0.43

#set_country_flag = KX_no_naval_tech_decision_enable

set_politics = {
	ruling_party = authoritarian_democrat
	last_election = "1888.6.15"
	election_frequency = 48
	elections_allowed = no
}

NFA = {
	set_autonomy = {
		target = TUN
		autonomous_state = kx_colored_puppet
	}
}

set_cosmetic_tag = TUN_PRO

add_ideas = {
	Generic_Colonial_Nation_lesser
	TUN_lamarsaconventions_idea
	TUN_discontentedulama_idea
	TUN_socialistopposition_idea
}

#Events

#Intro
country_event = { id = tunisia.1 days = 1 }
NFA = { country_event = { id = tunisia.1 days = 29 } }

# Bourguiba Attends the Birmingham Meeting
country_event = { id = tunflav.14 days = 34 }
NFA = { country_event = { id = tunflav.14 days = 34 } }
FRA = { country_event = { id = tunflav.14 days = 34 } }

# Black Monday in Tunisia
country_event = { id = tunisia.6 days = 42 }
NFA = { country_event = { id = tunisia.6 days = 42 } }
MLT = { country_event = { id = tunisia.6 days = 42 } }

# The Weltkrieg in Tunisia
country_event = { id = tunflav.13 days = 57 }
NFA = { country_event = { id = tunflav.13 days = 57 } }

# Saadeh Publishes 'The Genesis of Nations'
country_event = { id = tunflav.45 days = 63 }
NFA = { country_event = { id = tunflav.45 days = 63 } }
EGY = { country_event = { id = tunflav.45 days = 63 } }
SUD = { country_event = { id = tunflav.45 days = 63 } }
YEM = { country_event = { id = tunflav.45 days = 63 } }
PAL = { country_event = { id = tunflav.45 days = 63 } }
LIB = { country_event = { id = tunflav.45 days = 63 } }
MOR = { country_event = { id = tunflav.45 days = 63 } }
DJI = { country_event = { id = tunflav.45 days = 63 } }

# Nationalist Opposition
country_event = { id = tunisia.5 days = 76 }
NFA = { country_event = { id = tunisia.5 days = 76 } }

# Cross-Border Raids in Tripolitania
country_event = { id = tunisia.26 days = 93 }
NFA = { country_event = { id = tunisia.26 days = 93 } }
TUR = { country_event = { id = tunisia.26 days = 93 } }
LBA = { country_event = { id = tunisia.26 days = 93 } }

# Statement of Intent
country_event = { id = tunflav.12 days = 102 }
NFA = { country_event = { id = tunflav.12 days = 102 } }

# The Arslan-Bourguiba Meeting
country_event = { id = tunflav.38 days = 112 }
NFA = { country_event = { id = tunflav.38 days = 112 } }
TUR = { country_event = { id = tunflav.38 days = 112 } }
LBA = { country_event = { id = tunflav.38 days = 112 } }
EGY = { country_event = { id = tunflav.38 days = 112 } }
MOR = { country_event = { id = tunflav.38 days = 112 } }
PAL = { country_event = { id = tunflav.38 days = 112 } }
YEM = { country_event = { id = tunflav.38 days = 112 } }

# The Tunisian Native Code
country_event = { id = tunisia.24 days = 125 }
NFA = { country_event = { id = tunisia.24 days = 125 } }

# Carthage Eucharistic Congress
country_event = { id = tunflav.1 days = 142 }
NFA = { country_event = { id = tunflav.1 days = 142 } }
PAP = { country_event = { id = tunflav.1 days = 142 } }
ITA = { country_event = { id = tunflav.1 days = 142 } }
SRD = { country_event = { id = tunflav.1 days = 142 } }
SIC = { country_event = { id = tunflav.1 days = 142 } }
MLT = { country_event = { id = tunflav.1 days = 142 } }

# The Tunisian Ideological Divide
country_event = { id = tunflav.34 days = 169 }
NFA = { country_event = { id = tunflav.34 days = 169 } }
FRA = { country_event = { id = tunflav.34 days = 169 } }
EGY = { country_event = { id = tunflav.34 days = 169 } }

# Increased Attacks in the Hejaz
country_event = { id = tunflav.46 days = 174 }
NFA = { country_event = { id = tunflav.46 days = 174 } }
EGY = { country_event = { id = tunflav.46 days = 174 } }
SUD = { country_event = { id = tunflav.46 days = 174 } }
YEM = { country_event = { id = tunflav.46 days = 174 } }
PAL = { country_event = { id = tunflav.46 days = 174 } }
LIB = { country_event = { id = tunflav.46 days = 174 } }
MOR = { country_event = { id = tunflav.46 days = 174 } }
DJI = { country_event = { id = tunflav.46 days = 174 } }

# La Tunisie Martyre Spreads
country_event = { id = tunflav.7 days = 189 }
NFA = { country_event = { id = tunflav.7 days = 189 } }
FRA = { country_event = { id = tunflav.7 days = 189 } }

# Legacy of the Franco-Tunisian Customs Union
country_event = { id = tunflav.39 days = 205 }
NFA = { country_event = { id = tunflav.39 days = 205 } }

# Rumours of corruption scandal
country_event = { id = tunisia.12 days = 218 }
NFA = { country_event = { id = tunisia.12 days = 218 } }

#L'Action Tunissiene
country_event = { id = tunflav.16 days = 239 }
NFA = { country_event = { id = tunflav.16 days = 239 } }

# The Italian Maghrebis
country_event = { id = tunflav.35 days = 257 }
NFA = { country_event = { id = tunflav.35 days = 257 } }
LBA = { country_event = { id = tunflav.35 days = 257 } }
TUR = { country_event = { id = tunflav.35 days = 257 } }
MLT = { country_event = { id = tunflav.35 days = 257 } }
ITA = { country_event = { id = tunflav.35 days = 257 } }
SRD = { country_event = { id = tunflav.35 days = 257 } }
PAP = { country_event = { id = tunflav.35 days = 257 } }
SRI = { country_event = { id = tunflav.35 days = 257 } }
SIC = { country_event = { id = tunflav.35 days = 257 } }

# Moncef Bey Renovates the Ghriba Synagogue
country_event = { id = tunflav.11 days = 279 }
NFA = { country_event = { id = tunflav.11 days = 279 } }
TUR = { country_event = { id = tunflav.11 days = 279 } }
PAL = { country_event = { id = tunflav.11 days = 279 } }
MLT = { country_event = { id = tunflav.11 days = 279 } }

# Muhammed Ali Returns to Tunis
country_event = { id = tunflav.5 days = 296 }
NFA = { country_event = { id = tunflav.5 days = 296 } }
EGY = { country_event = { id = tunflav.5 days = 296 } }
SUD = { country_event = { id = tunflav.5 days = 296 } }

# Infighting at the L'Institut Pasteur de Tunis
country_event = { id = tunflav.10 days = 321 }
NFA = { country_event = { id = tunflav.10 days = 321 } }
FRA = { country_event = { id = tunflav.10 days = 321 } }
MLT = { country_event = { id = tunflav.10 days = 321 } }

# Bickering in Grand Council
country_event = { id = tunisia.25 days = 346 }
NFA = { country_event = { id = tunisia.25 days = 346 } }

# The Msika Affair
country_event = { id = tunflav.2 days = 367 }
NFA = { country_event = { id = tunflav.2 days = 367 } }
FRA = { country_event = { id = tunflav.2 days = 367 } }
MLT = { country_event = { id = tunflav.2 days = 367 } }

# The Musulfrancs Problem
country_event = { id = tunflav.9 days = 394 }
NFA = { country_event = { id = tunflav.9 days = 394 } }

# Huwa Am!
country_event = { id = tunflav.8 days = 425 }
NFA = { country_event = { id = tunflav.8 days = 425 } }

# Splits Over Tunisian Totalism
country_event = { id = tunflav.44 days = 448 }
NFA = { country_event = { id = tunflav.44 days = 448 } }
FRA = { country_event = { id = tunflav.44 days = 448 } }

# Famine in Ottoman Tripolitania
country_event = { id = tunflav.47 days = 465 }
NFA = { country_event = { id = tunflav.47 days = 465 } }
EGY = { country_event = { id = tunflav.47 days = 465 } }
SUD = { country_event = { id = tunflav.47 days = 465 } }
LBA = { country_event = { id = tunflav.47 days = 465 } }

# Khumayr Raids on the Algerian Border
country_event = { id = tunflav.4 days = 470 }
NFA = { country_event = { id = tunflav.4 days = 470 } }

#Inter-Dustur Riots in Beja
country_event = { id = tunflav.18 days = 494 }
NFA = { country_event = { id = tunflav.18 days = 494 } }

# Republication of the 'The Surest Path'
country_event = { id = tunflav.3 days = 512 }
NFA = { country_event = { id = tunflav.3 days = 512 } }

#Breakout at Bordj le Boeuf
country_event = { id = tunflav.17 days = 533 }
NFA = { country_event = { id = tunflav.17 days = 533 } }

# War Rumours in Tunis
country_event = { id = tunflav.15 days = 556 }
NFA = { country_event = { id = tunflav.15 days = 556 } }
EGY = { country_event = { id = tunflav.15 days = 556 } }
LBA = { country_event = { id = tunflav.15 days = 556 } }

#The Belhaouane Massacre
country_event = { id = tunflav.19 days = 590 }
NFA = { country_event = { id = tunflav.19 days = 590 } }

# Kaddour ben Nitram, the Funny Man of Tunis
country_event = { id = tunflav.32 days = 623 }
NFA = { country_event = { id = tunflav.32 days = 623 } }

# Thirtieth Anniversary of Le Tunisien
country_event = { id = tunflav.42 days = 650 }
NFA = { country_event = { id = tunflav.42 days = 650 } }

# Muslim Scholars Complain about Vintners
country_event = { id = tunflav.23 days = 677 }
NFA = { country_event = { id = tunflav.23 days = 677 } }
FRA = { country_event = { id = tunflav.23 days = 677 } }
TRP = { country_event = { id = tunflav.23 days = 677 } }
LBA = { country_event = { id = tunflav.23 days = 677 } }
TUR = { country_event = { id = tunflav.23 days = 677 } }
EGY = { country_event = { id = tunflav.23 days = 677 } }
MOR = { country_event = { id = tunflav.23 days = 677 } }

# Continued Influx of Rural Migrants
country_event = { id = tunflav.24 days = 699 }
NFA = { country_event = { id = tunflav.24 days = 699 } }

#Alexandrine Patriarch Visits Tunis
country_event = { id = tunflav.36 days = 734 }
NFA = { country_event = { id = tunflav.36 days = 734 } }
GRE = { country_event = { id = tunflav.36 days = 734 } }
TUR = { country_event = { id = tunflav.36 days = 734 } }
EGY = { country_event = { id = tunflav.36 days = 734 } }
LBA = { country_event = { id = tunflav.36 days = 734 } }

# al-Sadli Defects to Néo-Dustūr
country_event = { id = tunflav.43 days = 754 }
NFA = { country_event = { id = tunflav.43 days = 754 } }

# The Tunisian Hat Wars
country_event = { id = tunflav.26 days = 777 }
NFA = { country_event = { id = tunflav.26 days = 777 } }

# The Friendly Association
country_event = { id = tunflav.27 days = 804 }
NFA = { country_event = { id = tunflav.27 days = 804 } }

# Challaye Reports on Maghrebi Violence
country_event = { id = tunflav.28 days = 855 }
NFA = { country_event = { id = tunflav.28 days = 855 } }

# The Death of Alexis Lemaitr
country_event = { id = tunflav.29 days = 909 }
NFA = { country_event = { id = tunflav.29 days = 909 } }

# The Restoration of Mamluk Identity
country_event = { id = tunflav.37 days = 944 }
NFA = { country_event = { id = tunflav.37 days = 944 } }
TUR = { country_event = { id = tunflav.37 days = 944 } }
LBA = { country_event = { id = tunflav.37 days = 944 } }
MOR = { country_event = { id = tunflav.37 days = 944 } }

# The Rise of Couscous
country_event = { id = tunflav.30 days = 976 }
NFA = { country_event = { id = tunflav.30 days = 976 } }
FRA = { country_event = { id = tunflav.30 days = 976 } }
MOR = { country_event = { id = tunflav.30 days = 976 } }
MLT = { country_event = { id = tunflav.30 days = 976 } }
LBA = { country_event = { id = tunflav.30 days = 976 } }
TRP = { country_event = { id = tunflav.30 days = 976 } }

# A Standard Day in Tunisia
country_event = { id = tunflav.31 days = 1033 }
NFA = { country_event = { id = tunflav.31 days = 1033 } }

# Weakening Opposition
country_event = { id = tunflav.40 days = 1087 }

# Student Protests at Zaituna
country_event = { id = tunflav.41 days = 1154 }


####
create_country_leader = {
	name = "Habib Bourguiba"
	picture = "gfx/leaders/TUN/Portrait_TUN_Habib_Bourguiba.png"
	expire = "1.1.1"
	ideology = natsynd_subtype
}

create_country_leader = {
	name = "Tahar Haddad"
	picture = "gfx/leaders/TUN/Portrait_TUN_Tahar_Haddad.png"
	expire = "1.1.1"
	ideology = centralized_syndicalism_subtype
}

create_country_leader = {
	name = "Mohamed Ali Elhammi"
	picture = "gfx/leaders/TUN/Portrait_TUN_Mohamed_Ali_Elhammi.png"
	expire = "1.1.1"
	ideology = agrarian_socialism_subtype
}

create_country_leader = {
	name = "Élie Cohen-Hadria"
	picture = "gfx/leaders/TUN/Portrait_TUN_Elie_Cohen_Hadria.png"
	expire = "1.1.1"
	ideology = socdem_left_nationalism_subtype
}

create_country_leader = {
	name = "Abdeljelil Zaouche"
	picture = "gfx/leaders/TUN/Portrait_TUN_Abdeljelil_Zaouche.png"
	expire = "1.1.1"
	ideology = centrist_subtype
}

create_country_leader = {
	name = "Abdeljelil Zaouche"
	picture = "gfx/leaders/TUN/Portrait_TUN_Abdeljelil_Zaouche.png"
	expire = "1.1.1"
	ideology = marlib_centrist_subtype
}

create_country_leader = {
	name = "Monsif Bey"
	picture = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
	desc = "POLITICS_MONCEF_DESC"
	expire = "1.1.1"
	ideology = soccon_islamism_subtype
}

create_country_leader = {
	name = "Monsif Bey"
	picture = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
	desc = "POLITICS_MONCEF_DESC"
	expire = "1.1.1"
	ideology = colonial_govt_subtype
}

create_country_leader = {
	name = "Monsif Bey"
	desc = "POLITICS_MONCEF_DESC"
	picture = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
	expire = "1.1.1"
	ideology = absolute_monarchy_subtype
}

create_country_leader = {
	name = "Monsif Bey"
	picture = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
	desc = "POLITICS_MONCEF_DESC"
	expire = "1.1.1"
	ideology = natpop_agrarianism_subtype
}

set_popularities = {
	totalist = 2
	radical_socialist = 2
	syndicalist = 2
	social_democrat = 12
	social_liberal = 15
	market_liberal = 15
	social_conservative = 17
	authoritarian_democrat = 26
	paternal_autocrat = 5
	national_populist = 4
}

### Field Marshals ###

create_field_marshal = {
	name = "Monsif Bey"
	portrait_path = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
	traits = {
		old_guard
		desert_fox
	}
	id = 87911
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mahmoud El Materi"
	portrait_path = "gfx/leaders/Generic/Portrait_Arabia_Generic_land_new_5.png"
	traits = {
		trait_engineer
	}
	skill = 3
	attack_skill = 2
	defense_skill = 1
	planning_skill = 3
	logistics_skill = 4
}

create_corps_commander = {
	name = "Hassan Ferjani"
	portrait_path = "gfx/leaders/Generic/Portrait_Arabia_Generic_land_new_6.png"
	traits = {
		harsh_leader
		commando
	}
	skill = 2
	attack_skill = 2
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}
