﻿# This is executed last among all history
GLOBAL = {
	
	every_country = {
		limit = { NOT = { has_law = law_type:law_slavery_banned } }
		ig:ig_landowners = { add_ideology = ideology_pro_slavery }
	}
	
###ACHIEVEMENT VARIABLES###
	
	#Serf's Up
	every_country = {
	   limit = { has_law = law_type:law_serfdom }
	   set_variable = serfs_up_ach_possible
	}
	
	#The Berlin Conference


	#Muhammad Ali's Ambition
	
	#Broken Promises
	every_country = {
		limit = {
			can_form_nation = ITA
		}
		set_variable = broken_promises_ach_possible
	}
	
	#Reading Campaign
	every_country = {
		limit = {
			literacy_rate <= 0.2
		}
		set_variable = reading_campaign_ach_possible
	}
	
	#We Are Not Amused
	
	#Star Swarmed Banner
	
	#Peccavi
	
	#Perkeletankki
	every_country = {
		limit = {
			exists = c:FIN
			this = c:FIN
		}
		set_variable = perkeletankki_ach_possible
	}
	
	#Luxurious Luxembourg

	
	#Anarchy in the UK

	#An Empire Under the Pun
	
	#I Didn't Vote for Pedro

	
	#Go West Young Man

	
	#The Western Protectorate
	every_country = {
		limit = {
			exists = c:CHI
			this = c:CHI
		}
		set_variable = the_western_protectorate_ach_possible
	}
	
	#The Paris Commune
	every_country = {
		limit = {
			exists = c:FRA
			this = c:FRA
		}
		set_variable = the_paris_commune_ach_possible
	}
	
	#Barbarys Back
	every_country = {
		limit = {
			exists = c:ALD
			this = c:ALD
		}
		set_variable = barbarys_back_ach_possible
	}
	
	#Miners and Minors
	every_country = {
		limit = {
			exists = c:LAN
			this = c:LAN
		}
		set_variable = miners_and_minors_ach_possible
	}
	
	#Healthy Man of Europe
	every_country = {
		limit = {
			exists = c:TUR
			this = c:TUR
		}
		set_variable = healthy_man_of_europe_ach_possible
	}
	
	#Habsburg Resurgence
	every_country = {
		limit = {
			exists = c:AUS
			this = c:AUS
		}
		set_variable = habsburg_resurgence_ach_possible
	}
	
	#The Great Game
	every_country = {
		limit = {
			exists = c:RUS
			this = c:RUS
		}
		set_variable = great_game_ach_possible
	}
	
	#Bourbon for Everyone
	every_country = {
		limit = {
			exists = c:SPA
			this = c:SPA
		}
		set_variable = bourbon_for_everyone_ach_possible
	}
	
	#American Territory
	every_country = {
		limit = {
			exists = c:SEQ
			this = c:SEQ
		}
		set_variable = american_territory_ach_possible
	}
	
	#Belle Epoque
	every_country = {
		limit = {
			exists = c:FRA
			this = c:FRA
		}
		set_variable = belle_epoque_ach_possible
	}
	
	#Risorgimento
	every_country = {
		limit = {
			can_form_nation = ITA
		}
		set_variable = risorgimento_ach_possible
	}
	
	#Three Hurrahs

	
	#Solomon's Quest

	
	#I Am a Scandinavian
	every_country = {
		limit = {
			can_form_nation = SCA
		}
		set_variable = i_am_a_scandinavian_ach_possible
	}

	#Event Variables
	
	set_global_variable = {
		name = number_of_mega_earthquakes
		value = 0
	}

	set_global_variable = {
		name = number_of_mega_floods
		value = 0
	}
	
	set_global_variable = {
		name = number_of_mega_eruptions
		value = 0
	}
	
	s:STATE_DISTRICT_OF_COLUMBIA = {	
		set_variable = {
            name = usa_state_flag_block
            value = yes
        }

        set_variable = {
            name = district_of_columbia
            value = yes
        }
	}
	
	s:STATE_WEST_VIRGINIA = {	
        set_variable = {
            name = usa_state_flag_block
            value = yes
        }
	}

	c:UCA = {
		add_radicals = {
			value = 1.2
		}
	}

	c:BOL = {
		trigger_event = {
			id = south_america.2
			days = 7
		}
	}
}
