﻿clothes_situational = { # All clothes triggers are found in 00_clothing_triggers.txt

    usage = game
    selection_behavior = weighted_random
    priority = 5


    poverty_robes_western = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_sickness
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            # Boring clothes for characters with an active Vow of Poverty
            modifier = {
                add = 100
                portrait_poverty_robes_trigger = yes
            }
            modifier = {
                add = 1000
                has_court_position = cave_hermit_court_position
            }
            modifier = {
                add = -50
                portrait_byzantine_clothing_trigger = no
                portrait_northern_clothing_trigger = no
                portrait_western_clothing_trigger = no
            }
        }
    }

    poverty_robes_mena = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_sickness
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            # Boring clothes for characters with an active Vow of Poverty
            modifier = {
                add = 100
                portrait_poverty_robes_trigger = yes
            }
            modifier = {
                add = 1000
                has_court_position = cave_hermit_court_position
            }
            modifier = {
                add = -50
                portrait_mena_clothing_trigger = no
                portrait_indian_clothing_trigger = no
                portrait_steppe_clothing_trigger = no
                portrait_african_clothing_trigger = no
            }
        }
    }

    western_prison = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_prison
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        outfit_tags = { beggar_rags }
        weight = {
            base = 0
            modifier = {
                add = 500
                has_character_flag = peasant_outfit
                NOR = {
                    portrait_mena_clothing_trigger = yes
                    portrait_indian_clothing_trigger = yes
                    portrait_steppe_clothing_trigger = yes
                    portrait_african_clothing_trigger = yes
                }
            }
            modifier = {
                add = 500
                portrait_beggar_trigger = yes      
                NOR = {
                    portrait_mena_clothing_trigger = yes
                    portrait_indian_clothing_trigger = yes
                    portrait_steppe_clothing_trigger = yes
                    portrait_african_clothing_trigger = yes
                }
            }
            modifier = {
                add = 120
                portrait_prisoner_trigger = yes
                OR = {
                    portrait_byzantine_clothing_trigger = yes
                    portrait_northern_clothing_trigger = yes
                    portrait_western_clothing_trigger = yes
                }
            }
        }
    }

    western_stealth = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_stealth
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 110
                portrait_stealth_trigger = yes
                OR = {
                    portrait_byzantine_clothing_trigger = yes
                    portrait_northern_clothing_trigger = yes
                    portrait_western_clothing_trigger = yes
                }
            }
        }
    }

    mena_prison = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_prison
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 500
                has_character_flag = peasant_outfit
                OR = {
                    portrait_mena_clothing_trigger = yes
                    portrait_indian_clothing_trigger = yes
                    portrait_steppe_clothing_trigger = yes
                    portrait_african_clothing_trigger = yes
                }
            }
            modifier = {
                add = 500
                portrait_beggar_trigger = yes
                OR = {
                    portrait_mena_clothing_trigger = yes
                    portrait_indian_clothing_trigger = yes
                    portrait_steppe_clothing_trigger = yes
                    portrait_african_clothing_trigger = yes
                }
            }
            modifier = {
                add = 110
                portrait_prisoner_trigger = yes
                OR = {
                    portrait_mena_clothing_trigger = yes
                    portrait_indian_clothing_trigger = yes
                    portrait_steppe_clothing_trigger = yes
                    portrait_african_clothing_trigger = yes
                }
            }
        }
    }

    mena_stealth = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_stealth
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_stealth }
        weight = {
            base = 0
            modifier = {
                add = 110
                portrait_stealth_trigger = yes
                OR = {
                    portrait_mena_clothing_trigger = yes
                    portrait_indian_clothing_trigger = yes
                    portrait_steppe_clothing_trigger = yes
                    portrait_african_clothing_trigger = yes
                }
            }
        }
    }

    ccp4_sami_travel = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp4_sami_travel_clothes
                range = { 0 1 }
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 110
                has_cp4_dlc_trigger = yes
                OR = {
                    portrait_ccp4_sami_travel_coat_trigger = yes
                }
            }
            modifier = { # They travel all. the. time.
               factor = 0 
               government_has_flag = government_is_landless_adventurer
               NOR = { # But explorer camp purpose has them all the time
                    has_realm_law = camp_purpose_explorers
                    liege ?= {  has_realm_law = camp_purpose_explorers }
               }
            }
			# Nomads _do_ use these, because they're appropriate and cool
        }
    }

    ep1_jester = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep1_jester_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = -100
            modifier = {
                add = 1000
                OR = {
                has_court_position = court_jester_court_position
					has_character_flag = jester_outfit
				}
            }
            modifier = {
                factor = 0
                OR = {
                    is_adult = no
                    should_be_naked_trigger = yes
                }
            }           
        }
    }

	# # Hajj / Ihram
    #AGOT Disabled
    # ep2_religious_muslim_hajj_clothes = {
    #     dna_modifiers = {
    #         accessory = {
    #             mode = add
    #             gene = clothes
    #             template = ep2_religious_muslim_hajj_clothes
    #             range = { 0 1 }
    #         }
    #     }
    #     outfit_tags = { hajj_clothes }
    #     weight = {
    #         base = 0
    #         modifier = {
    #             add = 150
    #             portrait_ep2_hajj_clothes_trigger = yes
    #         }
    #     }
    # }

    #AGOT Disabled
    # ep2_religious_muslim_ihram_clothes = {
    #     dna_modifiers = {
    #         accessory = {
    #             mode = add
    #             gene = clothes
    #             template = ep2_religious_muslim_ihram_clothes
    #             range = { 0 1 }
    #         }
    #         accessory = {
    #             mode = add
    #             gene = headgear
    #             template = no_headgear
    #             value = 0
    #         }
    #        accessory = {
    #            mode = add
    #            gene = secondary_headgears
    #            template = no_headgear
    #            value = 0
    #        }
    #     }
    #     outfit_tags = { hajj_clothes }
    #     weight = {
    #         base = 0
    #         modifier = {
    #             add = 200
    #             portrait_ep2_ihram_clothes_trigger = yes
    #         }
    #     }
    # }

    #AGOT Disabled
	# # Pope/Cardinal Larper event
    # pope_larper = {
    #     dna_modifiers = {
    #         accessory = {
    #             mode = add
    #             gene = clothes
    #             template = religious_catholic_head_clothes
    #             range = { 0 1 }
    #         }
    #         accessory = {
    #             mode = add
    #             gene = headgear
    #             template = catholic_head
    #             range = { 0 1 }
    #         }
    #        accessory = {
    #            mode = add
    #            gene = secondary_headgears
    #            template = no_headgear
    #            value = 0
    #        }
    #     }
    #     weight = {
    #         base = 0
    #         modifier = {
    #             add = 200
    #             has_character_flag = pope_larper_flag
    #         }
    #     }
    # }

    #AGOT Disabled
    # cardinal_larper = {
    #     dna_modifiers = {
    #         accessory = {
    #             mode = add
    #             gene = clothes
    #             template = religious_catholic_high_clothes
    #             range = { 0 1 }
    #         }
    #         accessory = {
    #             mode = add
    #             gene = headgear
    #             template = catholic_high
    #             range = { 0 1 }
    #         }
    #        accessory = {
    #            mode = add
    #            gene = secondary_headgears
    #            template = no_headgear
    #            value = 0
    #        }
    #     }
    #     weight = {
    #         base = 0
    #         modifier = {
    #             add = 200
    #             has_character_flag = cardinal_larper_flag
    #         }
    #     }
    # }

    # Court Physician
    court_physician = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_physician_01
                range = { 0 1 }
            }
            accessory = {
                mode = add
                gene = headgear
                template = western_common
                value = 0
            }
            accessory = {
                mode = add
                gene = secondary_headgears
                template = no_headgear
                value = 0
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_court_position = court_physician_court_position
                has_ce1_dlc_trigger = yes
                portrait_western_clothing_trigger = yes
            }
            modifier = {
                add = 20
                has_ce1_dlc_trigger = yes
                portrait_western_clothing_trigger = yes
				government_has_flag = government_is_landless_adventurer
				OR = {
					has_realm_law = camp_purpose_scholars
					liege ?= {  has_realm_law = camp_purpose_scholars }
				}
            }
            modifier = {
                factor = 0
                OR = {
                    is_adult = no
                    should_be_naked_trigger = yes
                }
            } 
            modifier = {
                factor = 0
                portrait_wear_armor_trigger = yes
            }
        } 
    }

    # Court Musician
    court_musician = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_low_nobility_clothes
                accessory = m_clothes_sec_fp4_western_era3_nob_01_lo
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_court_position = court_musician_court_position
                has_ce1_dlc_trigger = yes
                portrait_western_clothing_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                factor = 0
                OR = {
                    is_adult = no
                    should_be_naked_trigger = yes
                }
            } 
        } 
    }

    # Charioteer - Blue
    charioteer_blue = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_charioteer_clothes_blue
                range = { 0 1 }
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_ep3_dlc_trigger = yes
                has_trait = charioteer_blue
                is_ruler = no
            }
            modifier = {
                factor = 0
                OR = {
                    is_adult = no
                    should_be_naked_trigger = yes
                }
            } 
        } 
    }

    # Charioteer - Green
    charioteer_green = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_charioteer_clothes_green
                range = { 0 1 }
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_ep3_dlc_trigger = yes
                has_trait = charioteer_green
            }
            modifier = {
                factor = 0
                OR = {
                    is_adult = no
                    is_ruler = yes 
                    should_be_naked_trigger = yes
                }
            } 
        } 
    }

    # Charioteer - White
    charioteer_white = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_charioteer_clothes_white
                range = { 0 1 }
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_ep3_dlc_trigger = yes
                has_trait = charioteer_white
            }
            modifier = {
                factor = 0
                OR = {
                    is_adult = no
                    is_ruler = yes
                    should_be_naked_trigger = yes
                }
            } 
        } 
    }

    # Charioteer - Red
    charioteer_red = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_charioteer_clothes_red
                range = { 0 1 }
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_ep3_dlc_trigger = yes
                has_trait = charioteer_red
            }
            modifier = {
                factor = 0
                OR = {
                    is_adult = no
                    is_ruler = yes
                    should_be_naked_trigger = yes
                }
            } 
        } 
    }

    #AGOT Added
    agot_clothing_kingsguard_iron_throne = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = agot_all_armors
                accessory = male_clothes_kingsguard_war_01
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_special_kingsguard_war_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = kingsguard_cloak
                value = 1
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_trait = kingsguard
                has_ep1_dlc_trigger = yes
                NOT = { has_character_flag = use_stealth_clothes }

            }
            ##Submod core added
            modifier = {
                factor = 0
                is_aotk_loaded_trigger = yes
				has_game_rule = show_armor_enabled
            }
        }
    }
    
     #AGOT Added
    agot_clothing_kingsguard_iron_throne_no_dlc = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = agot_all_armors
                accessory = male_clothes_kingsguard_war_01
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_special_kingsguard_war_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
                value = 1
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                has_trait = kingsguard
                has_ep1_dlc_trigger = no
                NOT = { has_character_flag = use_stealth_clothes }
            }
        }
    }

    # Night's Watch
    agot_clothing_nights_watch = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_war_nobility_clothes
                range = { 0 1 }
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                OR = {
                    has_trait = nightswatch
                    has_trait = nightswatch_temp
                    has_trait = nightswatch_historical
                }
                NOR = { 
                    has_trait = maester 
                    has_trait = maester_historical
                }
            }
        }
    }

    # Silent Sister
    agot_clothing_silent_sister = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = silentsister_clothes
                value = 1
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 200
                has_trait = silent_sister
            }
        }
    }

    # Maester
    agot_clothing_southern_maester = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = maester_clothes
                accessory = male_clothes_southern_maester_01
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_maester_skirt_01
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 200
                is_female = no
                    OR = {
                        has_trait = maester
                    has_trait = maester_historical
                    }
                    OR = {
                        portrait_ironborn_clothing_trigger = no
                        portrait_the_north_clothing_trigger = no
                        portrait_valeman_clothing_trigger = no
                    }
                }
        }
    }
    
    agot_clothing_northern_maester = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = maester_clothes
                accessory = male_clothes_northern_maester_01
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_northernmaester_skirt_01
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 200
                is_female = no
                    OR = {
                        has_trait = maester
                    has_trait = maester_historical
                    }
                    OR = {
                        portrait_ironborn_clothing_trigger = yes
                        portrait_the_north_clothing_trigger = yes
                        portrait_valeman_clothing_trigger = yes
                    }
                }
        }
    }
    
    agot_clothing_maester_kw = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = maester_clothes
                accessory = male_clothes_maester_kw_01
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_maester_kw_skirt_01
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 210
                is_female = no
                    OR = {
                        has_trait = maester
                    has_trait = maester_historical
                    }
                    OR = {
                        has_trait = nightswatch
                        has_trait = nightswatch_temp
                        has_trait = nightswatch_historical
                    }
                }
        }
    }
    
    agot_clothing_grandmaester = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = maester_clothes
                accessory = male_clothes_grandmaester_01
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_grandmaester_skirt_01
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 220
                is_female = no
                has_inactive_trait = grandmaester
                OR = {
                AND = {
                        exists = title:h_the_iron_throne.holder
                        employer ?= title:h_the_iron_throne.holder
                    has_court_position = maester_court_position
                }
					is_alive = no
				}
            }
        }
    }

    agot_clothing_maelys_blackfyre_let_jimmy_breathe = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = agot_clothes_special
                accessory = male_clothes_secular_valyrian_war_05
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_secular_valyrian_war_05
            }
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
                range = { 0 1 }
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 2000
                exists = this
                exists = character:Blackfyre_14
                this = character:Blackfyre_14
                NOT = { has_trait = nightswatch }
            }
        }
    }
    
     agot_clothing_maelys_blackfyre_let_jimmy_breathe_nw = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = agot_clothes_special
                accessory = male_clothes_secular_valyrian_war_05_black
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_secular_valyrian_war_05
            }
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
                range = { 0 1 }
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 2000
                exists = this
                exists = character:Blackfyre_14
                this = character:Blackfyre_14
                has_trait = nightswatch
            }
        }
    }
    
    agot_knight_of_the_laughing_tree = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = agot_all_armors
                accessory = male_clothes_north_war_03
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_secular_north_war_03
            }
            accessory = {
                mode = add
                gene = headgear
                template = agot_qolab
                accessory = crown_of_winter_roses
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 2000
                exists = this
                has_character_flag = knight_of_the_laughing_tree
            }
        }
    }
    
    dragonrider_outfit = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dragon_rider_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = legwear
                template = dragon_rider_legwear
                range = { 0 1 } # For the randomness to work correctly
            }
        }

        weight = {
            base = 0

            modifier = {
                add = 1000
                has_character_flag = currently_riding_dragon
                portrait_wear_armor_trigger = no
            }
        }
    }
    
	Targaryen_95_house_armor = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = hairstyles
                template = all_hairstyles
                accessory = male_hair_fp1_02
            }
            accessory = {
                mode = add
                gene = secondary_headgears
                template = no_headgear
                value = 0
            }
            accessory = {
                mode = add
                gene = beards
                template = no_beard
                value = 0
            }
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
                value = 0
            }
            accessory = {
                mode = add
                gene = clothes
                template = agot_all_armors
                accessory = male_clothes_north_war_ned_coa_01
            }
            accessory = {
                mode = add
                gene = legwear
                template = agot_all_legwear
                accessory = male_legwear_secular_north_stark_war_03
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 102
                age > 18
                house = house:house_Bittersteel
                is_character_targaryen_95 = yes
                is_male = yes
            }
        }
    }
    
    ##
    ##AGOT Submod Core added
	##
	kingsguard_armor_01 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armor_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1000
				is_aotk_loaded_trigger = yes
				has_trait = kingsguard
				has_game_rule = show_armor_enabled
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
					portrait_valyrian_clothing_targ_trigger = no
					primary_title = { 
						has_variable = kingsguard 
						OR = {
							AND = {
								has_variable = kingsguard_choice 
								var:kingsguard_choice = 0
							}
							NOT = { has_variable = kingsguard_choice }
						}
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					#is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_01_targ = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armorTarg_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1002
				is_aotk_loaded_trigger = yes
				has_game_rule = show_armor_enabled
				has_trait = kingsguard
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
					portrait_valyrian_clothing_targ_trigger = yes
					primary_title = { 
						has_variable = kingsguard 
						OR = {
							AND = {
								has_variable = kingsguard_choice 
								var:kingsguard_choice = 0
							}
							NOT = { has_variable = kingsguard_choice }
						}
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_02 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armor_02
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1001
				is_aotk_loaded_trigger = yes
				has_trait = kingsguard
				has_game_rule = show_armor_enabled
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
					portrait_valyrian_clothing_targ_trigger = no
					primary_title = { 
						has_variable = kingsguard 
						AND = {
							has_variable = kingsguard_choice 
							var:kingsguard_choice = 1
						}
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					#is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_02_targ = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armorTarg_02
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1003
				is_aotk_loaded_trigger = yes
				has_game_rule = show_armor_enabled
				has_trait = kingsguard
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
						portrait_valyrian_clothing_targ_trigger = yes
						primary_title = { 
							has_variable = kingsguard 
							AND = {
								has_variable = kingsguard_choice 
								var:kingsguard_choice = 1
							}
						}
					}
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_03 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armor_03
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1001
				is_aotk_loaded_trigger = yes
				has_trait = kingsguard
				has_game_rule = show_armor_enabled
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
					portrait_valyrian_clothing_targ_trigger = no
					primary_title = { 
						has_variable = kingsguard 
						AND = {
							has_variable = kingsguard_choice 
							var:kingsguard_choice = 2
						}
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					#is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_03_targ = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armorTarg_03
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				is_aotk_loaded_trigger = yes
				add = 1003
				has_game_rule = show_armor_enabled
				has_trait = kingsguard
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
						portrait_valyrian_clothing_targ_trigger = yes
						primary_title = { 
							has_variable = kingsguard 
							AND = {
								has_variable = kingsguard_choice 
								var:kingsguard_choice = 2
							}
						}
					}
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_04 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armor_04
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1001
				is_aotk_loaded_trigger = yes
				has_trait = kingsguard
				has_game_rule = show_armor_enabled
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
					portrait_valyrian_clothing_targ_trigger = no
					primary_title = { 
						has_variable = kingsguard 
						AND = {
							has_variable = kingsguard_choice 
							var:kingsguard_choice = 3
						}
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					#is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_04_targ = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armorTarg_04
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1003
				is_aotk_loaded_trigger = yes
				has_game_rule = show_armor_enabled
				has_trait = kingsguard
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
						portrait_valyrian_clothing_targ_trigger = yes
						primary_title = { 
							has_variable = kingsguard 
							AND = {
								has_variable = kingsguard_choice 
								var:kingsguard_choice = 3
							}
						}
					}
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_05 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armor_05
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1001
				is_aotk_loaded_trigger = yes
				has_trait = kingsguard
				has_game_rule = show_armor_enabled
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
					portrait_valyrian_clothing_targ_trigger = no
					primary_title = { 
						has_variable = kingsguard 
						AND = {
							has_variable = kingsguard_choice 
							var:kingsguard_choice = 4
						}
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					#is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_05_targ = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armorTarg_05
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1003
				is_aotk_loaded_trigger = yes
				has_game_rule = show_armor_enabled
				has_trait = kingsguard
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
						portrait_valyrian_clothing_targ_trigger = yes
						primary_title = { 
							has_variable = kingsguard 
							AND = {
								has_variable = kingsguard_choice 
								var:kingsguard_choice = 4
							}
						}
					}
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
    ##Blackfyre
    kingsguard_armor_06 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armor_06
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1001
				is_aotk_loaded_trigger = yes
				has_trait = kingsguard
				has_game_rule = show_armor_enabled
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
					portrait_valyrian_clothing_targ_trigger = no
					primary_title = { 
						has_variable = kingsguard 
						AND = {
							has_variable = kingsguard_choice 
							var:kingsguard_choice = 5
						}
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					#is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	kingsguard_armor_06_targ = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = kingsguard_armor_clothes
				accessory = male_clothes_secular_western_KG_armorTarg_06
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1003
				is_aotk_loaded_trigger = yes
				has_game_rule = show_armor_enabled
				has_trait = kingsguard
				exists = title:h_the_iron_throne.holder
				title:h_the_iron_throne.holder = {
						portrait_valyrian_clothing_targ_trigger = yes
						primary_title = { 
							has_variable = kingsguard 
							AND = {
								has_variable = kingsguard_choice 
								var:kingsguard_choice = 5
							}
						}
					}
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_normal = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = golden_company_armor
                range = { 0.5 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 750
                tgc_standard_equipment_trigger = yes
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_captain = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = golden_company_armor
                range = { 0.18 0.49 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 2000
                tgc_standard_equipment_trigger = yes
                tgc_captain_equipment_trigger = yes
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_normal_black = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = golden_company_armor_black
                accessory = male_clothes_ornateVest_black_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 750
                tgc_standard_equipment_trigger = yes
                tgc_black_balaq_trigger = yes

			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_captain_black = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = golden_company_armor_black
                accessory = male_clothes_captainsArmorMetal_black_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 2000
                tgc_standard_equipment_trigger = yes
                tgc_captain_equipment_trigger = yes
                tgc_black_balaq_trigger = yes

			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_normal_blackfyre = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = golden_company_armor_blackfyre
                range = { 0.41 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 750
                OR = {
					tgc_blackfyre_or_targ_equipment_trigger = yes
					tgc_blackfyre_house_equipment_trigger = yes
                }			
            }
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_captain_blackfyre = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = golden_company_armor_blackfyre
                range = { 0.0 0.39 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 2000
                tgc_captain_equipment_trigger = yes
                OR = {
					tgc_blackfyre_or_targ_equipment_trigger = yes
					tgc_blackfyre_house_equipment_trigger = yes
                }	
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    
	goldenCompany_chains = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = golden_company_armor
                accessory = male_clothes_platedVest_chains_01
			}
		}	
		weight = {
			base = -100
			modifier = {
				add = 3003
                tgc_standard_equipment_trigger = yes
				tgc_chains_trigger = yes
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
}