# frames: Frame numbers for ribbon sprite layers.
# colors: Tint colors (R G B A) for ribbon sprite layers

ribbons = {

	offense_is_the_best_defense = {
		name = "CAREER_PROFILE_OFFENSE_IS_THE_BEST_DEFENSE"
		description = "CAREER_PROFILE_OFFENSE_IS_THE_BEST_DEFENSE_DESCRIPTION"
		quote_text = "CAREER_PROFILE_OFFENSE_IS_THE_BEST_DEFENSE_QUOTE"
		frames = { 1 2 2 2 }
		colors = {
			{ 192.0 66.0 66.0 1.0 } # red
			{ 48.0 51.0 60.0 1.0 }
			{ 238.0 189.0 96.0 1.0 }
			{ 211.0 181.0 128.0 1.0 }
		}
		debug = {
			recent_offensive_battles
			recent_defensive_battles
		}
		happened = {
			OR = {
				AND = {
					has_start_date < 1936.01.02
					date > 1938.01.01
				}
				AND = {
					has_start_date < 1939.8.15
					date > 1941.8.14
				}
			}

			career_profile_set_temp_variable = { total = recent_offensive_battles }
			career_profile_set_temp_variable = { defensive = recent_defensive_battles }
			add_to_temp_variable = { total = defensive }
			check_variable = { total > 99 }

			career_profile_check_ratio = {
				first = recent_offensive_battles
				second = recent_defensive_battles
				ratio = 2
				compare = greater_than_or_equals
			}
		}
	}

	going_through_not_around = {
		name = "CAREER_PROFILE_GOING_THROUGH_NOT_AROUND"
		description = "CAREER_PROFILE_GOING_THROUGH_NOT_AROUND_DESCRIPTION"
		quote_text = "CAREER_PROFILE_BACKUP_QUOTE_02"
		frames = { 1 1 1 1 }
		colors = {
			{ 192.0 66.0 66.0 1.0 }
			{ 48.0 51.0 60.0 1.0 }
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 211.0 181.0 128.0 1.0 }
		}
		debug = { forts_with_max_defense_defeated }
		happened = {
			career_profile_check_value = { forts_with_max_defense_defeated > 0 }
		}
	}

	you_shall_not_pass = {
		name = "CAREER_PROFILE_YOU_SHALL_NOT_PASS"
		description = "CAREER_PROFILE_YOU_SHALL_NOT_PASS_DESCRIPTION"
		quote_text = "CAREER_PROFILE_BACKUP_QUOTE_05"
		frames = { 1 1 1 2 }
		colors = {
			{ 63.0 96.0 57.0 1.0 } # green (defense)
			{ 48.0 51.0 60.0 1.0 }
			{ 255.0 227.0 143.0 1.0 }
			{ 211.0 181.0 128.0 0.0 }
		}
		debug = { defensive_bonus_achieved }
		happened = {
			career_profile_check_value = { defensive_bonus_achieved > 399 }
		}
	}

	thousand_splendid_suns = {
		name = "CAREER_PROFILE_THOUSAND_SPLENDID_SUNS"
		description = "CAREER_PROFILE_THOUSAND_SPLENDID_SUNS_DESCRIPTION"
		quote_text = "CAREER_PROFILE_THOUSAND_SPLENDID_SUNS_QUOTE"
		frames = { 1 2 2 1 }
		colors = {
			{ 48.0 51.0 60.0 1.0 }
			{ 192.0 66.0 66.0 1.0 }
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 211.0 181.0 128.0 1.0 }
		}
		debug = { recent_dropped_nukes }
		happened = {
			career_profile_check_value = { recent_dropped_nukes > 2 }
		}
	}

	the_guns_of_august = {
		name = "CAREER_PROFILE_THE_GUNS_OF_AUGUST"
		description = "CAREER_PROFILE_THE_GUNS_OF_AUGUST_DESCRIPTION"
		quote_text = "CAREER_PROFILE_THE_GUNS_OF_AUGUST_QUOTE"
		frames = { 1 2 2 2 }
		colors = {
			{ 192.0 66.0 66.0 1.0 }
			{ 48.0 51.0 60.0 1.0 }
			{ 238.0 189.0 96.0 0.0 } # yellow
			{ 211.0 181.0 128.0 0.0 }
		}
		debug = { railway_gun_supported_combats }
		happened = {
			career_profile_check_value = { railway_gun_supported_combats > 14 }
		}
	}

	learning_on_the_job = {
		name = "CAREER_PROFILE_LEARNING_ON_THE_JOB"
		description = "CAREER_PROFILE_LEARNING_ON_THE_JOB_DESCRIPTION"
		quote_text = "CAREER_PROFILE_LEARNING_ON_THE_JOB_QUOTE"
		frames = { 1 1 1 2 }
		colors = {
			{ 226.0 165.0 108.0 1.0 } # orange (knowledge)
			{ 1.0 1.0 1.0 1.0 } # white
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 211.0 181.0 128.0 1.0 } # gold
		}
		debug = { level_up_skills }
		happened = {
			career_profile_check_value = { level_up_skills > 3 }
		}
	}

	they_came_from_above = {
		name = "CAREER_PROFILE_THEY_CAME_FROM_ABOVE"
		description = "CAREER_PROFILE_THEY_CAME_FROM_ABOVE_DESCRIPTION"
		quote_text = "CAREER_PROFILE_THEY_CAME_FROM_ABOVE_QUOTE"
		frames = { 1 1 1 2 }
		colors = {
			{ 141.0 174.0 177.0 1.0 } # baby blue (air)
			{ 48.0 51.0 60.0 1.0 } # black
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 211.0 181.0 128.0 0.0 } # gold
		}
		debug = { paratrooper_divisions }
		happened = {
			career_profile_check_value = { paratrooper_divisions > 14 }
		}
	}

	coordinated_invasion = {
		name = "CAREER_PROFILE_COORDINATED_INVASION"
		description = "CAREER_PROFILE_COORDINATED_INVASION_DESCRIPTION"
		quote_text = "CAREER_PROFILE_BACKUP_QUOTE_12"
		frames = { 1 1 2 1 }
		colors = {
			{ 73.0 96.0 180.0 1.0 } # blue
			{ 48.0 51.0 60.0 1.0 } # navy blue
			{ 238.0 189.0 96.0 0.0 } # yellow
			{ 211.0 181.0 128.0 1.0 } # gold
		}
		debug = { naval_invasions }
		happened = {
			career_profile_check_value = { naval_invasions > 3 }
		}
	}

	not_so_fast = {
		name = "CAREER_PROFILE_NOT_SO_FAST"
		description = "CAREER_PROFILE_NOT_SO_FAST_DESCRIPTION"
		quote_text = "CAREER_PROFILE_NOT_SO_FAST_QUOTE"
		frames = { 1 1 2 1 }
		colors = {
			{ 48.0 51.0 60.0 1.0 } # black
			{ 192.0 66.0 66.0 1.0 } # red
			{ 238.0 189.0 96.0 0.0 } # yellow
			{ 1.0 1.0 1.0 1.0 } # silver
		}
		happened = {
			career_profile_has_player_flag = career_profile_overrun_infantry_flag #Set in code
		}
	}

	tanks_no_thanks = {
		name = "CAREER_PROFILE_TANKS_NO_THANKS"
		description = "CAREER_PROFILE_TANKS_NO_THANKS_DESCRIPTION"
		quote_text = "CAREER_PROFILE_BACKUP_QUOTE_03"
		frames = { 1 1 2 2 }
		colors = {
			{ 48.0 51.0 60.0 1.0 } # black
			{ 192.0 66.0 66.0 1.0 } # red
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 1.0 1.0 1.0 1.0 } # silver
		}
		happened = {
			career_profile_has_player_flag = career_profile_overrun_tanks_flag #Set in code
		}
	}

	we_shall_fight_in_the_shade = {
		name = "CAREER_PROFILE_WE_SHALL_FIGHT_IN_THE_SHADE"
		description = "CAREER_PROFILE_WE_SHALL_FIGHT_IN_THE_SHADE_DESCRIPTION"
		quote_text = "CAREER_PROFILE_BACKUP_QUOTE_14"
		frames = { 1 1 1 1 }
		colors = {
			{ 141.0 174.0 177.0 1.0 } # baby blue (air)
			{ 192.0 66.0 66.0 1.0 } # red
			{ 49.0 53.0 66.0 1.0 } # navy blue (any or materials)
			{ 1.0 1.0 1.0 1.0 } # silver
		}
		debug = { aircrafts_in_region }
		happened = {
			career_profile_check_value = { aircrafts_in_region > 5000 }
		}
	}

	aces_high = {
		name = "CAREER_PROFILE_ACES_HIGH"
		description = "CAREER_PROFILE_ACES_HIGH_DESCRIPTION"
		quote_text = "CAREER_PROFILE_ACES_HIGH_QUOTE"
		frames = { 1 1 2 2 }
		colors = {
			{ 141.0 174.0 177.0 1.0 } # baby blue (air)
			{ 49.0 53.0 66.0 1.0 } # navy blue (any or materials)
			{ 238.0 189.0 96.0 0.0 } # not visible
			{ 255.0 255.0 255.0 1.0 } # white
		}
		debug = { aces_in_airbase }
		happened = {
			career_profile_check_value = { aces_in_airbase > 19 }
		}
	}

	behind_enemy_lines = {
		name = "CAREER_PROFILE_BEHIND_ENEMY_LINES"
		description = "CAREER_PROFILE_BEHIND_ENEMY_LINES_DESCRIPTION"
		quote_text = "CAREER_PROFILE_BEHIND_ENEMY_LINES_QUOTE"
		frames = { 1 1 2 1 }
		colors = {
			{ 141.0 174.0 177.0 1.0 } # baby blue (air)
			{ 255.0 255.0 255.0 1.0 } # white
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 211.0 181.0 128.0 1.0 } # gold
		}
		happened = {
			career_profile_has_player_flag = career_profile_paradrop_on_capital_flag #Set in code
		}
	}

	rockets_reign = {
		name = "CAREER_PROFILE_ROCKETS_REIGN"
		description = "CAREER_PROFILE_ROCKETS_REIGN_DESCRIPTION"
		quote_text = "CAREER_PROFILE_ROCKETS_REIGN_QUOTE"
		frames = { 1 1 3 3 }
		colors = {
			{ 228.0 181.0 92.0 1.0 } # yellow
			{ 49.0 53.0 66.0 1.0 } # navy blue (any or materials)
			{ 49.0 53.0 66.0 0.0 } # not visible
			{ 255.0 255.0 255.0 1.0 } # white
		}
		debug = {
			rocket_sites_built_1936
			rocket_sites_built_1940
			rocket_sites_built_1945
		}
		happened = {
			career_profile_set_temp_variable = { sum = rocket_sites_built_1936 }
			career_profile_set_temp_variable = { to_add = rocket_sites_built_1940 }
			add_to_temp_variable = { sum = to_add }
			career_profile_set_temp_variable = { to_add = rocket_sites_built_1945 }
			add_to_temp_variable = { sum = to_add }

			check_variable = { sum > 10 }
		}
	}

	steel_at_high_speed = {
		name = "CAREER_PROFILE_STEEL_AT_HIGH_SPEED"
		description = "CAREER_PROFILE_STEEL_AT_HIGH_SPEED_DESCRIPTION"
		quote_text = "CAREER_PROFILE_STEEL_AT_HIGH_SPEED_QUOTE"
		frames = { 1 1 3 3 }
		colors = {
			{ 178.0 61.0 61.0 1.0 } # red
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 255.0 255.0 255.0 1.0 } # white
		}
		debug = { deployed_high_speed_tanks }
		happened = {
			career_profile_check_value = { deployed_high_speed_tanks > 2000 }
		}
	}

	orchestra_of_boom = {
		name = "CAREER_PROFILE_ORCHESTRA_OF_BOOM"
		description = "CAREER_PROFILE_ORCHESTRA_OF_BOOM_DESCRIPTION"
		quote_text = "CAREER_PROFILE_ORCHESTRA_OF_BOOM_QUOTE"
		frames = { 1 3 3 1 }
		colors = {
			{ 255.0 255.0 255.0 1.0 } # white
			{ 178.0 61.0 61.0 1.0 } # red
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 211.0 181.0 128.0 1.0 } # gold
		}
		happened = {
			career_profile_has_player_flag = career_profile_deployed_special_division_flag #Set in code
		}
	}

	mare_nostrum = {
		name = "CAREER_PROFILE_MARE_NOSTRUM"
		description = "CAREER_PROFILE_MARE_NOSTRUM_DESCRIPTION"
		quote_text = "CAREER_PROFILE_MARE_NOSTRUM_QUOTE"
		frames = { 1 1 2 1 }
		colors = {
			{ 73.0 96.0 180.0 1.0 } # blue
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 228.0 181.0 92.0 1.0 } # yellow
			{ 255.0 255.0 255.0 1.0 } # white
		}
		happened = {
			career_profile_has_player_flag = career_profile_controlls_mediterranean_flag #Set in code
		}
	}

	the_thousand_year_bond = {
		name = "CAREER_PROFILE_THE_THOUSAND_YEAR_BOND"
		description = "CAREER_PROFILE_THE_THOUSAND_YEAR_BOND_DESCRIPTION"
		quote_text = "CAREER_PROFILE_THE_THOUSAND_YEAR_BOND_QUOTE"
		frames = { 1 3 2 3 }
		colors = {
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 178.0 61.0 61.0 1.0 } # red
			{ 228.0 181.0 92.0 1.0 } # yellow
			{ 255.0 255.0 255.0 1.0 } # white
		}
		debug = { deployed_cavalry_battalions }
		happened = {
			career_profile_check_value = { deployed_cavalry_battalions > 99 }
		}
	}

	ruled_by_furniture = {
		name = "CAREER_PROFILE_RULED_BY_FURNITURE"
		description = "CAREER_PROFILE_RULED_BY_FURNITURE_DESCRIPTION"
		quote_text = "CAREER_PROFILE_RULED_BY_FURNITURE_QUOTE"
		frames = { 1 1 3 3 }
		colors = {
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 199.0 234.0 124.0 1.0 } # light green (weird stuff)
			{ 199.0 234.0 124.0 1.0 } # light green (weird stuff)
			{ 211.0 181.0 128.0 1.0 } # gold
		}
		happened = {
			OR = {
				has_country_leader = { character = POL_sejmik_regency }
				has_country_flag = ENG_abdication_crisis_government_fell
			}
		}
	}

	synthetic_security = {
		name = "CAREER_PROFILE_SYNTHETIC_SECURITY"
		description = "CAREER_PROFILE_SYNTHETIC_SECURITY_DESCRIPTION"
		quote_text = "CAREER_PROFILE_SYNTHETIC_SECURITY_QUOTE"
		frames = { 1 1 2 3 }
		colors = {
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 228.0 181.0 92.0 1.0 } # yellow
			{ 238.0 189.0 96.0 0.0 } # not visible
			{ 255.0 255.0 255.0 1.0 } # white
		}
		happened = {
			has_resources_in_country = {
				resource = "rubber"
				amount > 30
				buildings = yes
			}
		}
	}

	rubber_baron = {
		name = "CAREER_PROFILE_RUBBER_BARON"
		description = "CAREER_PROFILE_RUBBER_BARON_DESCRIPTION"
		quote_text = "CAREER_PROFILE_RUBBER_BARON_QUOTE"
		frames = { 1 2 3 3 }
		colors = {
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 48.0 51.0 60.0 0.0 } # not visible
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 255.0 255.0 255.0 1.0 } # white
		}
		happened = {
			has_idea = closed_economy
			has_resources_in_country = {
				resource = "rubber"
				amount > 999
				extracted = yes
			}
		}
	}

	the_truck_will_always_get_through = {
		name = "CAREER_PROFILE_THE_TRUCK_WILL_ALWAYS_GET_THROUGH"
		description = "CAREER_PROFILE_THE_TRUCK_WILL_ALWAYS_GET_THROUGH_DESCRIPTION"
		quote_text = "CAREER_PROFILE_THE_TRUCK_WILL_ALWAYS_GET_THROUGH_QUOTE"
		frames = { 1 1 1 1 }
		colors = {
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 238.0 189.0 96.0 1.0 } # yellow
			{ 255.0 255.0 255.0 1.0 } # white
		}
		happened = {
			get_supply_vehicles_temp = {
				var = trucks_in_stockpile
				type = truck
			}
			get_supply_vehicles_temp = {
				var = trucks_needed
				type = truck
				need = yes
			}
			check_variable = {
				trucks_needed > 5000
			}
			check_variable = {
				trucks_in_stockpile > 5000
			}
		}
	}
	
	scorched_earth = {
		name = "CAREER_PROFILE_SCORCHED_EARTH"
		description = "CAREER_PROFILE_SCORCHED_EARTH_DESCRIPTION"
		quote_text = "CAREER_PROFILE_SCORCHED_EARTH_QUOTE"
		frames = { 1 1 2 1 }
		colors = {
			{ 192.0 66.0 66.0 1.0 } # red
			{ 255.0 255.0 255.0 1.0 } # white
			{ 48.0 51.0 60.0 0.0 } # not visible
			{ 255.0 255.0 255.0 1.0 } # white
		}
		happened = {
			career_profile_has_player_flag = career_profile_scorched_railways_flag #Set in code
		}
	}
	
	blitz_this = {
		name = "CAREER_PROFILE_BLITZ_THIS"
		description = "CAREER_PROFILE_BLITZ_THIS_DESCRIPTION"
		quote_text = "CAREER_PROFILE_BLITZ_THIS_QUOTE"
		frames = { 1 1 3 1 }
		colors = {
			{ 63.0 96.0 57.0 1.0 } # green (defense)
			{ 255.0 255.0 255.0 1.0 } # white
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 255.0 255.0 255.0 1.0 } # white
		}
		happened = {
			career_profile_has_player_flag = career_profile_elastic_defense_flag #Set in code
		}
	}

	task_failed_successfully = {
		name = "CAREER_PROFILE_TASK_FAILED_SUCCESSFULLY"
		description = "CAREER_PROFILE_TASK_FAILED_SUCCESSFULLY_DESCRIPTION"
		quote_text = "CAREER_PROFILE_TASK_FAILED_SUCCESSFULLY_QUOTE"
		frames = { 1 2 3 1 }
		colors = {
			{ 48.0 51.0 60.0 1.0 } # black
			{ 211.0 181.0 128.0 1.0 } # gold
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 255.0 255.0 255.0 1.0 } # white		
		}
		happened = {
			career_profile_has_player_flag = that_is_sas_youngling
		}
	}

	punch_it = {
		name = "CAREER_PROFILE_PUNCH_IT"
		description = "CAREER_PROFILE_PUNCH_IT_DESCRIPTION"
		quote_text = "CAREER_PROFILE_PUNCH_IT_QUOTE"
		frames = { 1 1 1 3 }
		colors = {
			{ 178.0 61.0 61.0 1.0 } # red
			{ 63.0 96.0 57.0 1.0 } # green (defense)
			{ 178.0 61.0 61.0 1.0 } # red
			{ 205.0 127.0 50.0 1.0 } # bronze (I guess?)
		}
		happened = {
			career_profile_has_player_flag = punch_it_flag
		}
	}

	plan_l = {
		name = "CAREER_PROFILE_PLAN_L"
		description = "CAREER_PROFILE_PLAN_L_DESCRIPTION"
		quote_text = "CAREER_PROFILE_PLAN_L_QUOTE"
		frames = { 1 1 1 1 }
		colors = {
			{ 63.0 96.0 57.0 1.0 } # green (defense)
			{ 49.0 53.0 66.0 1.0 } # navy blue
			{ 49.0 53.0 66.0 0.0 } # not visible
			{ 211.0 181.0 128.0 1.0 } # gold		
		}
		debug = {
			plan_landlocked_naval_projects_finished
			plan_landlocked_light_hulls
			plan_landlocked_cruiser
			plan_landlocked_battleship
			plan_landlocked_carrier
		}
		happened = {
			check_variable = {
				plan_landlocked_naval_projects_finished > 1
			}
			check_variable = {
				plan_landlocked_light_hulls > 9
			}
			check_variable = {
				plan_landlocked_cruiser > 4
			}
			check_variable = {
				plan_landlocked_battleship > 1
			}
			check_variable = {
				plan_landlocked_carrier > 0
			}
		}
	}

	sweetener_hexadecagon = {
		name = "CAREER_PROFILE_SWEETENER_HEXADECAGON"
		description = "CAREER_PROFILE_SWEETENER_HEXADECAGON_DESCRIPTION"
		quote_text = "CAREER_PROFILE_SWEETENER_HEXADECAGON_QUOTE"
		frames = { 1 3 1 2 }
		colors = {
			{ 175.0 110.0 77.0 1.0 } # brown sugar 
			{ 184.0 130.0 241.0 1.0 } # purplish sweetener (???)
			{ 246.0 194.0 139.0 1.0 } # beige (confirmed by specialist)
			{ 255.0 255.0 255.0 1.0 } # white		
		}
		debug = {
			sp_techs_finished
		}
		happened = {
			check_variable = {
				sp_techs_finished > 15
			}
		}		
	}


}
