capital = 541
OOB = "NMB_AFR"
set_research_slots = 2
set_technology = {
	###MOD ###
	###INF ###
	infantry_weapons = 1
	basic_train = 1
	early_fighter = 1
}

### Navy - MtG ###

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_ship_hull_cruiser = 1
		panzerschiffe = 1
		early_ship_hull_submarine = 1
		basic_ship_hull_submarine = 1
		early_ship_hull_carrier = 1
		basic_ship_hull_carrier = 1
		early_ship_hull_heavy = 1
		basic_ship_hull_heavy = 1
		pre_dreadnoughts = 1
		
		basic_naval_mines = 1

		## Modules##
		basic_battery = 1
		basic_light_battery = 1
		basic_medium_battery = 1
		basic_heavy_battery = 1
		basic_depth_charges = 1
		basic_torpedo = 1
		improved_ship_torpedo_launcher = 1
		basic_cruiser_armor_scheme = 1
		basic_heavy_armor_scheme = 1
		
		mtg_transport = 1
	}
}

### Navy - Non MtG ###

if = {
	limit = {
		not = {
			has_dlc = "Man the Guns"
		}
	}
	set_technology = {
		early_destroyer = 1
		basic_destroyer = 1
		early_light_cruiser = 1
		basic_light_cruiser = 1
		early_submarine = 1
		basic_submarine = 1
		early_heavy_cruiser = 1
		basic_heavy_cruiser = 1
		early_battlecruiser = 1
		early_battleship = 1
		basic_battleship = 1
		heavy_battleship = 1
		
		transport = 1
	}
}

set_cosmetic_tag = NMB_GERMAN

add_ideas = {
	Generic_Colonial_Nation
	NMB_vontrothaslegacy
	NMB_settlerprimacy
	NMB_beneaththesands
}	
add_ideas = {
	NMB_CJ_Langenhooven_hog_ade
	NMB_Bettie_Conradie_for_ade
	NMB_Christiaan_van_den_Heever_eco_ade
	NMB_Nikolaus_J_de_Wet_sec_mli
}

set_stability = 0.24
set_war_support = 0.17
add_political_power = -56
set_convoys = 25

add_offsite_building = { type = industrial_complex level = 1 }

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


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
	}
}


country_event = { id = sudwest.1 days = 1 } #Intro event
MAF = { country_event = { id = sudwest.1 days = 27 } } #Intro event

country_event = { id = sudwest.13 days = 23 } #Peace of the Graveyard
MAF = { country_event = { id = sudwest.13 days = 31 } }
GER = { country_event = { id = sudwest.13 days = 31 } }

country_event = { id = sudwest.40 days = 33 } # The Butcher of Ypres, von Deimling
MAF = { country_event = { id = sudwest.40 days = 33 } }
GER = { country_event = { id = sudwest.40 days = 33 } }

country_event = { id = sudwest.10 days = 41  } #Black Monday
MAF = { country_event = { id = sudwest.10 days = 41 } }

country_event = { id = sudwest.3 days = 55 } #Bechuanaland
MAF = { country_event = { id = sudwest.3 days = 55 } }

country_event = { id = sudwest.2 days = 84 } #Estorff affair event
MAF = { country_event = { id = sudwest.2 days = 84 } }
GER = { country_event = { id = sudwest.2 days = 84 } }

country_event = { id = sudwest.4 days = 116 } #Reiterdekmal vandalised
MAF = { country_event = { id = sudwest.4 days = 116 } }
GER = { country_event = { id = sudwest.4 days = 116 } }

country_event = { id = sudwest.12 days = 133 } #Walvis Bay Dispute
MAF = { country_event = { id = sudwest.12 days = 133 } }
GER = { country_event = { id = sudwest.12 days = 133 } }
CAN = { country_event = { id = sudwest.12 days = 133 } }
SAF = { country_event = { id = sudwest.12 days = 133 } }

country_event = { id = sudwest.16 days = 156 } #Fort works complete
MAF = { country_event = { id = sudwest.16 days = 156 } }
GER = { country_event = { id = sudwest.16 days = 156 } }

country_event = { id = sudwest.5 days = 184 } #Breaches of the Polizei zone
MAF = { country_event = { id = sudwest.5 days = 184 } }

#7-11 is done by focus tree

#King Nambala Protests Agent Depredations
country_event = { id = sudwest.22 days = 201 }
MAF = { country_event = { id = sudwest.22 days = 201 } }
GER = { country_event = { id = sudwest.22 days = 201 } }

#The Ghost of Mandume
country_event = { id = sudwest.23 days = 252 }
MAF = { country_event = { id = sudwest.23 days = 252 } }
GER = { country_event = { id = sudwest.23 days = 252 } }

#Cross-Kavango Raiding
country_event = { id = sudwest.15 days = 299 }
MAF = { country_event = { id = sudwest.15 days = 299 } }
PAF = { country_event = { id = sudwest.15 days = 299 } }
POR = { country_event = { id = sudwest.15 days = 299 } }
GER = { country_event = { id = sudwest.15 days = 299 } }

#Siege of the Finnish Mission
country_event = { id = sudwest.25 days = 322 }
MAF = { country_event = { id = sudwest.25 days = 322 } }
GER = { country_event = { id = sudwest.25 days = 322 } }
FIN = { country_event = { id = sudwest.25 days = 322 } }

#Battle of Omandongo
country_event = { id = sudwest.27 days = 332 }
MAF = { country_event = { id = sudwest.27 days = 332 } }
GER = { country_event = { id = sudwest.27 days = 332 } }
FIN = { country_event = { id = sudwest.27 days = 332 } }

#Revolt event
country_event = { id = kongocrisis.49 days = 340 }
MAF = { country_event = { id = sudwest.31 days = 340 } }
GER = { country_event = { id = sudwest.31 days = 340 } }

#Fighting in the Caprivi
country_event = { id = sudwest.28 days = 373 }
MAF = { country_event = { id = sudwest.28 days = 373 } }
BSC = { country_event = { id = sudwest.28 days = 373 } }
ZAM = { country_event = { id = sudwest.28 days = 373 } }
PAF = { country_event = { id = sudwest.28 days = 373 } }
SAF = { country_event = { id = sudwest.28 days = 373 } }

#Bambusen Issue
country_event = { id = sudwest.19 days = 493 }
MAF = { country_event = { id = sudwest.19 days = 493 } }

country_event = { id = sudwest.6 days = 539 } #Treasure of the Otjikoto
MAF = { country_event = { id = sudwest.6 days = 539 } }
GER = { country_event = { id = sudwest.6 days = 539 } }

#New Deportation Restrictions
country_event = { id = sudwest.20 days = 564 }
MAF = { country_event = { id = sudwest.20 days = 564 } }
GER = { country_event = { id = sudwest.20 days = 564 } }

# The Streitwolf Education Reforms
country_event = { id = sudwest.41 days = 598 }
MAF = { country_event = { id = sudwest.41 days = 598 } }
GER = { country_event = { id = sudwest.41 days = 598 } }

#Karakul wool boom
country_event = { id = sudwest.21 days = 621 }
MAF = { country_event = { id = sudwest.21 days = 621 } }
GER = { country_event = { id = sudwest.21 days = 621 } }

#Decline of the Südwestafrikan UNIA
country_event = { id = sudwest.24 days = 676 }
MAF = { country_event = { id = sudwest.24 days = 676 } }
GER = { country_event = { id = sudwest.24 days = 676 } }

#The Wilhelmsthal Scandal
country_event = { id = sudwest.18 days = 706 }
MAF = { country_event = { id = sudwest.18 days = 706 } }
GER = { country_event = { id = sudwest.18 days = 706 } }
ENG = { country_event = { id = sudwest.18 days = 706 } }
SAF = { country_event = { id = sudwest.18 days = 706 } }

#Drying of the Okavango
country_event = { id = sudwest.26 days = 744 }
MAF = { country_event = { id = sudwest.26 days = 744 } }
SAF = { country_event = { id = sudwest.26 days = 744 } }
PAF = { country_event = { id = sudwest.26 days = 744 } }
ZAM = { country_event = { id = sudwest.26 days = 744 } }
BSC = { country_event = { id = sudwest.26 days = 744 } }

#Riot in Walvis Bay
country_event = { id = sudwest.29 days = 784 }
MAF = { country_event = { id = sudwest.29 days = 784 } }

#Integration of the Kaokoveld
country_event = { id = sudwest.30 days = 823 }
MAF = { country_event = { id = sudwest.30 days = 823 } }

#Bushmen Protection Ordinance
country_event = { id = sudwest.14 days = 875 } 
MAF = { country_event = { id = sudwest.14 days = 875 } }
GER = { country_event = { id = sudwest.14 days = 875 } }

#Skull of Cornelius Fredericks
country_event = { id = sudwest.17 days = 934 }
MAF = { country_event = { id = sudwest.17 days = 934 } }
GER = { country_event = { id = sudwest.17 days = 934 } }

#The Khauxanas Row
country_event = { id = sudwest.33 days = 999 }
MAF = { country_event = { id = sudwest.33 days = 999 } }
GER = { country_event = { id = sudwest.33 days = 999 } }
SAF = { country_event = { id = sudwest.33 days = 999 } }

#The Second Gun Vaccination Campaign
country_event = { id = sudwest.35 days = 1044 }
MAF = { country_event = { id = sudwest.35 days = 1044 } }
GER = { country_event = { id = sudwest.35 days = 1044 } }

#'Das alte Südwestafrika' Republished
country_event = { id = sudwest.36 days = 1091 }
MAF = { country_event = { id = sudwest.36 days = 1091 } }
GER = { country_event = { id = sudwest.36 days = 1091 } }

#The Blue Book Scandal
country_event = { id = sudwest.37 days = 1145 }
MAF = { country_event = { id = sudwest.37 days = 1145 } }
GER = { country_event = { id = sudwest.37 days = 1145 } }
SAF = { country_event = { id = sudwest.37 days = 1145 } }
CAN = { country_event = { id = sudwest.37 days = 1145 } }
ENG = { country_event = { id = sudwest.37 days = 1145 } }
ZIM = { country_event = { id = sudwest.37 days = 1145 } }
SFR = { country_event = { id = sudwest.37 days = 1145 } }
PAF = { country_event = { id = sudwest.37 days = 1145 } }
ZAM = { country_event = { id = sudwest.37 days = 1145 } }
BSC = { country_event = { id = sudwest.37 days = 1145 } }
BRT = { country_event = { id = sudwest.37 days = 1145 } }
MLW = { country_event = { id = sudwest.37 days = 1145 } }

#Paulinum Theological Seminary Founded in Karibib
country_event = { id = sudwest.39 days = 1192 }
MAF = { country_event = { id = sudwest.39 days = 1192 } }
GER = { country_event = { id = sudwest.39 days = 1192 } }
SAF = { country_event = { id = sudwest.39 days = 1192 } }
SFR = { country_event = { id = sudwest.39 days = 1192 } }

add_manpower = 12117

	MAF = {
		every_unit_leader = {
			limit = { has_unit_leader_flag = NMB_leader_flag }
			set_nationality = NMB
		}
	}
	
set_popularities = {
  totalist = 0
  radical_socialist = 1
  syndicalist = 1
  social_democrat = 6
  social_liberal = 4
  market_liberal = 2
  social_conservative = 26
  authoritarian_democrat = 37
  paternal_autocrat = 23
  national_populist = 0
}

create_country_leader = {
	name = "Theophilus Hamutumbangela" #actually Anthony Wilson from LIB but used for Theophilus Hamutumbangela as he has no workable pictures #this is what the kaiserdevs say, but we have a portrait of the guy so now who's laughing
	picture = "gfx/leaders/NMB/Portrait_NMB_Theophilus_Hamutumbangela.png"
	expire = "1.1.1"
	ideology = autocratic_socialist_subtype
}

create_country_leader = {
	name = "Theophilus Hamutumbangela" #actually Anthony Wilson from LIB but used for Theophilus Hamutumbangela as he has no workable pictures #this is what the kaiserdevs say, but we have a portrait of the guy so now who's laughing
	picture = "gfx/leaders/NMB/Portrait_NMB_Theophilus_Hamutumbangela.png"
	expire = "1.1.1"
	ideology = african_syndicalism_subtype
}

create_country_leader = {
	name = "Otto Schimming"
	desc = "POLITICS_OTTO_SCHIMMING_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Otto_Schimming.png"
	expire = "1.1.1"
	ideology = christian_socialism_subtype
	traits = {}
}

create_country_leader = {
	name = "Leonard Auala"
	desc = "POLITICS_LEORNARD_AUALA_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Leonard_Auala.png"
	expire = "1.1.1"
	ideology = socdem_republican_panafricanism_subtype
	traits = {}
}

create_country_leader = {
	name = "Hosea Kutako"
	desc = "POLITICS_HOSEA_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Hosea_Kutako.png"
	expire = "1.1.1"
	ideology = radical_liberalism_subtype
	traits = {}
}

create_country_leader = {
	name = "Gustav Adolf Schatz"
	desc = "POLITICS_GUSTAV_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Gutav_Adolf_Schatz.png"
	expire = "1.1.1"
	ideology = humanistic_capitalism_subtype
	traits = {}
}

create_country_leader = {
	name = "Gustav Adolf Schatz"
	desc = "POLITICS_GUSTAV_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Gutav_Adolf_Schatz.png"
	expire = "1.1.1"
	ideology = christian_democracy_subtype
	traits = {}
}

create_country_leader = {
	name = "Gustav Adolf Schatz"
	desc = "POLITICS_GUSTAV_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Gutav_Adolf_Schatz.png"
	expire = "1.1.1"
	ideology = authoritarian_liberalism_subtype
	traits = {}
}

create_country_leader = {
	name = "Berthold von Deimling"
	desc = "POLITICS_KIRSCHHEIM_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Berthold_von_Deimling.png"
	expire = "1.1.1"
	ideology = autocratic_colonial_govt_subtype
	traits = {}
}

create_country_leader = {
	name = "Berthold von Deimling"
	desc = "POLITICS_KIRSCHHEIM_DESC"
	picture = "gfx/leaders/NMB/Portrait_NMB_Berthold_von_Deimling.png"
	expire = "1.1.1"
	ideology = volkism_subtype
	traits = {}
}

create_corps_commander = {
	name = "Martin Franz Chales de Beaulieu"
	portrait_path = "gfx/leaders/NMB/Portrait_NMB_Martin_Franz_Chales_de_Beaulieu.png"
	traits = {
		old_guard
		logistics_wizard
		desert_fox
	}
	skill = 3
	attack_skill = 4
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 2
	id = 22992
}

random_unit_leader = {
	limit = { has_id = 22992 }
	set_unit_leader_flag = NMB_leader_flag
}

create_corps_commander = {
	name = "Erich von Gilsa"
	portrait_path = "gfx/leaders/NMB/Portrait_NMB_Erich_von_Gilsa.png"
	traits = {
		old_guard
		politically_connected
	}
	skill = 3
	attack_skill = 2
	defense_skill = 4
	planning_skill = 3
	logistics_skill = 3
	id = 22994
}

random_unit_leader = {
	limit = { has_id = 22994 }
	set_unit_leader_flag = NMB_leader_flag
}

create_corps_commander = {
	name = "Ludwig von Erstorff"
	portrait_path = "gfx/leaders/NMB/Portrait_NMB_Ludwig_von_Estorff.png"
	traits = {
		old_guard
		commando
	}
	skill = 3
	attack_skill = 3
	defense_skill = 3
	planning_skill = 3
	logistics_skill = 3
	id = 22996
}

random_unit_leader = {
	limit = { has_id = 22996 }
	set_unit_leader_flag = NMB_leader_flag
}

create_corps_commander = {
	name = "Berthold von Deimling"
	portrait_path = "gfx/leaders/NMB/Portrait_NMB_Berthold_von_Deimling.png"
	traits = {
		old_guard
		media_personality
		infantry_expert
	}
	skill = 3
	attack_skill = 4
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 2
	id = 8794
}

random_unit_leader = {
	limit = { has_id = 87942 }
	set_unit_leader_flag = NMB_leader_flag
}

GER_start_naval_variant = yes

