########################
#                    
# Crusader Kings II  
# Steam Achievements 
#                    
########################

# "The Marriage Game" - Marry another character.
THE_MARRIAGE_GAME = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_get_married }
	}
	
	happened = {
		has_character_flag = achievement_get_married
	}
}

# "A Pope of My Own" - Set up an antipope.
A_POPE_OF_MY_OWN = {
	possible = {
		always = no
	}

	happened = {
	}
}

# "All Three Popes" - Play a game where there are two simultaneous antipopes.
ALL_THREE_POPES = {
	possible = {
		always = no
	}

	happened = {
	}
}

# "Exalted Among Men" - Fulfill the Become Exalted ambition.
EXALTED_AMONG_MEN = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_become_exalted }
	}
	
	happened = {
		has_character_flag = achievement_become_exalted
	}
}

# "Until Death Do Us Part" - Have your spouse assassinated.
DEATH_DO_US_PART = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_spouse_killer }
	}
	
	happened = {
		has_character_flag = achievement_spouse_killer
	}
}

# "Always Bet On Duke" - Work your way up from Count to Duke with a single character.
ALWAYS_BET_ON_DUKE = {
	possible = {
		#is_ironman = yes
		primary_title = {
			tier = COUNT
		}
	}
	
	happened = {
		primary_title = {
			tier = DUKE
		}
	}
}

# "Full House" - Sire five children.
FULL_HOUSE = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_full_house }
	}
	
	happened = {
		has_character_flag = achievement_full_house
	}
}

# "Crusader" - Fulfill the goal of a Crusade.
CRUSADER = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Paragon of Virtue" - Fulfill the Paragon of Virtue ambition.
PARAGON_OF_VIRTUE = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_become_paragon_of_virtue }
	}
	
	happened = {
		has_character_flag = achievement_become_paragon_of_virtue
	}
}

# "United the Kingdoms" - Hold the kingdoms of England, Scotland, Wales and Ireland.
UNITED_THE_KINGDOMS = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "On English Neck a Norman Yoke" - Starting in the "Stamford Bridge" bookmark as William the Bastard, become the King of England.
A_NORMAN_YOKE = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "It's Good to be the King" - Work your way up from Count to King with a single character.
GOOD_TO_BE_KING = {
	possible = {
		#is_ironman = yes
		primary_title = {
			tier = COUNT
		}
	}
	
	happened = {
		primary_title = {
			tier = KING
		}
	}
}

# "It's Better to be the Emperor" - Work your way up from Count to Emperor with a single character.
BETTER_BE_EMPEROR = {
	possible = {
		#is_ironman = yes
		primary_title = {
			tier = COUNT
		}
	}
	
	happened = {
		primary_title = {
			tier = EMPEROR
		}
	}
}

# "Survivor" - Play a game all the way through from 1066 to 1453.
SURVIVOR = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Hard Ruler" - Starting in the "Stamford Bridge" bookmark as Harald of Norway, become the King of England.
HARD_RULER = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Crusader King" - Starting in the "Stamford Bridge" bookmark, hold the Kingdom of Jerusalem.
CRUSADER_KING = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Prester John" - As a Catholic, have a border with Miaphysite Abyssinia.
PRESTER_JOHN = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Russkaya Pravda" - Create the Kingdom of Russia as a Slav.
RUSSKAYA_PRAVDA = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "The Outside Bet" - Starting in the "Stamford Bridge" bookmark as Svend II of Denmark, become the King of England.
THE_OUTSIDE_BET = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Protector of the Holy Places" - Have Rome, Jerusalem, Mecca and Medina within your Realm.
THE_HOLY_PLACES = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Pentarch" - As an Orthodox Christian, hold Rome, Constantinople, Alexandria, Antioch and Jerusalem.
PENTARCH = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Legacy of Rome" - Restore the Roman Empire.
LEGACY_OF_ROME = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "S.P.Q.R." - As the Roman Empire, reclaim the old imperial borders.
SPQR = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "The One Who Brings Benefit" - As a Zoroastrian, become the prophesied Saoshyant.
BRINGS_BENEFIT = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Kingdom of David" - As a Jew, create the Kingdom of Israel.
KINGDOM_OF_DAVID = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "New Ways for Old Gods" - Reform one of the Pagan religions.
NEW_WAYS = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_new_ways }
	}
	
	happened = {
		has_character_flag = achievement_new_ways
	}
}

# "To Mecca!" - Go on a Hajj to Mecca.
TO_MECCA = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Pilgrim" - Go on a Christian Pilgrimage.
PILGRIM = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_pilgrim }
	}
	
	happened = {
		has_character_flag = achievement_pilgrim
	}
}

# "Mr. Doge-Elect" - As a Patrician, win an election and become Doge.
DOGE_ELECT = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_doge_elect }
	}
	
	happened = {
		has_character_flag = achievement_doge_elect
	}
}

# "Merchant Prince" - Amass more than 20,000 in wealth.
MERCHANT_PRINCE = {
	possible = {
		#is_ironman = yes
		NOT = { wealth = 20000 }
	}
	
	happened = {
		wealth = 20000
	}
}

# "Saint" - Amass more than 10,000 in piety.
SAINT = {
	possible = {
		#is_ironman = yes
		NOT = { piety = 10000 }
	}
	
	happened = {
		piety = 10000
	}
}

# "Celebrity" - Amass more than 15,000 in prestige.
CELEBRITY = {
	possible = {
		#is_ironman = yes
		NOT = { prestige = 15000 }
	}
	
	happened = {
		prestige = 15000
	}
}

# "Dream Home" - As a Patrician dynasty, build every upgrade for your Family Palace.
DREAM_HOME = {
	possible = {
		#is_ironman = yes
		NOT = { 
			family_palace = {
				has_building = fp_mansion_4
				has_building = fp_barracks_3
				has_building = fp_stable_3
				has_building = fp_bowyer_3
				has_building = fp_shipyard_3
				has_building = fp_warehouse_3
				has_building = fp_garden_3
				has_building = fp_cellar_3
				has_building = fp_shrine_3
				has_building = fp_vault_3
			}
		}
	}
	
	happened = {
		family_palace = {
			has_building = fp_mansion_4
			has_building = fp_barracks_3
			has_building = fp_stable_3
			has_building = fp_bowyer_3
			has_building = fp_shipyard_3
			has_building = fp_warehouse_3
			has_building = fp_garden_3
			has_building = fp_cellar_3
			has_building = fp_shrine_3
			has_building = fp_vault_3
		}
	}
}

# "Trade Empire" - Your Republic maintains trade posts in 80 provinces.
TRADE_EMPIRE = {
	possible = {
		#is_ironman = yes
		NOT = { republic_total_num_of_trade_posts = 80 }
	}
	
	happened = {
		republic_total_num_of_trade_posts = 80
	}
}

# "Khan of Khans" - Conquer continental Western Europe as the Mongol Empire, starting in "The Mongols" bookmark.
KHAN_OF_KHANS = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Viking Raider" - As a Viking, return home with 1,000 worth of loot.
VIKING_RAIDER = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_viking_raider }
	}
	
	happened = {
		has_character_flag = achievement_viking_raider
	}
}

# "And Stay Out!" - Throw the Aztec invaders back into the sea.
AND_STAY_OUT = {
	possible = {
		#is_ironman = yes
		NOT = { has_global_flag = aztecs_defeated }
	}
	
	happened = {
		has_global_flag = aztecs_defeated
	}
}

# "Persistent Survivor" - Play a game all the way through from 867 to 1453.
PERSISTENT_SURVIVOR = {
	possible = {
		#is_ironman = yes
		start_date = 7999.1.1
	}
	
	happened = {
		date = 9999.1.1
	}
}

# "Divine Blood" - Achieve a score of 100,000.
DIVINE_BLOOD = {
	possible = {
		#is_ironman = yes
		NOT = { score = 100000 }
	}
	
	happened = {
		score = 100000
	}
}

# "Dragon Blood" - Achieve a score of 50,000.
DRAGON_BLOOD = {
	possible = {
		#is_ironman = yes
		NOT = { score = 50000 }
	}
	
	happened = {
		score = 50000
	}
}

# "Royal Blood" - Achieve a score of 10,000.
ROYAL_BLOOD = {
	possible = {
		#is_ironman = yes
		NOT = { score = 10000 }
	}
	
	happened = {
		score = 10000
	}
}

# "The Black Bishop" - Fund an immoral bishop and get him elected Pope.
BLACK_BISHOP = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_black_bishop }
	}
	
	happened = {
		has_character_flag = achievement_black_bishop
	}
}

# "The Caliphate Strikes Back" - Starting in the "Stamford Bridge" bookmark as the Abbasid Caliph, become independent and hold an empire title.
CALIPHATE_STRIKES_BACK = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Decadent Warrior" - As a Muslim, crush a Decadence revolt.
DECADENT_WARRIOR = {
	possible = {
		always = no
	}
	
	happened = {
		always = no
	}
}

# "Keeping it in the Family" - Sire a child that has the Inbred trait.
IN_THE_FAMILY = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_in_the_family }
	}
	
	happened = {
		has_character_flag = achievement_in_the_family
	}
}

# "Turbulent Priest" - Assassinate a vassal bishop that likes the Pope better than you.
TURBULENT_PRIEST = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_turbulent_priest }
	}
	
	happened = {
		has_character_flag = achievement_turbulent_priest
	}
}

# "Dwarf Fortress" - Have seven courtiers with the Dwarf trait.
DWARF_FORTRESS = {
	possible = {
		#is_ironman = yes
	}
	
	happened = {
		any_courtier = {
			count = 7
			trait = dwarf
		}
	}
}

# "Holy Smoke" - Sacrifice another religion's head as a Norse or Aztec pagan.
HOLY_SMOKE = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_holy_smoke }
	}
	
	happened = {
		has_character_flag = achievement_holy_smoke
	}
}

# "Empressive" - Play as three consecutive generations of empresses.
EMPRESSIVE = {
	possible = {
		#is_ironman = yes
	}
	
	happened = {
		is_female = yes
		primary_title = { tier = EMPEROR }
		mother_even_if_dead = {
			primary_title = { tier = EMPEROR }
		}
		mother_even_if_dead = {
			mother_even_if_dead = {
				primary_title = { tier = EMPEROR }
			}
		}
	}
}

# "Black Widow" - As a woman, have three different husbands killed.
BLACK_WIDOW = {
	possible = {
		#is_ironman = yes
		NOT = { has_character_flag = achievement_black_widow }
	}
	
	happened = {
		has_character_flag = achievement_black_widow
	}
}
