﻿# Valid culture inputs

# CULTURE_INPUT = dde_abbasid
# CULTURE_INPUT = dde_hre
# CULTURE_INPUT = byzantine
# CULTURE_INPUT = indian
# CULTURE_INPUT = mena
# CULTURE_INPUT = northern
# CULTURE_INPUT = western
# CULTURE_INPUT = western_era1
# CULTURE_INPUT = western_era2
# CULTURE_INPUT = western_era3
# CULTURE_INPUT = western_era4
# CULTURE_INPUT = steppe

# CULTURE_INPUT = fp1_norse
# CULTURE_INPUT = fp2_iberian_christian
# CULTURE_INPUT = fp2_iberian_muslim

# CULTURE_INPUT = afr_berber


clothes_effect = { # Gene modifers to apply for characters wearing or not wearing clothes
    usage = game
    selection_behavior = max
    fallback = unclothed_body
    priority = 1

    clothed_body = {
        dna_modifiers = {
            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
                NOR = {
                    should_be_fully_naked_portrait_trigger = yes
                    should_be_topless_portrait_trigger = yes
                }
            }  
        }    
    }

    unclothed_body = {
        dna_modifiers = {          
        }
        weight = {
            base = 10
        }
    }

    unclothed_body_event = {
        dna_modifiers = {          
        }
        outfit_tags = { no_clothes }        
        require_outfit_tags = yes
        weight = {
            base = 1000
        }
    }
}

clothes = { # Special group for the ruler designer only. The game expects this to be named "clothes"

    usage = game
    selection_behavior = weighted_random
    priority = 20

    ruler_designer_clothes = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_bedchamber
                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 = 100
                portrait_ruler_designer_trigger = yes
				NOT = {
					has_game_rule = epe_ruler_designer_nude
				}				
            }
        }
    }

    ruler_designer_clothes_nude = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = no_clothes
                range = { 0 1 }
            }   
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_ruler_designer_trigger = yes
				NOT = {
					has_game_rule = default_epe_ruler_designer_cloth
				}				
            }
        }
    }

    
}

clothes_base = { # The lowest priority group of clothes with triggers based on rank and culture. All clothes triggers are found in 00_clothing_triggers.txt

    usage = game
    selection_behavior = weighted_random
    fallback = default_clothes
    priority = 1


    default_clothes = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_bedchamber
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        outfit_tags = { no_clothes }
        weight = {
            base = -100
        }
    }

## DDE HRE ##

    dde_hre_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = dde_hre # CULTURE_INPUT gets added into the trigger referenced in 00_clothing_triggers.txt so it's important the input is a correct match to an existing culture trigger
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era2_trigger = yes } 
            }
        }
    }
    
    dde_hre_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_hre } # common/scripted_modifiers/00_portrait_modifiers.txt
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = {  
                    CULTURE_INPUT = dde_hre # CULTURE_INPUT gets added into the trigger referenced in 00_clothing_triggers.txt so it's important the input is a correct match to an existing culture trigger
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era2_trigger = yes } 
            }
        }
    }

    dde_hre_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_hre } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_hre
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era2_trigger = yes } 
            }
        }
    }
    

## Western ##

    western_commoners = {

        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        outfit_tags = { western_commoner_outfit }
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
            }  
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }     
        }
    }

    ep2_western_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_english
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}	
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_western_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }     
            }
        }
    }

    fp4_western_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }
 
    western_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_western_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = french
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_english
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
		        has_ep2_dlc_trigger = yes 
		        portrait_era1_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_english
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
		        has_ep2_dlc_trigger = yes 
		        portrait_era2_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}	
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    fp4_western_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era2_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = western
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }					
				}	
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes 
                is_female = yes # Currently this sub group only contains one female outfit
            }
            modifier = {
                add = 20
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}	
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes    
                is_female = yes # Currently this sub group only contains one female outfit 
            }
        }
    }

    ep2_western_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}					
		        has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                } 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}					
                has_ep2_dlc_trigger = yes
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }      
            }
        }
    }

    fp4_western_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = western
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }

    western_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_western_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_english
                    }
				}					
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				
		        has_ep2_dlc_trigger = yes 
		        portrait_era1_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_english
                    }
				}					
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = french
                    }
				}				
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }					
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
		        has_ep2_dlc_trigger = yes 
		        portrait_era2_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }			
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    fp4_western_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era2_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = western
                }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = french
                    }
				}	
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }				
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes 
                is_female = yes # Currently this sub group only contains one female outfit
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}	
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }				
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes    
                is_female = yes # Currently this sub group only contains one female outfit
            }
        }
    }

    ep2_western_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }
				}	
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}					
		        has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                } 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }				
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}					
                has_ep2_dlc_trigger = yes  
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }    
            }
        }
    }

    fp4_western_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = western
                }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }				
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                    }				
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }


## Byzantine ##

    byzantine_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0 0.18 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_byzantine_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                accessory = m_clothes_sec_ep3_byzantine_era1_com_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_byzantine_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                accessory = m_clothes_sec_ep3_byzantine_era1_com_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }   
            }
        }
    }

    byzantine_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0 0.03 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = byzantine }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_byzantine_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.06 0.12 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}					
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_byzantine_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.15 0.26 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }

    byzantine_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0 0.05 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = byzantine }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_byzantine_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.07 0.14 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes  
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_byzantine_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.17 0.30 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }

    ep3_byzantine_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_royalty_clothes
                accessory = m_clothes_sec_ep3_byzantine_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_roy_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}					
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_byzantine_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_imperial_clothes
                accessory = m_clothes_sec_ep3_byzantine_era1_imp_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = byzantine
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = byzantine
                    }                 
                }
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}				
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}				
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}				
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_byzantine_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_imperial_clothes
                accessory = m_clothes_sec_ep3_byzantine_era2_imp_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = byzantine
                    }                
                }
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                    }
				}	
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                    }
				}					
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                    }
				}				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

## INDIAN ##

    indian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
		weight = {
			base = 0
			modifier = {
				add = 20
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = indian
				}
			}
			modifier = {
				add = 20
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = no
			}
		}
    }

	indian_low_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = indian_low_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			court_fashion_level_4_modifier = { INPUT_PARAMETER = indian }
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = indian
				}
			}
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = no
			}
		}
	}

	indian_high_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = indian_high_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			court_fashion_level_5_modifier = { INPUT_PARAMETER = indian }
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = indian
				}
			}
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = no
			}
		}
	}

    ## DDE ABBASID ##

    dde_abbasid_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
        }
    }

    dde_abbasid_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_abbasid }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
				has_dde_abbasid_flavor_dlc_trigger = yes
                is_female = yes					
            }
        }
    }

    dde_abbasid_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
				has_dde_abbasid_flavor_dlc_trigger = yes		
                is_female = yes			
            }
        }
    }



## MENA ##

    mena_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = mena
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                    }
				}
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = fp3_iranian
                    }
				}
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_baranis
                    }
				}
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_butr
                    }
				}
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
            }
        }
    }

    mena_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = mena
                }
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                    }
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = fp3_iranian
                    }
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_baranis
                    }
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_butr
                    }
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
            }
        }
    }

    mena_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = mena } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp3_iranian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_baranis
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_butr
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp3_iranian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_baranis
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_butr
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                is_female = yes				
            }
        }
    }

    mena_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = mena } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp3_iranian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_baranis
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_butr
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp3_iranian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_baranis
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_butr
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                is_female = yes				
            }
        }
    }


    

## Steppe ##

    steppe_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = steppe
                }				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
				
            }
			modifier = { # For Chinese, Japanese and Korean characters for players without AUH
				add = 20
				OR = {
					portrait_commoner_clothing_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_commoner_clothing_trigger = {
						CULTURE_INPUT = japanese
					}
					portrait_commoner_clothing_trigger = {
						CULTURE_INPUT = ainu
					}
				}
				has_tgp_dlc_trigger = no
			}			
			
        }
    }

    steppe_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }					
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}	
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

				
				
            }
			modifier = { # For Ainu characters for players without AUH
				add = 20
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = ainu
					}
					portrait_high_nobles_clothing_trigger = {
						CULTURE_INPUT = ainu
					}
				}
				has_tgp_dlc_trigger = no
			}			
			
        }
    }

    steppe_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }					
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}	
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

				
				
            }
        }
    }

####################################################################################################
##################
###Steppe mpo_mongol DLC
##################
####################################################################################################

    mpo_mongol_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_clothes
                accessory = m_clothes_sec_mpo_mongol_com_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 80
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = steppe
                }
				has_mpo_dlc_trigger = yes
				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}	
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

				
				
            }
        }
    }

    mpo_mongol_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_clothes
                accessory = m_clothes_sec_mpo_mongol_nob_01_lo
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }
				has_mpo_dlc_trigger = yes
				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

				
				
            }
        }
    }

    mpo_mongol_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_clothes
                accessory = m_clothes_sec_mpo_mongol_nob_01_hi
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }
				has_mpo_dlc_trigger = yes
				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}	
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

			
				
            }
        }
    }
	
	
    mpo_mongol_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_clothes
                accessory = m_clothes_sec_mpo_mongol_roy_01
            }
        }       
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }
				has_mpo_dlc_trigger = yes
				
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}	
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
				
            }
        }
    }

    mpo_mongol_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_clothes
                accessory = m_clothes_sec_mpo_mongol_imp_01
            }
        }       
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }
				has_mpo_dlc_trigger = yes
				
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
				
            }
        }
    }	

####################################################################################################
##################
###Norse
##################
####################################################################################################

    norse_commoners = {

        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        } 
        outfit_tags = { western_commoner_outfit }          
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_norse
                }
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }                    
        }
    }

    fp1_norse_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
 				has_fp1_dlc_trigger = yes
                has_ep2_dlc_trigger = yes   
                OR = {
					portrait_era1_trigger = yes				
					portrait_era2_trigger = yes				
                }     
            }
        }
    }

    ep2_norse_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes
                NOT = {
                    has_fp1_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_norse_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_norse_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
				is_lowborn = yes				
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }			
        }
    }
	
    fp4_norse_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
				is_lowborn = yes				
                has_ce1_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep2_norse_era3_commoners_not_lowborn = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
				is_lowborn = no
				
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }			
        }
    }	

    norse_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_norse
                }
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }      
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
                is_female = yes      
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    fp1_norse_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
				has_fp1_dlc_trigger = yes
                OR = {
					portrait_era1_trigger = yes									
					portrait_era2_trigger_norse = yes
                }
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes
				has_fp1_dlc_trigger = yes
                OR = {
					portrait_era1_trigger = yes									
					portrait_era2_trigger_norse = yes					
                }     
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes 
				has_fp1_dlc_trigger = yes
                OR = {
					portrait_era1_trigger = yes									
					portrait_era2_trigger_norse = yes					
                } 
                is_female = yes    
            }
        }
    }

    ep2_norse_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes
                NOT = {
                    has_fp1_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_fp1_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_fp1_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes 
                is_female = yes    
            }
        }
    }

    ep2_norse_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
				portrait_era2_trigger_norse = yes					
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse = yes					
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse = yes					
                is_female = yes    
            }
        }
    }

    ep2_norse_era2_western_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
				portrait_era2_trigger_norse_westernize = yes					
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse_westernize = yes					
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse_westernize = yes					
                is_female = yes    
            }
        }
    }	

    ep2_norse_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes      
            }
        }
    }

    norse_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 0.16 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_norse
                }
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                is_female = yes
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    fp1_norse_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
 				has_fp1_dlc_trigger = yes
                OR = {
					portrait_era1_trigger = yes									
					portrait_era2_trigger_norse = yes					
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes 
 				has_fp1_dlc_trigger = yes
				
                OR = {
					portrait_era1_trigger = yes									
					portrait_era2_trigger_norse = yes					
                }    
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes 
 				has_fp1_dlc_trigger = yes	
                OR = {
					portrait_era1_trigger = yes									
					portrait_era2_trigger_norse = yes					
                } 
                is_female = yes   
            }
        }
    }

    ep2_norse_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 0.16 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_fp1_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_fp1_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_fp1_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes  
                is_female = yes   
            }
        }
    }

    ep2_norse_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 0.16 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
				portrait_era2_trigger_norse = yes					
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse = yes	 					
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse = yes					
                is_female = yes    
            }
        }
    }
	
    ep2_norse_era2_western_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
				portrait_era2_trigger_norse_westernize = yes					
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse_westernize = yes					
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes   
				portrait_era2_trigger_norse_westernize = yes				
                is_female = yes    
            }
        }
    }		

    ep2_norse_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes  
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                } 
                has_ep2_dlc_trigger = yes  
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes    
            }
        }
    }
	
    ep2_norse_era2_dde_hre_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 	
	            has_dlc = "Garments of the Holy Roman Empire"					
				portrait_era2_trigger_norse_westernize = yes				
			
            }

        }
    }
    
    ep2_norse_era2_dde_hre_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_norse } # common/scripted_modifiers/00_portrait_modifiers.txt
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 	
	            has_dlc = "Garments of the Holy Roman Empire"					
				portrait_era2_trigger_norse_westernize = yes				
			
            }

        }
    }

    ep2_norse_era2_dde_hre_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_norse } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norse
                }
                has_ep2_dlc_trigger = yes 	
	            has_dlc = "Garments of the Holy Roman Empire"					
				portrait_era2_trigger_norse_westernize = yes					
			
            }
        }
    }
	
## SP2 Elegance of the Empire ##

    ep2_norse_sp2_western_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sp2_western_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = { #This applies to the male ruler
                add = 100
                has_dlc_feature = elegance_of_the_empire
                has_ep2_dlc_trigger = yes				
                portrait_imperial_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }				
            }
			modifier = {
				add = 100
				has_dlc_feature = elegance_of_the_empire
                has_ep2_dlc_trigger = yes				
                portrait_imperial_trigger = {
                    CULTURE_INPUT = epe_norse
                }
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }				
				is_female = yes
			}

        }
    }


	

    ## POL ##

	pol_west_slavic_commoners = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = pol_west_slav_clothes
				range = { 0 0.23 } # For the randomness to work correctly
			}
		}
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = west_slavic
                }
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }			
        }
	}

	pol_west_slavic_low_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = pol_west_slav_clothes
				range = { 0.25 0.48 } # For the randomness to work correctly
			}
		}
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = west_slavic }
            modifier = {
                add = 100
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = west_slavic
					}
					portrait_mayor_trigger = {
						CULTURE_INPUT = west_slavic
					}
				}
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }			
        }
	}

	pol_west_slavic_high_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = pol_west_slav_clothes
				range = { 0.51 0.73 } # For the randomness to work correctly
			}
		}
		weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = west_slavic } 
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = west_slavic
                } 
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }			
        }
	}

	pol_west_slavic_imperial = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = pol_west_slav_clothes
                accessory = m_clothes_sec_pol_imperial_01	
			}
		}
		weight = {
            base = 0
            modifier = {
                add = 101
                portrait_imperial_trigger = {
                    CULTURE_INPUT = west_slavic
                }
            }
            modifier = {
                add = 101
                portrait_royalty_trigger = {
                    CULTURE_INPUT = west_slavic
                }                  
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }			
        }
	}

## CCP4 SAMI ##

ccp4_sami_commoners = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_sami_clothes
            range = { 0 0.20 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        modifier = {
            add = 100
            portrait_commoner_no_mayors_trigger = {
                CULTURE_INPUT = sami
            }
        }
    }
}

ccp4_sami_low_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_sami_clothes
            range = { 0.24 0.42 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_4_modifier = { INPUT_PARAMETER = sami }
        modifier = {
            add = 100
            OR = {
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = sami
                }
                portrait_mayor_trigger = {
                    CULTURE_INPUT = sami
                }
            }
        }
    }
}

ccp4_sami_high_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_sami_clothes
            range = { 0.45 0.64 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_5_modifier = { INPUT_PARAMETER = sami } 
        modifier = {
            add = 100
            portrait_high_nobles_clothing_trigger = { 
                CULTURE_INPUT = sami
            } 
        }
    }
}

## CCP4 KHANTY / UGRO-PERMIAN ##

ccp4_ugro_permian_commoners = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_khanty_clothes
            range = { 0 0.22 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        modifier = {
            add = 100
            portrait_commoner_no_mayors_trigger = {
                CULTURE_INPUT = ugro_permian
            }
        }
    }
}

ccp4_ugro_permian_low_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_khanty_clothes
            range = { 0.24 0.45 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_4_modifier = { INPUT_PARAMETER = ugro_permian }
        modifier = {
            add = 100
            OR = {
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
                portrait_mayor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
        }
    }
}

ccp4_ugro_permian_high_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_khanty_clothes
            range = { 0.48 0.69 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_5_modifier = { INPUT_PARAMETER = ugro_permian } 
        modifier = {
            add = 100
            portrait_high_nobles_clothing_trigger = { 
                CULTURE_INPUT = ugro_permian
            } 
        }
    }
}    

    # ## FP3 IRANIAN ##

    # fp3_iranian_low_nobles = {
    #     dna_modifiers = {
    #         accessory = {
    #             mode = add
    #             gene = clothes
    #             template = fp3_iranian_low_nobility_clothes
    #             range = { 0 1 } # For the randomness to work correctly
    #         }
    #     }   
    #     weight = {
    #         base = 0
    #         court_fashion_level_4_modifier = { INPUT_PARAMETER = fp3_iranian }
    #         modifier = {
    #             add = 51 # Slightly higher
    #             portrait_low_nobles_clothing_trigger = { 
    #                 CULTURE_INPUT = fp3_iranian
    #             }
    #         }
    #         modifier = {
    #             add = 51 # Slightly higher
    #             portrait_low_nobles_clothing_trigger = { 
    #                 CULTURE_INPUT = fp3_iranian
    #             }
    #             is_female = yes
    #         }
    #     }
    # }

    # fp3_iranian_high_nobles = {
    #     dna_modifiers = {
    #         accessory = {
    #             mode = add
    #             gene = clothes
    #             template = fp3_iranian_high_nobility_clothes
    #             range = { 0 1 } # For the randomness to work correctly
    #         }
    #     }       
    #     weight = {
    #         base = 0
    #         court_fashion_level_5_modifier = { INPUT_PARAMETER = fp3_iranian } 
    #         modifier = {
    #             add = 51 # Slightly higher
    #             portrait_high_nobles_clothing_trigger = { 
    #                 CULTURE_INPUT = fp3_iranian
    #             } 
    #         }
    #         modifier = {
    #             add = 51 # Slightly higher
    #             portrait_high_nobles_clothing_trigger = { 
    #                 CULTURE_INPUT = fp3_iranian
    #             } 
    #             is_female = yes
    #         }
    #     }
    # }
	
    

## FP2 Fate of Iberia ##

    fp2_iberian_christian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = fp2_iberian_christian
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 101 # Slightly higher
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = fp2_iberian_muslim
                }
            }
        }

    }

    fp2_iberian_christian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp2_iberian_christian } 
            modifier = {
                add = 51 # Slightly higher
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                }   
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp2_iberian_muslim } 
            modifier = {
                add = 101 # Slightly higher
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                } 
            }
        }
    }

    fp2_iberian_christian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp2_iberian_christian } 
            modifier = {
                add = 51 # Slightly higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                } 
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp2_iberian_muslim } 
            modifier = {
                add = 101 # Slightly higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                } 
            }
        }
    }
	

## FP1 NORSE ##

    fp1_norse_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = fp1_norse
                }
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }			
        }
    }

    fp1_norse_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp1_norse }
            modifier = {
                add = 51 # Slightly higher
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp1_norse
                }
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }			
        }
    }

    fp1_norse_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp1_norse } 
            modifier = {
                add = 51 # Slightly higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp1_norse
                } 
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }			
        }
    }

## Sub-Saharan Africans ##

    sub_saharan_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = african
                }
            }
        }
    }

    sub_saharan_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = african }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = african
                }
            }
        }
    }

    sub_saharan_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { sub_saharan_high_nobility_clothes }     
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = african } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = african
                } 
            }
        }
    }

## SP2 Elegance of the Empire ##

    sp2_western_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sp2_western_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = { #This applies to the male ruler
                add = 100
                has_dlc_feature = elegance_of_the_empire
                portrait_imperial_trigger = {
                    CULTURE_INPUT = dde_hre
                }
            }
			modifier = {
				add = 100
				has_dlc_feature = elegance_of_the_empire
                portrait_imperial_trigger = {
                    CULTURE_INPUT = dde_hre
                }	
				is_female = yes
			}
            modifier = { #This applies to the male ruler
                add = 100
                has_dlc_feature = elegance_of_the_empire
                portrait_imperial_trigger = {
                    CULTURE_INPUT = french
                }
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }					
				}
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
            }
            modifier = {
                add = 100
                has_dlc_feature = elegance_of_the_empire
                portrait_imperial_trigger = {
                    CULTURE_INPUT = french
                }
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }				
				}
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                is_female = yes
            }
            modifier = {
                factor = 0
                has_ep2_dlc_trigger = yes  
                NOR = {
                    portrait_era2_trigger = yes   
                    portrait_era3_trigger = yes 
                }             
            }
        }
    }

    sp3_western_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sp3_western_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_royalty_trigger = {
                        CULTURE_INPUT = french
                    } 				
                    portrait_imperial_trigger = {
                        CULTURE_INPUT = french
                    }                
                }
				NOT = {
					portrait_royalty_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }				
				}				
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }					
				}
				NOT = {
					portrait_royalty_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }				
				}				
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }					
				}				
                has_dlc_feature = couture_of_the_capets
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
            }
            modifier = {
                add = 50
                OR = {
                    portrait_royalty_trigger = {
                        CULTURE_INPUT = french
                    } 				
                    portrait_imperial_trigger = {
                        CULTURE_INPUT = french
                    }                
                }
				NOT = {
					portrait_royalty_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }					
				}				
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }				
				}
				NOT = {
					portrait_royalty_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }				
				}				
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }					
				}				
                has_dlc_feature = couture_of_the_capets  
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes    
            }
        }
    }
	
    ####################################################################################################
    ##################
    #################################EPE Expanded
    ##################
    ####################################################################################################	



    ####################################################################################################
    ##################
    ###French
    ##################
    ####################################################################################################

    french_commoners = {

        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { western_commoner_outfit }           
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = french
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }				
				}				
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }                   
        }
    }

    ep2_french_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }				
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_french_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }				
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_french_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
				is_lowborn = yes
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }			
        }
    }

    fp4_french_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
				is_lowborn = yes				
                has_ce1_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }
	
    ep2_french_era3_commoners_not_lowborn = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
				is_lowborn = no
				
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }			
        }
    }	

    french_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = french
                }
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }      
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
                is_female = yes      
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_french_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = french
                }
                has_ep2_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
                is_female = yes     
            }
        }
    }

    ep2_french_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = french
                }				
                has_ep2_dlc_trigger = yes 
                portrait_era2_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes
                is_female = yes     
            }
        }
    }

    ep2_french_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = french
                }				
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }				
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }				
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes      
            }
        }
    }

    french_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = french
                }
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
                is_female = yes 
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_french_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = french
                }
                has_ep2_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes 
                is_female = yes    
            }
        }
    }

    ep2_french_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = french
                }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }					
				}				
                has_ep2_dlc_trigger = yes 
                portrait_era2_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }
				
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }				
				}				
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes
                is_female = yes     
            }
        }
    }

    ep2_french_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = french
                }
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }				
				}				
                has_ep2_dlc_trigger = yes  
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = french
                } 
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }				
				}				
                has_ep2_dlc_trigger = yes  
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes    
            }
            modifier = {
                factor = 0       
                OR = {
                    portrait_royalty_trigger = {
                        CULTURE_INPUT = french
                    } 				
                    portrait_imperial_trigger = {
                        CULTURE_INPUT = french
                    }                
                }
				NOT = {
					portrait_royalty_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }					
				}
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                    }				
				}				
                has_dlc_feature = couture_of_the_capets
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
            }				
        }
    }





	


##################
###epe_bedouin
##################

    epe_bedouin_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_bedouin
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
        }
    }

    epe_bedouin_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_bedouin }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bedouin
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bedouin
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				has_dde_abbasid_flavor_dlc_trigger = yes
                is_female = yes					
            }
        }
    }

    epe_bedouin_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_bedouin } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bedouin
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bedouin
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
				has_dde_abbasid_flavor_dlc_trigger = yes		
                is_female = yes			
            }
        }
    }
	
    ##################
    ###ABBASID Expanded
    ##################
	
    ##################Early Abbassid 
    early_abbasid_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
        }
    }

    early_abbasid_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
        }
    }

    early_abbasid_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
				has_dde_abbasid_flavor_dlc_trigger = yes	
                is_female = yes				
            }
        }
    }

    early_abbasid_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
				has_dde_abbasid_flavor_dlc_trigger = yes					
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
				has_dde_abbasid_flavor_dlc_trigger = yes	
                is_female = yes				
            }
        }
    }


    ##################Early Abbassid Non DLC 

    non_dlc_early_abbasid_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
                NOT = {
                    has_dde_abbasid_flavor_dlc_trigger = yes
                }				
            }
        }
    }

    non_dlc_early_abbasid_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
                NOT = {
                    has_dde_abbasid_flavor_dlc_trigger = yes
                }				
            }
        }
    }

    non_dlc_early_abbasid_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                portrait_era1_trigger = yes
                NOT = {
                    has_dde_abbasid_flavor_dlc_trigger = yes
                }				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}					
                portrait_era1_trigger = yes
                NOT = {
                    has_dde_abbasid_flavor_dlc_trigger = yes
                }	
                is_female = yes			
            }
        }
    }

    non_dlc_early_abbasid_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}					
                portrait_era1_trigger = yes
                NOT = {
                    has_dde_abbasid_flavor_dlc_trigger = yes
                }				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}					
                portrait_era1_trigger = yes
                NOT = {
                    has_dde_abbasid_flavor_dlc_trigger = yes
                }	
                is_female = yes			
            }
        }
    }
	
    ##################Abbassid Non DLC 

    non_dlc_abbasid_mena_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }				
            }
        }
    }

    non_dlc_abbasid_mena_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }				
            }
        }
    }

    non_dlc_abbasid_mena_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes				
            }
        }
    }

    non_dlc_abbasid_mena_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid 
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes				
            }
        }
    }	
	
	
	
    ####Abbasid Tahirids

    tahirid_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_commoner_clothes
                range = { 0 0.48 } # For the randomness to work correctly
            }
        }
        outfit_tags = { dde_abbasid_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_tahirid
                }
                portrait_era1_trigger = yes				
            }
        }
    }

    tahirid_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 0.48 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_tahirid
                }
                portrait_era1_trigger = yes				
            }
        }
    }

    tahirid_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 0.48 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_tahirid
				}
                portrait_era1_trigger = yes	
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                }
                portrait_era1_trigger = yes				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                }
                portrait_era1_trigger = yes	
                is_female = yes			
            }
        }
    }

    tahirid_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_high_nobility_clothes
                range = { 0 0.48 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_tahirid
				}
                portrait_era1_trigger = yes					
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                }
                portrait_era1_trigger = yes				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                }
                portrait_era1_trigger = yes
                is_female = yes				
            }
        }
    }			
	

	


	
    ####################################################################################################
    ##################
    ###Hindu Iranian
    ##################
    ####################################################################################################

    hindu_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { indian_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_hindu_iranian
                }			
            }
        }
    }
	
    hindu_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_hindu_iranian
                }					
            }
        }
    }

    hindu_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_hindu_iranian }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                } 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                }
                is_female = yes 
            }
        }
    }

    hindu_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_hindu_iranian } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                }
                is_female = yes 
            }
        }
    }	
	

    ####################################################################################################
    ##################
    ###Non-DLC Iranian 
    ##################
    ####################################################################################################

    non_dlc_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_non_dlc_iranian
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                				
            }
        }
    }

    non_dlc_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                NOT = {
                    has_fp3_dlc_trigger = yes
                }					
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_non_dlc_iranian
                }
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                				
            }
        }
    }

    non_dlc_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_non_dlc_iranian } 
            modifier = {
                add = 50
                NOT = {
                    has_fp3_dlc_trigger = yes
                }					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_dlc_iranian
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                				
            }
            modifier = {
                add = 50
                NOT = {
                    has_fp3_dlc_trigger = yes
                }					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_dlc_iranian
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                
                is_female = yes				
            }
        }
    }

    non_dlc_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_non_dlc_iranian } 
            modifier = {
                add = 50
                NOT = {
                    has_fp3_dlc_trigger = yes
                }					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_dlc_iranian
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                				
            }
            modifier = {
                add = 50
                NOT = {
                    has_fp3_dlc_trigger = yes
                }					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_dlc_iranian
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                
                is_female = yes				
            }
        }
    }		
	
	

	
    ####################################################################################################
    ##################
    ###Early Islamic Iranian era 1
    ##################
    ####################################################################################################

    early_islamic_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0 0.17 } # For the randomness to work correctly
            }
        }
        outfit_tags = { fp3_iranian_commoner_nobility_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
	            has_fp3_dlc_trigger = yes 				
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_islamic_iranian
                }
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes				
            }
        }
    }

    early_islamic_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0 0.18 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_islamic_iranian
                }
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes				
            }
        }
    }

    early_islamic_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0 0.18 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_islamic_iranian
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes	
			}
		   #####################################################	
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes
                is_female = yes				
            }
        }
    }

    early_islamic_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0 0.18 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_islamic_iranian
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes	
			}
		   #####################################################
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_tahirid
                    }
				}				
                portrait_era1_trigger = yes
                is_female = yes				
            }
        }
    }		
	
	


    ####################################################################################################
    ##################
    ###High medieval Islamic Iranian era 2-3
    ##################
    ####################################################################################################

    islamic_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0.20 0.36 } # For the randomness to work correctly
            }
        }
        outfit_tags = { fp3_iranian_commoner_nobility_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
	            has_fp3_dlc_trigger = yes 				
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }				
            }
        }
    }

    islamic_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.20 0.36 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }				
            }
        }
    }

    islamic_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.20 0.36 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
	            has_fp3_dlc_trigger = yes 					
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_islamic_iranian
				}
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }
			}
		   #####################################################
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }
                is_female = yes				
            }
        }
    }

    islamic_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.20 0.36 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
	            has_fp3_dlc_trigger = yes 						
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_islamic_iranian
				}
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }	
			}
		   #####################################################	
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }
                is_female = yes				
            }
        }
    }	
	

	
    ####################################################################################################
    ##################
    ###Late medieval Islamic Iranian era 4
    ##################
    ####################################################################################################

    late_islamic_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0.39 0.54 } # For the randomness to work correctly
            }
        }
        outfit_tags = { fp3_iranian_commoner_nobility_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
	            has_fp3_dlc_trigger = yes 				
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era4_trigger = yes  
                }				
            }
        }
    }

    late_islamic_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.38 0.56 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era4_trigger = yes  
                }				
            }
        }
    }

    late_islamic_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.38 0.56 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
	            has_fp3_dlc_trigger = yes 					
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_islamic_iranian
				}
                OR = { 
                    portrait_era4_trigger = yes  
                }
			}
		   #####################################################	
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = { 
                    portrait_era4_trigger = yes  
                }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = { 
                    portrait_era4_trigger = yes  
                }
                is_female = yes				
            }
        }
    }

    late_islamic_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.38 0.56 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
	            has_fp3_dlc_trigger = yes 					
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_islamic_iranian
				}
                OR = { 
                    portrait_era4_trigger = yes  
                }
			}
		   #####################################################	
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era4_trigger = yes  
                }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 				
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_islamic_iranian
                }
                OR = {
                    portrait_era4_trigger = yes  
                }
                is_female = yes				
            }
        }
    }	

    ####################################################################################################
    ##################
    ###Western Iranian non-muslim
    ##################
    ####################################################################################################

    non_islamic_Western_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0.57 0.74 } # For the randomness to work correctly
            }
        }
        outfit_tags = { fp3_iranian_commoner_nobility_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
	            has_fp3_dlc_trigger = yes 					
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_western_non_islamic_iranian
                }				
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                    }
				}				
				# NOT = {
				# 	portrait_commoner_no_mayors_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }

    non_islamic_Western_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.59 0.77 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_western_non_islamic_iranian
                }					
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                    }
				}				
				# NOT = {
				# 	portrait_mayor_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }

    non_islamic_Western_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.59 0.77 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_non_islamic_iranian } 
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_non_islamic_iranian
                }				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                    }
				}				
				# NOT = {
				# 	portrait_low_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_non_islamic_iranian
                }				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                    }
				}
                is_female = yes			
				# NOT = {
				# 	portrait_low_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }

    non_islamic_Western_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.59 0.77 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_non_islamic_iranian } 
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_non_islamic_iranian
                }				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                    }
				}				
				# NOT = {
				# 	portrait_high_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_non_islamic_iranian
                }				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                    }
				}
                is_female = yes				
				# NOT = {
				# 	portrait_high_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }	


    ####################################################################################################
    ##################
    ###EPE-Eastern non islamic Iranian
    ##################
    ####################################################################################################

    non_islamic_eastern_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0.77 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { fp3_iranian_commoner_nobility_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
	            has_fp3_dlc_trigger = yes 				
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                }				
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				# NOT = {
				# 	portrait_commoner_no_mayors_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }

    non_islamic_eastern_iranian_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.79 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                }				
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				# NOT = {
				# 	portrait_mayor_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }

    non_islamic_eastern_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.79 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_non_islamic_iranian } 
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                }				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				# NOT = {
				# 	portrait_low_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                }				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
                is_female = yes
				# NOT = {
				# 	portrait_low_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }

    non_islamic_eastern_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.80 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_non_islamic_iranian } 
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                }				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}				
				# NOT = {
				# 	portrait_high_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
            modifier = {
                add = 50
	            has_fp3_dlc_trigger = yes 					
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_non_islamic_iranian
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_non_islamic_iranian
                }				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_hindu_iranian
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                    }
				}					
                is_female = yes
				# NOT = {
				# 	portrait_high_nobles_clothing_trigger = { 
                #     CULTURE_INPUT = epe_sino_iranian
                #     }
				# }				
            }
        }
    }	
	
	
####################################################################################################
##################
###Iranian Christian
##################
####################################################################################################



    epe_christ_iranian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0.57 0.74 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_christian_iranian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_christ_iranian_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0.57 0.74 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                } 				
                has_ep3_dlc_trigger = yes    
                OR = {
                    portrait_era1_trigger = yes  
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                } 				
            }
        }
    }

    ep3_christ_iranian_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_commoner_nobility_clothes
                range = { 0.57 0.74 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era4_trigger = yes  
                }   
            }
        }
    }

    epe_christ_iranian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.79 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_christian_iranian }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_christ_iranian_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.79 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_christian_iranian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era1_trigger = yes  
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                }
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                } 				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era1_trigger = yes  
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                }   
            }
        }
    }

    ep3_christ_iranian_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_low_nobility_clothes
                range = { 0.79 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_christian_iranian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                } 			
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era4_trigger = yes  
                }  
            }
        }
    }

    epe_christ_iranian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.80 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_christian_iranian }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_christ_iranian_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.80 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_christian_iranian
                }			
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era1_trigger = yes  
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era1_trigger = yes  
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                }      
            }
        }
    }

    ep3_christ_iranian_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.80 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_christian_iranian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }

    ep3_christ_iranian_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.80 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_roy_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_christian_iranian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_christ_iranian_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.80 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_christian_iranian
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_christian_iranian
                    }                 
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era1_trigger = yes  
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                }      
            }
        }
    }

    ep3_christ_iranian_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_high_nobility_clothes
                range = { 0.80 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_christian_iranian
                    }                
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

####################################################################################################
##################
###Armenian
##################
####################################################################################################

    epe_armenian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0.71 0.88 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_armenian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_armenian_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0.71 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                } 				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_epe_armenian_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0.71 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }   
            }
        }
    }

    epe_armenian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.57 0.67 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_armenian }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_armenian_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.70 0.76 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                } 				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_epe_armenian_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.79 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                } 				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }

    epe_armenian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.66 0.69 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_armenian }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_armenian_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.72 0.81 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes  
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_epe_armenian_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.83 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }

    ep3_epe_armenian_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_royalty_clothes
                accessory = m_clothes_sec_ep3_armenian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_roy_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_armenian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_epe_armenian_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_imperial_clothes
                accessory = m_clothes_sec_ep3_armenian_era1_imp_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_armenian
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_armenian
                    }                 
                }				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_epe_armenian_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_imperial_clothes
                accessory = m_clothes_sec_ep3_armenian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_armenian
                    }                
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }


####################################################################################################
##################
###Georgian
##################
####################################################################################################

    epe_georgian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0.31 0.47 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_georgian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_georgian_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0.49 0.67 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                } 				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_epe_georgian_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0.49 0.67 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }   
            }
        }
    }

    epe_georgian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.28 0.31 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_georgian }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_georgian_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.34 0.40 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                } 				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_epe_georgian_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0.43 0.54 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                } 				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }

    epe_georgian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.32 0.36 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_georgian }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_georgian_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.39 0.45 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes  
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_epe_georgian_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0.48 0.63 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }

    ep3_epe_georgian_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_royalty_clothes
                accessory = m_clothes_sec_ep3_georgian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_georgian_era2_roy_01_loros 
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_georgian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_epe_georgian_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_imperial_clothes
                accessory = m_clothes_sec_ep3_georgian_era1_imp_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_georgian
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_georgian
                    }                 
                }				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_epe_georgian_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_imperial_clothes
                accessory = m_clothes_sec_ep3_georgian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_georgian
                    }                
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }	
	
####################################################################################################
##################
###Bulgarian
##################
####################################################################################################

    epe_bulgarian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                range = { 0 0.26 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_bulgarian_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                accessory = m_clothes_sec_ep3_bulgarian_era1_com_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                } 				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    pol_epe_bulgarian_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                accessory = m_clothes_sec_pol_bulgarian_common_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                } 				
                has_ep3_dlc_trigger = yes 
				has_pol_dlc_trigger = yes
                portrait_era1_trigger = yes     
            }
        }
    }	

    ep3_epe_bulgarian_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                accessory = m_clothes_sec_ep3_bulgarian_era1_com_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }   
            }
        }
    }
    pol_epe_bulgarian_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                accessory = m_clothes_sec_pol_bulgarian_common_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                } 				
                has_ep3_dlc_trigger = yes 
				has_pol_dlc_trigger = yes
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
        }
    }
	
	

    epe_bulgarian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0 0.07 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_bulgarian }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_bulgarian_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0.10 0.20 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                } 				
                has_ep3_dlc_trigger = yes  
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes     
            }
        }
    }
	
    pol_epe_bulgarian_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0.10 0.24 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                has_pol_dlc_trigger = yes				
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                } 				
                has_ep3_dlc_trigger = yes 
                has_pol_dlc_trigger = yes				
                portrait_era1_trigger = yes     
            }
        }
    }	

    ep3_epe_bulgarian_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0.27 0.47 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                } 				
                has_ep3_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }
	
    pol_epe_bulgarian_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0.27 0.51 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                has_pol_dlc_trigger = yes					
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                } 				
                has_ep3_dlc_trigger = yes
                has_pol_dlc_trigger = yes					
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }	

    epe_bulgarian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0 0.07 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_bulgarian }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_bulgarian_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0.10 0.20 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes  
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes       
            }
        }
    }
	
    pol_epe_bulgarian_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0.10 0.24 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                has_pol_dlc_trigger = yes				
                portrait_era1_trigger = yes  
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes  
                has_pol_dlc_trigger = yes				
                portrait_era1_trigger = yes       
            }
        }
    }	

    ep3_epe_bulgarian_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0.27 0.46 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }
	
    pol_epe_bulgarian_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0.27 0.51 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes
                has_pol_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes 
                has_pol_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }	

    ep3_epe_bulgarian_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_royalty_clothes
                accessory = m_clothes_sec_ep3_bulgarian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_roy_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    pol_epe_bulgarian_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_royalty_clothes
                range = { 0.50 0.81 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_roy_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_bulgarian
                }				
                has_ep3_dlc_trigger = yes  
                has_pol_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }


    ep3_epe_bulgarian_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_imperial_clothes
                accessory = m_clothes_sec_ep3_bulgarian_era1_imp_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_bulgarian
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_bulgarian
                    }                 
                }				
                has_ep3_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era1_trigger = yes       
            }
        }
    }
	
    pol_epe_bulgarian_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_imperial_clothes
                range = { 0.50 0.81 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_bulgarian
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_bulgarian
                    }                 
                }				
                has_ep3_dlc_trigger = yes   
                has_pol_dlc_trigger = yes				
                portrait_era1_trigger = yes       
            }
        }
    }	

    ep3_epe_bulgarian_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_imperial_clothes
                accessory = m_clothes_sec_ep3_bulgarian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_bulgarian
                    }                
                }				
                has_ep3_dlc_trigger = yes  
                NOT = {
                    has_pol_dlc_trigger = yes
                }					
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }	
	
    pol_epe_bulgarian_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_imperial_clothes
                range = { 0.50 0.81 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_bulgarian
                    }                
                }				
                has_ep3_dlc_trigger = yes
                has_pol_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }	
	
####################################################################################################
##################
###South Slav
##################
####################################################################################################

    epe_south_slav_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                range = { 0.57 0.83 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_south_slav
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_south_slav_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                accessory = m_clothes_sec_ep3_south_slav_era1_com_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                } 				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_epe_south_slav_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_commoner_clothes
                accessory = m_clothes_sec_ep3_south_slav_era1_com_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }   
            }
        }
    }

    epe_south_slav_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0.54 0.61 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_south_slav }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_south_slav_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0.63 0.74 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                } 				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_epe_south_slav_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_low_nobility_clothes
                range = { 0.77 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                } 				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }

    epe_south_slav_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0.54 0.61 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_south_slav }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_south_slav_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0.63 0.74 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes  
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_epe_south_slav_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = epe_balkan_high_nobility_clothes
                range = { 0.77 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }

    ep3_epe_south_slav_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_royalty_clothes
                accessory = m_clothes_sec_ep3_south_slav_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_roy_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_south_slav
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_epe_south_slav_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_imperial_clothes
                accessory = m_clothes_sec_ep3_south_slav_era1_imp_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_south_slav
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_south_slav
                    }                 
                }				
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_epe_south_slav_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_imperial_clothes
                accessory = m_clothes_sec_ep3_south_slav_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_south_slav
                    }                
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }	
	
    ####################################################################################################
    ##################
    ###Eastern Turkic/Default Turk
    ##################
    ####################################################################################################

    eastern_turk_commoners_era1 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0 0.27 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
			
                portrait_era1_trigger = yes  				
            }
        }
    }

    eastern_turk_low_nobles_era1 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0.30 0.55 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_eastern_turk
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}				
                OR = {
                    portrait_era1_trigger = yes  									 
                }				
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}				
                portrait_era1_trigger = yes  				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}				
                portrait_era1_trigger = yes 
                is_female = yes 				
            }
        }
    }

    eastern_turk_high_nobles_era1 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0.58 0.83 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_eastern_turk
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}				
                OR = {
                    portrait_era1_trigger = yes  									 
                }				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
                portrait_era1_trigger = yes  				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
                portrait_era1_trigger = yes  
                is_female = yes				
            }
        }
    }
	########Non Persianized
	
    eastern_turk_commoners_non_muslim = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0 0.27 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
        }
    }

    eastern_turk_low_nobles_non_muslim = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0.30 0.55 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_eastern_turk
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  									 
                }				
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
			
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
                is_female = yes				
            }
        }
    }

    eastern_turk_high_nobles_non_muslim = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0.58 0.83 } # For the randomness to work correctly	
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_eastern_turk
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}					
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  									 
                }				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                    }
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }
	
	########Persianized
	
    eastern_turk_commoners_persianized = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0 0.07 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
        }
    }

    eastern_turk_low_nobles_persianized = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.15 0.20 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  									 
                }				
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }

    eastern_turk_high_nobles_persianized = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.28 0.34 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  									 
                }				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }
	
##############FP3 version

    eastern_turk_commoners_persianized_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
               template = seljuk_turkic_clothes
                range = { 0 0.12 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

	            has_fp3_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
        }
    }

    eastern_turk_low_nobles_persianized_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.15 0.25 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
	            has_fp3_dlc_trigger = yes					
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  									 
                }				
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

	            has_fp3_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

	            has_fp3_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }

    eastern_turk_high_nobles_persianized_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.28 0.40 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}
	            has_fp3_dlc_trigger = yes					
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  									 
                }				
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

	            has_fp3_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk_muslim
                }
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_eastern_turk
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                    }
				}				
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                    }
				}

	            has_fp3_dlc_trigger = yes				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }



    ####################################################################################################
    ##################
    ###Western Turk
    ####################################################################################################

    western_turk_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_turkic_clothes
                range = { 0 0.14 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_western_turk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
            }
        }
    }

    western_turk_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_turkic_clothes
                range = { 0.26 0.37 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_western_turk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                is_female = yes 				
            }
        }
    }

    western_turk_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_turkic_clothes
                range = { 0.50 0.61 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_western_turk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }					
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                is_female = yes				
            }
        }
    }


##############FP3 version

    western_turk_commoners_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_turkic_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_western_turk
                }
	            has_fp3_dlc_trigger = yes				
            }
        }
    }

    western_turk_low_nobles_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_turkic_clothes
                range = { 0.26 0.47 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_western_turk
                }
	            has_fp3_dlc_trigger = yes				
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
	            has_fp3_dlc_trigger = yes 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
	            has_fp3_dlc_trigger = yes				
                is_female = yes 				
            }
        }
    }

    western_turk_high_nobles_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_turkic_clothes
                range = { 0.50 0.73 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_western_turk
                }
	            has_fp3_dlc_trigger = yes					
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
	            has_fp3_dlc_trigger = yes				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_western_turk
                }
	            has_fp3_dlc_trigger = yes				
                is_female = yes				
            }
        }
    }




	

    ####################################################################################################
    ##################
    ### Early Oghuz Turks era 1
    ##################
    ####################################################################################################

    seljuk_turk_commoners_era1 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0 0.27 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                portrait_era1_trigger = yes  				
            }
        }
    }

    seljuk_turk_low_nobles_era1 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0.30 0.55 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                portrait_era1_trigger = yes  			
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                portrait_era1_trigger = yes  				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                portrait_era1_trigger = yes 
                is_female = yes 				
            }
        }
    }

    seljuk_turk_high_nobles_era1 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = eastern_turkic_clothes
                range = { 0.58 0.83 } # For the randomness to work correctly	
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                portrait_era1_trigger = yes  				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                portrait_era1_trigger = yes  				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                portrait_era1_trigger = yes  
                is_female = yes				
            }
        }
    }
    ####################################################################################################
    ##################
    ###Seljuk Turks era 2-3
    ##################
    ####################################################################################################	
	###High medieval seljuk era2-3
	
    seljuk_turk_commoners_persianized = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0 0.07 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                } 				
            }
        }
    }

    seljuk_turk_low_nobles_persianized = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.15 0.20 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }			
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }

    seljuk_turk_high_nobles_persianized = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.28 0.34 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }
	
##############FP3 version
    seljuk_turk_commoners_persianized_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
               template = seljuk_turkic_clothes
                range = { 0 0.12 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 					
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                } 				
            }
        }
    }
	
    seljuk_turk_low_nobles_persianized_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.15 0.25 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 					
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }			
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 					
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }

    seljuk_turk_high_nobles_persianized_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.28 0.40 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }			
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era2_trigger = yes  				
                    portrait_era3_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }	

    ####################################################################################################
    ##################
    ###Ottoman Turks era 4
    ##################
    ####################################################################################################	
	
    ottoman_turk_commoners_era_4 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.43 0.47 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }				
                OR = {
                    portrait_era4_trigger = yes  
                } 				
            }
        }
    }

    ottoman_turk_low_nobles_era_4 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.50 0.58 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era4_trigger = yes  
                }			
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }

    ottoman_turk_high_nobles_era_4 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.64 0.71 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = { 
                    portrait_era4_trigger = yes  
                }				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                NOT = {
                    has_fp3_dlc_trigger = yes
                }				
                OR = {
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }
	
##############FP3 version
	
    ottoman_turk_low_nobles_era_4_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.50 0.62 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 					
                OR = {
                    portrait_era4_trigger = yes  
                }			
			}
		   #####################################################
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 					
                OR = { 
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
                OR = {
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }

    ottoman_turk_high_nobles_era_4_fp3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.64 0.75 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_seljuk
                }
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era4_trigger = yes  
                }				
			}
		   #####################################################	
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
					}
				}	
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
					}
				}				
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era4_trigger = yes  
                } 				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
                }
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
					}
				}	
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_seljuk
					}
				}				
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era4_trigger = yes  
                }
                is_female = yes 				
            }
        }
    }	
	
    ottoman_turk_royalty_clothes_era_4 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.77 0.82 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = epe_seljuk
					}
				}
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era4_trigger = yes  
                }				
			
			}
		}
    }	
	
    ottoman_turk_imperial_clothes_era_4 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = seljuk_turkic_clothes
                range = { 0.84 0.89 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = epe_seljuk
					}
				}
	            has_fp3_dlc_trigger = yes 				
                OR = {
                    portrait_era4_trigger = yes  
                }				
			
			}
		}
    }
	

    ####################################################################################################
    ##################
    ###Uyghur
    ##################
    ####################################################################################################
	uyghur_commoners_non_dlc = {

		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0 0.08 } # For the randomness to work correctly
			}
		}
        outfit_tags = { tgp_uyghur_clothes }		
		weight = {
			base = 0
			modifier = {
				add = 20
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				has_tgp_dlc_trigger = no
				
			}
		}
	}

	uyghur_tgp_commoners_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.10 0.12 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 20
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}			
		}
	}

	uyghur_turko_mongol_commoners_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.59 0.64 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}
	
	uyghur_turko_mongol_commoners_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.57 0.66 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}	
	
	
    uyghur_tgp_mayor_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_uyghur_clothes
				range = { 0.22 0.26 } # For the randomness to work correctly
            }
        }   
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_mayor_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}			
		}
    }


	uyghur_turko_mongol_mayor_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.67 0.75 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_mayor_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}
	
	uyghur_turko_mongol_mayor_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.69 0.73 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_mayor_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}	
	
	
	uyghur_low_nobles_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.14 0.22 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				has_tgp_dlc_trigger = no					
			}
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				has_tgp_dlc_trigger = no				
			}
		}
	}
	
	uyghur_tgp_low_nobles_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.22 0.26 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		}
	}


	uyghur_turko_mongol_low_nobles_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.67 0.75 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}	

	uyghur_turko_mongol_low_nobles_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.69 0.73 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}			
	

	uyghur_high_nobles_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.28 0.36 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				has_tgp_dlc_trigger = no					
			}
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				has_tgp_dlc_trigger = no				
			}
		}
	}
	
	uyghur_tgp_high_nobles_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.36 0.41 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}					
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}	
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}					
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}					
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		}
	}


	uyghur_turko_mongol_high_nobles_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.77 0.85 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}					
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}	

	uyghur_turko_mongol_high_nobles_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.79 0.83 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}

    uyghur_tgp_royalty_clothes_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_uyghur_clothes
                range = { 0.42 0.46 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				portrait_royalty_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}				
				has_tgp_dlc_trigger = yes
				prestige_level <= 4
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
			
			}
		}
    }

    uyghur_tgp_imperial_clothes_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_uyghur_clothes
                range = { 0.47 0.51 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				portrait_imperial_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}				
				has_tgp_dlc_trigger = yes
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
			}
			modifier = {
				add = 120
				portrait_royalty_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}				
				has_tgp_dlc_trigger = yes
				prestige_level >= 4
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }
				
			}
			modifier = {
				add = 130
                portrait_imperial_clothing_trigger = {
                    CULTURE_INPUT = epe_uyghur 
                }
				primary_title ?= title:h_china
				has_tgp_dlc_trigger = yes				
			}
			
		}
    }

    uyghur_turko_mongol_royalty_clothes_era3_4 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_uyghur_clothes
                range = { 0.87 0.93 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = epe_uyghur
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = epe_uyghur
					}
				}
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
			
			}
		}
    }

    ####################################################################################################
    ##################
    ###Gokalpbags Clan era 1-2
    ##################
    ####################################################################################################
	
	
	gokalpbags_tgp_low_nobles_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_sino_iranian_clothes
				range = { 0.25 0.32 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_gokalpbags
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_gokalpbags
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		}
	}	
	
	gokalpbags_tgp_high_nobles_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.59 0.65 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_gokalpbags
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_gokalpbags
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
                    }
				}					
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}
		}
	}	
	
    gokalpbags_tgp_royalty_clothes_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.75 0.79 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				portrait_royalty_clothing_trigger = {
					CULTURE_INPUT = epe_gokalpbags
				}
				has_tgp_dlc_trigger = yes
				prestige_level <= 4
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
			
			}
		}
    }

    gokalpbags_tgp_imperial_clothes_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.75 0.79 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				portrait_imperial_clothing_trigger = {
					CULTURE_INPUT = epe_gokalpbags
				}
				has_tgp_dlc_trigger = yes
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
			}
			modifier = {
				add = 120
				portrait_royalty_clothing_trigger = {
					CULTURE_INPUT = epe_gokalpbags
				}
				has_tgp_dlc_trigger = yes
				prestige_level >= 4
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }
				
			}
			
		}
    }	
	
	
		

    ####################################################################################################
    ##################
    ###Sino-Iranian non Dlc version
    ##################
    ####################################################################################################
	
	sino_iranian_commoners_non_dlc = {

		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_sino_iranian_clothes
				range = { 0 0.08.2 } # For the randomness to work correctly
			}
		}
        outfit_tags = { tgp_sino_iranian_clothes }		
		weight = {
			base = 0
			modifier = {
				add = 20
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				has_tgp_dlc_trigger = no
				
			}
		}
	}

	sino_iranian_low_nobles_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_sino_iranian_clothes
				range = { 0.17 0.23 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = no					
			}
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = no			
			}
		}
	}

	sino_iranian_high_nobles_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_sino_iranian_clothes
				range = { 0.50 0.57 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = no				
			}
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = no				
			}
		}
	}
	
    ####################################################################################################
    ##################
    ###Sino-Iranian Tarim Basin
    ##################
    ####################################################################################################
	

	sino_iranian_commoners_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_sino_iranian_clothes
				range = { 0.09 0.15 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 20
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
			}			
		}
	}

	
	
	
    sino_iranian_mayors_fp3_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
				range = { 0.25 0.32 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_sino_iranian
                }					
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = no					
            }
		#########################				
            modifier = {
                add = 100
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_sino_iranian
                }
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }					
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes					
            }			
        }
    }
	
    sino_iranian_mayors_chinese_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
				range = { 0.34 0.40 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_sino_iranian
                }
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = yes					
            }
		#########################				
            modifier = {
                add = 100
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_sino_iranian_chinese
                }
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes					
            }			
        }
    }	


	sino_iranian_low_nobles_fp3_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_sino_iranian_clothes
				range = { 0.25 0.32 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = no	
			}
		   #####################################################
			modifier = {
				add = 100
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = no				
			}
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes	
			}			
		#########################	
			modifier = {
				add = 100			
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}	
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes				
			}
			
		}
	}

	sino_iranian_low_nobles_chinese_era1_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_sino_iranian_clothes
				range = { 0.34 0.40 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = yes		
			}
		#########################				
			modifier = {
				add = 100
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}	
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = yes				
			}
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian_chinese
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes				
			}			
		#########################	
			modifier = {
				add = 100

				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian_chinese
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes				
			}			
		}
	}


	
    sino_iranian_high_nobles_chinese_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.66 0.73 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = yes		
			}
		   #####################################################
			modifier = {
				add = 100
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }					
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = yes				
			}

		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian_chinese
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes	
				has_fp3_dlc_trigger = yes		
			}
		   #####################################################			
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                }
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes	
				has_fp3_dlc_trigger = yes				
            }		
        }
    }

    sino_iranian_high_nobles_fp3_era1_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.59 0.65 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = no	
			}
		   #####################################################
			modifier = {
				add = 100
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = no				
			}

		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes	
			}			
		   #####################################################			
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                }
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}                  				
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes				
				has_tgp_dlc_trigger = yes					
            }			
        }
    }


    sino_iranian_royalty_tgp_clothes_chinese_era1_2 = {  ##Chinese
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.75 0.79 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian
					}
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }					
				has_fp3_dlc_trigger = no
				has_tgp_dlc_trigger = yes				
			}			
			modifier = {
				add = 120
				OR = {
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian_chinese
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian_chinese
					}
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_tgp_dlc_trigger = yes
				has_fp3_dlc_trigger = yes				
			}
			modifier = {
				add = 130
                portrait_imperial_clothing_trigger = {
                    CULTURE_INPUT = epe_sino_iranian 
                }
				primary_title ?= title:h_china
				has_tgp_dlc_trigger = yes				
			}			
		}
    }
	
	
	
    sino_iranian_royalty_fp3_clothes_era1_2 = {  ##iranian
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.59 0.65 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian
					}
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }					
				has_fp3_dlc_trigger = yes
				has_tgp_dlc_trigger = yes			
			}
		}
    }		
			

    ####################################################################################################
    ##################
    ###Sino-Iranian ccp9 Khotanese dlc
    ##################
    ####################################################################################################
	ccp9_sino_iranian_low_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                accessory = f_clothes_ccp9_epe_sino_iranian_lo_nob_01
                type = female
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = no
				has_cp9_dlc_trigger = yes
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones				
			}
		#########################				
			modifier = {
				add = 100
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				NOT = {
					portrait_mayor_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}	
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = no
				has_cp9_dlc_trigger = yes
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones				
			}
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian_chinese
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_cp9_dlc_trigger = yes	
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones				
			}			
		#########################	
			modifier = {
				add = 100

				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian_chinese
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = yes
				has_cp9_dlc_trigger = yes
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones				
			}			
		}
	}
	
	ccp9_sino_iranian_high_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                range = { 0.48 0.58 } # For the randomness to work correctly
			}
		}
        weight = {
            base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				has_fp3_dlc_trigger = no
				has_cp9_dlc_trigger = yes	
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones				
			}
		   #####################################################
			modifier = {
				add = 100
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }					
				has_fp3_dlc_trigger = no
				has_cp9_dlc_trigger = yes
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones				
			}

		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian_chinese
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes	
				has_fp3_dlc_trigger = yes		
			}
		   #####################################################			
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                }
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian_chinese
                    }
				}
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes	
				has_fp3_dlc_trigger = yes				
            }		
        }
	}		
	
	
	
	
    ####################################################################################################
    ##################
    ###Sino-Iranian Turko-Mongol era 3-4
    ##################
    ####################################################################################################
	
	sino_iranian_turko_mongol_commoners_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.59 0.64 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}
	
	sino_iranian_turko_mongol_commoners_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.57 0.66 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}	
	
	
	sino_iranian_turko_mongol_mayor_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.67 0.75 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_mayor_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}
	
	sino_iranian_turko_mongol_mayor_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.69 0.73 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_mayor_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}	
	
	
	sino_iranian_turko_mongol_low_nobles_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.67 0.75 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}	

	sino_iranian_turko_mongol_low_nobles_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.69 0.73 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}			
	
	sino_iranian_turko_mongol_high_nobles_era3_4 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.77 0.85 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_sino_iranian
                    }
				}					
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
			}
		}
	}	

	sino_iranian_turko_mongol_high_nobles_era3_4_non_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_uyghur_clothes
				range = { 0.79 0.83 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_sino_iranian
				}
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }					
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = no
			}
		}
	}
	

    sino_iranian_turko_mongol_royalty_clothes_era3_4 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_uyghur_clothes
                range = { 0.87 0.93 } # For the randomness to work correctly
            }
        }       
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = epe_sino_iranian
					}
				}
				has_tgp_dlc_trigger = yes
				has_mpo_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes   				 
                }				
			
			}
		}
    }
	

	
		
####################################################################################################
##################
###Eastern Slav/The Rus' 
##################
####################################################################################################

    east_slav_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = east_slav_clothes
                range = { 0 0.18 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_east_slav
                }
                has_fp1_dlc_trigger = yes                 
            }
        }
    }

    east_slav_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = east_slav_clothes
                range = { 0.21 0.38 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_east_slav }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                has_fp1_dlc_trigger = yes                   
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                has_fp1_dlc_trigger = yes    
                is_female = yes               
            }
        }
    }

    east_slav_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = east_slav_clothes
                range = { 0.40 0.57 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_east_slav } 
            modifier = {
                add = 51 #Slightly Higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                has_fp1_dlc_trigger = yes                  
            }
            modifier = {
                add = 51 #Slightly Higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                has_fp1_dlc_trigger = yes 
                is_female = yes                 
            }
        }
    }
	
    east_slav_kings = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = east_slav_clothes
                range = { 0.61 0.78 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_east_slav } 
            modifier = {
                add = 105 #Slightly Higher
                portrait_royalty_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                } 
            }
            modifier = {
                add = 105 #Slightly Higher
                portrait_royalty_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                is_female = yes 
            }
        }
    }	
	
    east_slav_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = east_slav_clothes
                range = { 0.61 0.78 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_east_slav } 
            modifier = {
                add = 105 #Slightly Higher
                portrait_imperial_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                has_fp1_dlc_trigger = yes                  
            }
            modifier = {
                add = 105 #Slightly Higher
                portrait_imperial_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                has_fp1_dlc_trigger = yes
                is_female = yes                  
            }
        }
    }		

    ####non DLC east slav
    non_dlc_east_slav_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_east_slav
                }                
                NOT = {
                    has_fp1_dlc_trigger = yes
                }                
            }
        }
    }

    non_dlc_east_slav_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_east_slav }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                }                  
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                } 
                is_female = yes                 
            }
        }
    }

    non_dlc_east_slav_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 0.16 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_east_slav } 
            modifier = {
                add = 51 #Slightly Higher
                epe_portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                }                 
            }
            modifier = {
                add = 51 #Slightly Higher
                epe_portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_east_slav
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                } 
                is_female = yes                
            }
        }
    }			

####################################################################################################
##################
###Balto-Finnic
##################
####################################################################################################

    balto_finnic_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_slav_balto_finnic_clothes
                range = { 0.53 0.63 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_balto_finnic
                }
				has_fp1_dlc_trigger = yes
            }
        }
    }

    balto_finnic_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_slav_balto_finnic_clothes
                range = { 0.66 0.76 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_balto_finnic }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
				has_fp1_dlc_trigger = yes
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
				has_fp1_dlc_trigger = yes
                is_female = yes
            }
        }
    }

    balto_finnic_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_slav_balto_finnic_clothes
                range = { 0.79 0.89 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_balto_finnic } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
				has_fp1_dlc_trigger = yes
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
				has_fp1_dlc_trigger = yes
                is_female = yes
            }
        }
    }
	
    ####non DLC Balto-Finnic
    non_dlc_balto_finnic_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_balto_finnic
                }                
                NOT = {
                    has_fp1_dlc_trigger = yes
                }                
            }
        }
    }

    non_dlc_balto_finnic_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_balto_finnic }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                }                  
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                } 
                is_female = yes                 
            }
        }
    }

    non_dlc_balto_finnic_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 0.16 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_balto_finnic } 
            modifier = {
                add = 51 #Slightly Higher
                epe_portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                }                 
            }
            modifier = {
                add = 51 #Slightly Higher
                epe_portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_balto_finnic
                }
                NOT = {
                    has_fp1_dlc_trigger = yes
                }                 
                is_female = yes
            }
        }
    }		

####################################################################################################
##################
###Western Slav
##################
####################################################################################################

###Western Slav era 1
    ep2_west_slav_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_slav_balto_finnic_clothes
                range = { 0 0.11 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }


    ep2_west_slav_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_slav_balto_finnic_clothes
                range = { 0.14 0.29 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }
	

    ep2_west_slav_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_slav_balto_finnic_clothes
                range = { 0.32 0.41 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes  
                is_female = yes   
            }
        }
    }


###Western Slav EP2 tours & tournaments
    ep2_west_slav_commoners = {

        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        } 
        outfit_tags = { western_commoner_outfit }          
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }                    
        }
    }


    ep2_west_slav_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes  
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_west_slav_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                }
				is_lowborn = yes				
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }			
        }
    }
	
    fp4_west_slav_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                }
				is_lowborn = yes				
                has_ce1_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep2_west_slav_era3_commoners_not_lowborn = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                }
				is_lowborn = no
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }			
        }
    }	

    ep2_west_slav_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                }      
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                }
                is_female = yes      
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }
        }
    }


    ep2_west_slav_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era2_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era2_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era2_trigger = yes 
                is_female = yes    
            }
        }
    }

    ep2_west_slav_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes      
            }
        }
    }

    ep2_west_slav_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                is_female = yes
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }
        }
    }


    ep2_west_slav_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era2_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes   
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era2_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes   
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                portrait_era2_trigger = yes 
                is_female = yes    
            }
        }
    }

    ep2_west_slav_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes  
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes 
                NOT = {
                    has_pol_dlc_trigger = yes
                }				
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }
                is_female = yes    
            }
        }
    }
	
###Western Slav POL
	
    ep2_pol_west_slavic_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
				template = pol_west_slav_clothes
				range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_commoner_no_mayors_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                }
 				has_pol_dlc_trigger = yes
                has_ep2_dlc_trigger = yes   
                OR = {			
					portrait_era2_trigger = yes	
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  					
                }     
            }
        }
    }
	

    ep2_pol_west_slavic_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
				template = pol_west_slav_clothes
				range = { 0.25 0.48 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
				has_pol_dlc_trigger = yes
                OR = {			
					portrait_era2_trigger = yes	
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  					
                }
            }
            modifier = {
                add = 100
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = epe_west_slav
					}
					portrait_mayor_trigger = {
						CULTURE_INPUT = epe_west_slav
					}
				}				
                has_ep2_dlc_trigger = yes
				has_pol_dlc_trigger = yes				
                OR = {			
					portrait_era2_trigger = yes	
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  					
                }   
            }
            modifier = {
                add = 100
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = epe_west_slav
					}
					portrait_mayor_trigger = {
						CULTURE_INPUT = epe_west_slav
					}
				} 
                has_ep2_dlc_trigger = yes 
				has_pol_dlc_trigger = yes				
                OR = {			
					portrait_era2_trigger = yes	
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  					
                } 
                is_female = yes    
            }
        }
    }
	
    ep2_pol_west_slavic_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
				template = pol_west_slav_clothes
				range = { 0.51 0.73 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
 				has_pol_dlc_trigger = yes				
                OR = {			
					portrait_era2_trigger = yes	
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  					
                }
            }
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes 
 				has_pol_dlc_trigger = yes				
                OR = {			
					portrait_era2_trigger = yes	
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  					
                }   
            }
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes 
 				has_pol_dlc_trigger = yes				
                OR = {			
					portrait_era2_trigger = yes	
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  					
                }
                is_female = yes   
            }
        }
    }

	pol_west_slavic_imperial = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = pol_west_slav_clothes
                accessory = m_clothes_sec_pol_imperial_01	
			}
		}
		weight = {
            base = 0
            modifier = {
                add = 101
                portrait_imperial_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
 				has_pol_dlc_trigger = yes					
                OR = {
					portrait_era2_trigger = yes	
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }
            }
            modifier = {
                add = 101
                portrait_royalty_trigger = {
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes 
 				has_pol_dlc_trigger = yes					
                OR = {
					portrait_era2_trigger = yes	
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }                 
            }
            modifier = {
                add = 101
                portrait_imperial_trigger = {
                    CULTURE_INPUT = epe_west_slav
                }
                has_ep2_dlc_trigger = yes 
 				has_pol_dlc_trigger = yes					
                OR = {
					portrait_era2_trigger = yes	
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }
                is_female = yes
            }
            modifier = {
                add = 101
                portrait_royalty_trigger = {
                    CULTURE_INPUT = epe_west_slav
                } 
                has_ep2_dlc_trigger = yes 
 				has_pol_dlc_trigger = yes					
                OR = {
					portrait_era2_trigger = yes	
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }
                is_female = yes                 
            }			
        }
	}
	
	


####################################################################################################
##################
###English/Anglo-Saxons
##################
####################################################################################################

    ep2_english_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_english
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }


    ep2_english_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 0.23 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_english
                }
                has_ep2_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_english
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }


    ep2_english_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 0.16 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_english
                }
                has_ep2_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_english
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_english
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes  
                is_female = yes   
            }
        }
    }


####################################################################################################
##################
###Brythonic/Welsh
##################
####################################################################################################

    ep2_brythonic_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0.26 0.61 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                } 
                has_ep2_dlc_trigger = yes   
                OR = {
                    portrait_era1_trigger = yes
                    portrait_era2_trigger = yes
                }     
            }
        }
    }


    ep2_brythonic_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0.26 0.61 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_brythonic
                }
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era1_trigger = yes
                    portrait_era2_trigger = yes
                }
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                } 
                has_ep2_dlc_trigger = yes   
                OR = {
                    portrait_era1_trigger = yes
                    portrait_era2_trigger = yes
                }    
            }
        }
    }


    ep2_brythonic_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0.19 0.43 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = epe_brythonic
                }
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era1_trigger = yes
                    portrait_era2_trigger = yes
                }
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                } 
                has_ep2_dlc_trigger = yes   
                OR = {
                    portrait_era1_trigger = yes
                    portrait_era2_trigger = yes
                }   
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_brythonic
                } 
                has_ep2_dlc_trigger = yes   
                OR = {
                    portrait_era1_trigger = yes
                    portrait_era2_trigger = yes
                } 
                is_female = yes   
            }
        }
    }
	
	
####################################################################################################
##################
###Gaelic/Irish
##################
####################################################################################################

    gaelic_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0.63 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = epe_gaelic
                }
            }
        }
    }

    gaelic_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0.63 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_gaelic } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                }  
            }
        }
    }

    gaelic_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0.46 0.70 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_gaelic } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                }
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                    }
				}				
            }
        }
    }
	
    gaelic_kings = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0.73 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            modifier = {
                add = 51 #Slightly Higher
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                } 
            }
            modifier = {
                add = 51 #Slightly Higher
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                }
                is_female = yes   
            }
        }
    }	
	
    gaelic_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0.73 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            modifier = {
                add = 100 #Slightly Higher
                portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                } 
            }
            modifier = {
                add = 100 #Slightly Higher
                portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gaelic
                }
                is_female = yes 
            }
        }
    }	
	


    ####################################################################################################
    ##################
    ###North africa/maghreb
    ##################
    ####################################################################################################

####################################################################################################
##################
###Baranis - settled/Coastal Berber
##################
####################################################################################################

    baranis_maghreb_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_commoner_clothes
                range = { 0.43 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { afr_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = afr_berber
                }
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_baranis 
                }				
				has_afr_dlc_trigger = yes
            }
        }
    }

    baranis_maghreb_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_low_nobility_clothes
                range = { 0.37 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = afr_berber
                }
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_baranis 
                }				
				has_afr_dlc_trigger = yes				
            }
        }
    }

    baranis_maghreb_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_low_nobility_clothes
                range = { 0.37 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = afr_berber } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_baranis 
                }				
				has_afr_dlc_trigger = yes				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_baranis 
                }				
				has_afr_dlc_trigger = yes
                is_female = yes				
            }
        }
    }

    baranis_maghreb_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_high_nobility_clothes
                range = { 0.37 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = afr_berber } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_high_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_baranis 
                }				
				has_afr_dlc_trigger = yes				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_high_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_baranis 
                }				
				has_afr_dlc_trigger = yes	
                is_female = yes			
            }
        }
    }

####################################################################################################
##################
###Butr/zaghawa - nomadic Berber
##################
####################################################################################################

    butr_maghreb_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_commoner_clothes
                range = { 0 0.40 } # For the randomness to work correctly
            }
        }
        outfit_tags = { afr_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = afr_berber
                }
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = epe_butr 
                }				
				has_afr_dlc_trigger = yes
            }
        }
    }

    butr_maghreb_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_low_nobility_clothes
                range = { 0 0.34 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = afr_berber
                }
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_butr 
                }				
				has_afr_dlc_trigger = yes				
            }
        }
    }

    butr_maghreb_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_low_nobility_clothes
                range = { 0 0.34 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = afr_berber } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_butr 
                }				
				has_afr_dlc_trigger = yes				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_butr 
                }				
				has_afr_dlc_trigger = yes
                is_female = yes				
            }
        }
    }

    butr_maghreb_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = afr_high_nobility_clothes
                range = { 0 0.34 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = afr_berber } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_high_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_butr 
                }				
				has_afr_dlc_trigger = yes				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                }
                portrait_high_nobles_clothing_trigger = {
                    CULTURE_INPUT = epe_butr 
                }				
				has_afr_dlc_trigger = yes	
                is_female = yes			
            }
        }
    }
	
	####  Baranis - settled/Coastal Berber

    non_dlc_maghreb_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = non_dlc_afr_berber
                }
                NOT = {
                    has_afr_dlc_trigger = yes
                }					
            }
        }
    }

    non_dlc_maghreb_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = non_dlc_afr_berber
                }
                NOT = {
                    has_afr_dlc_trigger = yes
                }				
            }
        }
    }

    non_dlc_maghreb_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = non_dlc_afr_berber } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = non_dlc_afr_berber
                }
                NOT = {
                    has_afr_dlc_trigger = yes
                }				
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = non_dlc_afr_berber
                }
                NOT = {
                    has_afr_dlc_trigger = yes
                }
                is_female = yes				
            }
        }
    }

    non_dlc_maghreb_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = non_dlc_afr_berber } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = non_dlc_afr_berber
                }
                NOT = {
                    has_afr_dlc_trigger = yes
                }				
				
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = non_dlc_afr_berber
                }
                NOT = {
                    has_afr_dlc_trigger = yes
                }				
				is_female = yes
            }
        }
    }


####################################################################################################
##################
###Norman-Sicilian era 2-4
##################
####################################################################################################

    epe_norman_sicilian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_high_nobility_clothes
                range = { 0 0.38 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_norman_sicily }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_norman_sicilian_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_norman_sicily
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_norman_sicily
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }			
        }
    }

    ep3_epe_norman_sicilian_era2_royal = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_imperial_clothes
                accessory = m_clothes_sec_ep3_norman_sicilian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
					portrait_crown_of_sicily_trigger = yes				
					AND = {				
                       portrait_royalty_clothing_trigger = { 
                          CULTURE_INPUT = epe_norman_sicily
                       }
					   
					}					
					AND = {				
                       portrait_imperial_clothing_trigger = { 
                          CULTURE_INPUT = epe_norman_sicily
                       }
					   
					}             
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }
	
    ep3_epe_norman_sicilian_era2_royal_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_imperial_clothes
                accessory = m_clothes_sec_ep3_norman_sicilian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = sp2_norman_sicilian_cloak_imperial
                range = { 0 1 }
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
					portrait_crown_of_sicily_trigger = yes				
					AND = {				
                       portrait_royalty_clothing_trigger = { 
                          CULTURE_INPUT = epe_norman_sicily
                       }
					   
					}					
					AND = {				
                       portrait_imperial_clothing_trigger = { 
                          CULTURE_INPUT = epe_norman_sicily
                       }
					   
					}             
                }
                has_dlc_feature = elegance_of_the_empire 				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_epe_norman_sicilian_era2_royal_3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_imperial_clothes
                accessory = m_clothes_sec_ep3_norman_sicilian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = western_royalty
                range = { 0 1 }
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
					portrait_crown_of_sicily_trigger = yes				
					AND = {				
                       portrait_royalty_clothing_trigger = { 
                          CULTURE_INPUT = epe_norman_sicily
                       }
					   
					}					
					AND = {				
                       portrait_imperial_clothing_trigger = { 
                          CULTURE_INPUT = epe_norman_sicily
                       }
					   
					}             
                }				
                has_ep3_dlc_trigger = yes 
                NOT = { has_dlc_feature = elegance_of_the_empire   }			
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }	

####################################################################################################
##################
###Sicilian era 2-4
##################
####################################################################################################

    epe_sicilian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_high_nobility_clothes
                range = { 0 0.38 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_sicilian }			
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                }				
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_epe_sicilian_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = epe_sicilian
                }				
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_sicilian
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }			
        }
    }

    ep3_epe_sicilian_era2_royal = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_imperial_clothes
                accessory = m_clothes_sec_ep3_norman_sicilian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_sicilian
                    } 				
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_sicilian
                    }                
                }				
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_epe_sicilian_era2_royal_2 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_imperial_clothes
                accessory = m_clothes_sec_ep3_norman_sicilian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = sp2_norman_sicilian_cloak_imperial
                accessory = m_cloaks_sec_sp2_norman_sicilian_imp_01
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_sicilian
                    } 				
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_sicilian
                    }                
                }				
                has_ep3_dlc_trigger = yes
                has_dlc_feature = elegance_of_the_empire 				
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }
	
    ep3_epe_sicilian_era2_royal_3 = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = norman_sicilian_imperial_clothes
                accessory = m_clothes_sec_ep3_norman_sicilian_era2_roy_01
            }
            accessory = {
                mode = add
                gene = cloaks
                template = western_royalty
                range = { 0 1 }
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = epe_sicilian
                    } 				
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = epe_sicilian
                    }                
                }				
                has_ep3_dlc_trigger = yes  
                NOT = { has_dlc_feature = elegance_of_the_empire   }					
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }


	## TGP - Chinese ##

	chinese_commoner_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				range = { 0 0.04 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = chinese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	chinese_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				range = { 0.06 0.10 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			court_fashion_level_4_modifier = { INPUT_PARAMETER = chinese }
			modifier = {
				add = 100
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = chinese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	chinese_nobility_clothes_no_dlc = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				range = { 0.06 0.08 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			court_fashion_level_4_modifier = { INPUT_PARAMETER = chinese }
			modifier = {
				add = 100
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_high_nobles_clothing_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = japanese
					}
					portrait_high_nobles_clothing_trigger = {
						CULTURE_INPUT = japanese
					}
				}
				has_tgp_dlc_trigger = no
			}
		}
	}

	chinese_high_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
                accessory = m_clothes_sec_tgp_chinese_nob_01
			}
		}
		weight = {
			base = 0
			court_fashion_level_5_modifier = { INPUT_PARAMETER = chinese }
			modifier = {
				add = 100
				is_merit_based_official = no
				portrait_high_nobles_trigger = {
					CULTURE_INPUT = chinese
				}
				is_independent_ruler = no				
				has_tgp_dlc_trigger = yes
			}
			modifier = {
				add = 100
				is_merit_based_official = no
				portrait_high_nobles_trigger = {
					CULTURE_INPUT = chinese
				}
				government_has_flag = government_is_celestial
				has_tgp_dlc_trigger = yes
			}			
		}
	}
	
	chinese_high_nobility_clothes_indepedent = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
                accessory = m_clothes_sec_tgp_chinese_nob_01
			}
		}
		weight = {
			base = 0
			court_fashion_level_5_modifier = { INPUT_PARAMETER = chinese }
			modifier = {
				add = 100
				is_merit_based_official = no
				portrait_high_nobles_trigger = {
					CULTURE_INPUT = chinese
				}
				NOT = {
					portrait_royalty_trigger = { 
                    CULTURE_INPUT = chinese
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = chinese
                    }
				}	
				is_independent_ruler = yes					
				has_tgp_dlc_trigger = yes
			}
		}
	}
	
	chinese_merit_rank_lower_blue_tang = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_01_m2
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }						
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }						
					}
				}
				has_tgp_dlc_trigger = yes
				merit_level <= 2
				#NOT = { exists = global_var:chinese_fashion_change }
                ##Tang
                portrait_era1_tang_trigger = yes  
			}
		}
	}

	chinese_merit_rank_mid_green_tang = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_01_m3
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				OR = {
					merit_level = 4
					merit_level = 3
				}
				#NOT = { exists = global_var:chinese_fashion_change }
                ##Tang
                portrait_era1_tang_trigger = yes  
			}
		}
	}

	chinese_merit_rank_upper_red_tang = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_01_m4
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				OR = {
					merit_level = 6
					merit_level = 5
				}
				#NOT = { exists = global_var:chinese_fashion_change }
                ##Tang
                portrait_era1_tang_trigger = yes  
			}
		}
	}

	chinese_merit_rank_top_purple_tang = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_01_m5
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				merit_level >= 7
				#NOT = { exists = global_var:chinese_fashion_change }
                ##Tang
                portrait_era1_tang_trigger = yes  
			}
		}
	}

	chinese_merit_rank_lower_blue_song = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_roy_01_m2
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				merit_level <= 2
				#exists = global_var:chinese_fashion_change
                OR = { ##Song			
					portrait_era2_song_trigger = yes
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }
			}
		}
	}

	chinese_merit_rank_mid_green_song = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_roy_01_m3
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				OR = {
					merit_level = 4
					merit_level = 3
				}
				#exists = global_var:chinese_fashion_change
                OR = { ##Song			
					portrait_era2_song_trigger = yes
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }
			}
		}
	}

	chinese_merit_rank_upper_red_song = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_roy_01_m4
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				OR = {
					merit_level = 6
					merit_level = 5
				}
				#exists = global_var:chinese_fashion_change
                OR = { ##Song			
					portrait_era2_song_trigger = yes
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }
			}
		}
	}

	chinese_merit_rank_top_purple_song = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_roy_01_m5
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				merit_level >= 7
				#exists = global_var:chinese_fashion_change
                OR = { ##Song			
					portrait_era2_song_trigger = yes
					portrait_era3_trigger = yes				
					portrait_era4_trigger = yes					
                }
			}
		}
	}

	chinese_merit_rank_lower_blue_ming = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_02_m2
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 200
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				merit_level <= 2
				culture = {
					has_cultural_era_or_later = culture_era_late_medieval
				}
			}
		}
	}

	chinese_merit_rank_mid_green_ming = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_02_m3
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 200
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				OR = {
					merit_level = 4
					merit_level = 3
				}
				culture = {
					has_cultural_era_or_later = culture_era_late_medieval
				}
			}
		}
	}

	chinese_merit_rank_upper_red_ming = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_02_m4
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 200
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				OR = {
					merit_level = 6
					merit_level = 5
				}
				culture = {
					has_cultural_era_or_later = culture_era_late_medieval
				}
			}
		}
	}

	chinese_merit_rank_top_purple_ming = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_02_m5
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 200
				is_merit_based_official = yes
				OR = {
					liege.culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
					culture = {
						has_clothing_gfx = chinese_clothing_gfx
						NOT = { has_clothing_gfx = korean_clothing_gfx }
					}
				}
				has_tgp_dlc_trigger = yes
				merit_level >= 7
				culture = {
					has_cultural_era_or_later = culture_era_late_medieval
				}
			}
		}
	}

	chinese_royalty_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_roy_01
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 90
				is_independent_ruler = no
				portrait_royalty_trigger = {
					CULTURE_INPUT = chinese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	chinese_imperial_royal_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				range = { 0.23 0.26 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 125
				is_merit_based_official = no
				NOT = {
					government_has_flag = government_is_celestial
				}			
				OR = {
					portrait_royalty_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = chinese
					}
				}
				NOT = {
					portrait_royalty_trigger = { 
                    CULTURE_INPUT = korean
                    }
				}
				NOT = {
					portrait_imperial_trigger = { 
                    CULTURE_INPUT = korean
                    }
				}				
				NOT = {
					primary_title ?= title:h_china
				}				
				has_tgp_dlc_trigger = yes
			}
			modifier = {
				add = 201
				portrait_epe_hegemony_trigger = {
					CULTURE_INPUT = chinese
				}
				NOT = {
					portrait_epe_hegemony_trigger = { 
                    CULTURE_INPUT = korean
                    }
				}				
				NOT = {
					primary_title ?= title:h_china
				}				
				has_tgp_dlc_trigger = yes
			}			
		}
	}
	
	chinese_imperial_clothes_tang = { # Intentionally included as free content
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_imp_02
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 221
				primary_title ?= title:h_china
				#NOT = { exists = global_var:chinese_fashion_change }
                ##Tang
                portrait_era1_tang_trigger = yes 
				has_tgp_dlc_trigger = yes				
			}
			modifier = {
				add = 120
				primary_title ?= title:h_china
				has_tgp_dlc_trigger = no
			}
		}
	}

	chinese_imperial_clothes_song = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_imp_01
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 221
				primary_title ?= title:h_china
				has_tgp_dlc_trigger = yes
				#exists = global_var:chinese_fashion_change
                OR = { ##Song			
					portrait_era2_song_trigger = yes
					portrait_era3_trigger = yes								
                }
			}
		}
	}
	
	chinese_imperial_clothes_ming = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_clothes
				accessory = m_clothes_sec_tgp_chinese_nob_02_ming_imp
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 221
				primary_title ?= title:h_china
				has_tgp_dlc_trigger = yes
				#exists = global_var:chinese_fashion_change
                OR = { ##Ming					
					portrait_era4_trigger = yes					
                }
			}
		}
	}	
####################################################################################################
##################
###Han Chinese tarim basin/Guiyi circuit
##################
####################################################################################################

####Han Chinese Tarim Basin
    han_guiyi_circuit_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.43 0.48 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 120
                portrait_mayor_trigger = {
                    CULTURE_INPUT = epe_guiyi_circuit_chinese
                }
				has_fp3_dlc_trigger = yes
				
            }
        }
    }

    han_guiyi_circuit_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.43 0.48 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = epe_guiyi_circuit_chinese } 
            modifier = {
                add = 100
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_guiyi_circuit_chinese
                }
				has_fp3_dlc_trigger = yes				
				
            }
        }
    }

    han_guiyi_circuit_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = tgp_sino_iranian_clothes
                range = { 0.81 0.86 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = epe_guiyi_circuit_chinese } 
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_guiyi_circuit_chinese
                }
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_guiyi_circuit_chinese
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_guiyi_circuit_chinese
                    }
				}				
				has_fp3_dlc_trigger = yes
			
            }
        }
    }

	## TGP - Japanese ##

	japanese_commoner_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_clothes
                accessory = m_clothes_sec_tgp_japanese_com_01
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = japanese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	japanese_low_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_clothes
				range = { 0.05 0.11 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_low_nobles_trigger = {
					CULTURE_INPUT = japanese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	japanese_high_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_clothes
				range = { 0.13 0.20 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_high_nobles_trigger = {
					CULTURE_INPUT = japanese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}
	
	japanese_high_nobility_clothes_other_goverments = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_clothes
				range = { 0.13 0.20 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100			
				portrait_high_nobles_trigger_japanese = {
					CULTURE_INPUT = japanese
				}
                OR = { 			
					government_has_flag = government_is_feudal
					government_has_flag = government_is_clan			
					government_has_flag = government_is_tribal				
                }				
				has_tgp_dlc_trigger = yes
			}
		}
	}	

	japanese_royalty_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_clothes
                accessory = m_clothes_sec_tgp_japanese_roy_01
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_royalty_trigger = {
					CULTURE_INPUT = japanese
				}
				has_tgp_dlc_trigger = yes
			}
			modifier = {
				add = 151
				government_is_japanese_trigger = yes
				tgp_is_ceremonial_regent_trigger = yes # Not 'actual' ruler
				has_tgp_dlc_trigger = yes
			}
		}
	}

	japanese_imperial_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_clothes
				range = { 0.31 0.47 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_imperial_trigger = {
					CULTURE_INPUT = japanese
				}
				has_tgp_dlc_trigger = yes
			}
			modifier = {
				add = 1000
				has_title = title:k_chrysanthemum_throne
				portrait_imperial_nobles_headgear_trigger = {
					CULTURE_INPUT = japanese
				}
			}
		}
	}

	## TGP - Korean ##

	korean_commoner_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_korean_clothes
				range = { 0 0.10 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = korean
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	korean_low_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_korean_clothes
				range = { 0.13 0.21 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_low_nobles_trigger = {
					CULTURE_INPUT = korean
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	korean_high_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_korean_clothes
				range = { 0.36 0.42 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_high_nobles_trigger = {
					CULTURE_INPUT = korean
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	korean_imperial_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_korean_clothes
                accessory = m_clothes_sec_tgp_korean_imp_02
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_imperial_trigger = {
					CULTURE_INPUT = korean
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	## TGP - Khmer ##

	khmer_commoner_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_southeast_clothes
				range = { 0 0.21 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	khmer_low_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_southeast_clothes
				range = { 0.24 0.36 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_low_nobles_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	khmer_high_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_southeast_clothes
				range = { 0.39 0.64 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_high_nobles_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}
	
	khmer_royalty_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_southeast_clothes
				range = { 0.65 1 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_royalty_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}	

	## TGP - Ainu ##

	ainu_commoner_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_ainu_clothes
				range = { 0 0.30 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = ainu
				}
				has_tgp_dlc_trigger = yes
				has_cp7_dlc_trigger = no
			}
			modifier = {
				factor = 0
				portrait_emishi_clothing_trigger = yes
				has_cp7_dlc_trigger = yes
			}
		}
	}

	ainu_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_ainu_clothes
				range = { 0.34 1 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				OR = {
					portrait_low_nobles_trigger = {
						CULTURE_INPUT = ainu
					}	
					portrait_high_nobles_trigger = {
						CULTURE_INPUT = ainu
					}				
				}
				has_tgp_dlc_trigger = yes
				has_cp7_dlc_trigger = no
			}
			modifier = {
				factor = 0
				portrait_emishi_clothing_trigger = yes
				has_cp7_dlc_trigger = yes
			}
		}
	}	

	## CCP7 EMISHI AINU ##

	ccp7_emishi_commoners = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp7_emishi_nivkh_clothes
				range = { 0 0.20 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_commoner_no_mayors_trigger = {
					CULTURE_INPUT = emishi
				}
				has_cp7_dlc_trigger = yes
			}
		}
	}

	ccp7_emishi_low_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp7_emishi_nivkh_clothes
				range = { 0.23 0.38 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = emishi
					}
					portrait_mayor_trigger = {
						CULTURE_INPUT = emishi
					}
				}
				has_cp7_dlc_trigger = yes
			}
		}
	}

	ccp7_emishi_high_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp7_emishi_nivkh_clothes
				range = { 0.40 0.54 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			court_fashion_level_4_modifier = { INPUT_PARAMETER = emishi }
			modifier = {
				add = 100
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = emishi
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = emishi
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = emishi
                    }
				}				
				has_cp7_dlc_trigger = yes
			}
		}
	}

	ccp7_emishi_royalty = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp7_emishi_nivkh_clothes
				range = { 0.57 0.63 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			court_fashion_level_5_modifier = { INPUT_PARAMETER = emishi }
			modifier = {
				add = 100
				OR={
					portrait_royalty_trigger = {
						CULTURE_INPUT = emishi
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = emishi
					}
				}
				has_cp7_dlc_trigger = yes
			}
		}
	}

	## CCP7 NIVKH NANAI ##

	ccp7_nivkh_commoners = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp7_emishi_nivkh_clothes
				range = { 0.71 0.89 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 110
				portrait_commoner_clothing_trigger = {
					CULTURE_INPUT = nivkh
				}
				has_cp7_dlc_trigger = yes
			}
		}
	}

	ccp7_nivkh_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp7_emishi_nivkh_clothes
				range = { 0.91 1 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 110
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = nivkh
					}	
					#portrait_high_nobles_clothing_trigger = {
					#	CULTURE_INPUT = nivkh
					#}				
				}
	#			has_cp7_dlc_trigger = yes
			}
		}
	}
	
## CCP9 ##

	ccp9_liao_low_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
				accessory = m_clothes_epe_ccp9_lia_lo_nob_01	
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions tgp dlc 
			modifier = {
				add = 120
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = khitan
				}
				has_cp9_dlc_trigger = yes			
			}
		   #####################################################
			modifier = {
				add = 120
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = khitan
				}				
				has_cp9_dlc_trigger = yes			
			}
		}
	}	

	ccp9_liao_high_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
				accessory = m_clothes_epe_ccp9_lia_hi_nob_01	
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions tgp dlc 
			modifier = {
				add = 120
				OR = {
					court_fashion_level_5_trigger = {
						CULTURE_INPUT = khitan
					}
					court_fashion_level_5_trigger = {
						CULTURE_INPUT = jurchen
					}
				}
				has_cp9_dlc_trigger = yes			
			}
		   #####################################################
			modifier = {
				add = 120
				OR = {
					portrait_high_nobles_clothing_trigger = {
						CULTURE_INPUT = khitan
					}
					portrait_high_nobles_clothing_trigger = {
						CULTURE_INPUT = jurchen
					}
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = khitan
					}
				}	
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = khitan
					}
				}				
				has_cp9_dlc_trigger = yes			
			}
		}
	}	

	ccp9_liao_royalty_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
				accessory = m_clothes_epe_ccp9_lia_roy_01	
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = khitan
					}
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = jurchen
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = jurchen
					}					
				}
				has_cp9_dlc_trigger = yes
			}
		}
	}

	ccp9_liao_imperial_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
				accessory = m_clothes_epe_ccp9_lia_imp_01	
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 120
				OR = {
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = khitan
					}

				}
				has_cp9_dlc_trigger = yes
			}
		}
	}
	
	ccp9_dali_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
				range = { 0.28 0.37 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 500
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = dali
				}
				highest_held_title_tier >= tier_kingdom
				has_cp9_dlc_trigger = yes
			}
		}
	}	

	ccp9_uyghur_low_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                accessory = f_clothes_ccp9_epe_uyghur_lo_nob_01
                type = female
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions non tgp dlc
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}								
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes
				has_tgp_dlc_trigger = no					
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}							
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes
				has_tgp_dlc_trigger = no					
			}			
			
		   #####################################################
		   ####Court fashions tgp dlc 
			modifier = {
				add = 50
				court_fashion_level_4_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					court_fashion_level_4_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes
				has_tgp_dlc_trigger = yes				
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_low_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}				
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes
				has_tgp_dlc_trigger = yes				
			}
		}
	}
	
	ccp9_uyghur_high_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                accessory = f_clothes_ccp9_epe_uyghur_hi_nob_01
                type = female
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions non tgp dlc 
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}					
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes				
				has_tgp_dlc_trigger = no
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}	
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}					
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}					
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes				
				has_tgp_dlc_trigger = no
			}			
			
		   #####################################################
		   ####Court fashions tgp dlc 
			modifier = {
				add = 50
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					court_fashion_level_5_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}					
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes				
				has_tgp_dlc_trigger = yes
			}
		   #####################################################
			modifier = {
				add = 50
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}	
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}					
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = epe_uyghur
                    }
				}					
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes				
				has_tgp_dlc_trigger = yes
			}
		}
	}

	ccp9_uyghur_royalty_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                accessory = f_clothes_ccp9_epe_uyghur_roy_nob_01
                type = female
			}
		}
		weight = {
			base = 0
			
		   #####################################################
		   ####non tgp dlc 			
			modifier = {
				add = 120
				portrait_royalty_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}	
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes				
				has_tgp_dlc_trigger = no				
			
			}			
		   #####################################################
		   ####tgp dlc 			
			modifier = {
				add = 120
				portrait_royalty_clothing_trigger = {
					CULTURE_INPUT = epe_uyghur
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = epe_gokalpbags
					}
				}	
				is_female = yes # Currently we only have female Uyghur clothes, remove this line if we add male ones
				has_cp9_dlc_trigger = yes				
				has_tgp_dlc_trigger = yes
				prestige_level <= 4
                OR = {
                    portrait_era1_trigger = yes  					
                    portrait_era2_trigger = yes  				 
                }				
			
			}
		}
	}

	ccp9_tangut_nobility_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                accessory = f_clothes_ccp9_tan_nob_01
                type = female
			}
		}
		weight = {
			base = 0
		   #####################################################
		   ####Court fashions tgp dlc 
			modifier = {
				add = 80
				court_fashion_level_5_trigger = {
					CULTURE_INPUT = tangut
				}				
				has_cp9_dlc_trigger = yes				
			}			
			modifier = {
				add = 80
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = tangut
				}
				NOT = {
					portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = tangut
                    }
				}
				NOT = {
					portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = tangut
                    }
				}					
				has_cp9_dlc_trigger = yes
			}
		}
	}
	
	ccp9_tangut_royalty_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                accessory = f_clothes_ccp9_tan_roy_01
                type = female
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 130
				OR={
					portrait_high_nobles_clothing_trigger = {
						CULTURE_INPUT = tangut
					}
					portrait_imperial_clothing_trigger = {
						CULTURE_INPUT = tangut
					}
				}
				has_cp9_dlc_trigger = yes
				is_female = yes
			}
			modifier = {
				add = 130
				portrait_high_nobles_clothing_trigger = {
					CULTURE_INPUT = tangut
				}
				has_cp9_dlc_trigger = yes
				highest_held_title_tier < tier_empire
			}
		}
	}

	ccp9_ming_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = ccp9_celestial_court_clothes
                accessory = m_clothes_ccp9_min_nob_01
			}
		}
		weight = {
			base = 0
			modifier = { #For the ming dynasty emperor
				add = 201
				OR = {
					portrait_high_nobles_clothing_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_royalty_clothing_trigger = {
						CULTURE_INPUT = chinese
					}
				}
				has_cp9_dlc_trigger = yes
				portrait_era4_trigger = yes
				OR = {
					highest_held_title_tier >= tier_kingdom
					is_female = yes
				}
			}
		}
	}	
	
	####Western Spymaster
	western_spymaster_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = epe_spymaster_clothes
				accessory = male_clothes_epe_western_western_spymaster_01	
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 1				# Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = bust_clothes
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 200
				age > 17
				OR = {
					AND = {
						has_council_position = councillor_spymaster
						highest_held_title_tier < tier_county
					}
				}
				NOT = {
					portrait_wear_armor_trigger = yes
					OR = {
						has_government = theocracy_government
						has_court_position = court_physician_court_position
					}
				}				
				OR = {
					portrait_byzantine_clothing_trigger = yes
					portrait_western_clothing_trigger = yes
					portrait_epe_english_clothing_trigger = yes
					portrait_epe_gaelic_clothing_trigger = yes
					portrait_epe_georgian_clothing_trigger = yes
					portrait_epe_bulgarian_clothing_trigger = yes
					portrait_epe_armenian_clothing_trigger = yes
					portrait_epe_south_slav_clothing_trigger = yes
				}
			}
		}
	}	
	
	
	####MENA Spymaster
	mena_spymaster_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = epe_spymaster_clothes
				accessory = male_clothes_epe_mena_western_spymaster_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
				age > 17
				OR = {
					AND = {
						has_council_position = councillor_spymaster
						highest_held_title_tier < tier_county
					}
				}
				NOT = {
					portrait_wear_armor_trigger = yes
					OR = {
						has_government = theocracy_government
						has_court_position = court_physician_court_position
					}
				}				
				OR = {
					portrait_mena_clothing_trigger = yes
					portrait_afr_berber_clothing_trigger = yes
					portrait_dde_abbasid_clothing_trigger = yes	
					portrait_epe_bedouin_clothing_trigger = yes						
				}
				NOT = {
					portrait_epe_seljuk_clothing_trigger = yes
				}
				NOT = {
					portrait_fp3_iranian_clothing_trigger = yes
				}				
			}
		}
	}	
	
	####Northern Spymaster
	northern_spymaster_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = epe_spymaster_clothes
				accessory = male_clothes_epe_northern_spymaster_01	
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 1				# Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = bust_clothes
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 200
				age > 17
				OR = {
					AND = {
						has_council_position = councillor_spymaster
						highest_held_title_tier < tier_county
					}
				}
				NOT = {
					portrait_wear_armor_trigger = yes
					OR = {
						has_government = theocracy_government
						has_court_position = court_physician_court_position
					}
				}				
				OR = {
					portrait_northern_clothing_trigger = yes
					portrait_fp1_norse_clothing_trigger = yes
					portrait_epe_east_slav_clothing_trigger = yes	
					portrait_epe_balto_finnic_clothing_trigger = yes		
					portrait_epe_gaelic_clothing_trigger = yes	
				}
			}
		}
	}	


	####Persian Spymaster
	persian_spymaster_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = epe_spymaster_clothes
				accessory = m_clothes_epe_persian_spymaster_01	
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 1				# Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = bust_clothes
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 200
				age > 17
				OR = {
					AND = {
						has_council_position = councillor_spymaster
						highest_held_title_tier < tier_county
					}
				}
				NOT = {
					portrait_wear_armor_trigger = yes
					OR = {
						has_government = theocracy_government
						has_court_position = court_physician_court_position
					}
				}				
				OR = {
					portrait_fp3_iranian_clothing_trigger = yes
					portrait_epe_seljuk_clothing_trigger = yes
					AND = {
					  portrait_epe_eastern_turk_clothing_trigger = yes
					  portrait_epe_eastern_turk_muslim_clothing_trigger = yes
					}
					
				}
			}
		}
	}

	### TFE CUSTOM ENTRIES ###

    roman_commoners = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_nobility_01
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8
				template = bust_clothes
			}

		}
		weight = {
			base = 0
			modifier = {
				add = 40
				scope:highest_held_title_tier < tier_county
				trigger_if = {
					limit = { exists = this }
					NOR = {
						AND = {
							exists = primary_spouse
							primary_spouse = {
								highest_held_title_tier > tier_county
							}
						}
						AND = {
							has_government = republic_government
							primary_title.tier > 1
						}
						AND = { is_ruler = yes has_government = theocracy_government }
					}
				}
				culture = {
					has_cultural_pillar = heritage_latin
				}
			}
		}
	}

	roman_low_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_nobility_02
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8
				template = bust_clothes
			}

		}
		weight = {
			base = 0
			modifier = {
				add = 70
				exists = court_owner
				court_owner = {
					has_royal_court = yes
					amenity_level = { target = court_fashion value >= 4 }
				}
				culture = {
					has_cultural_pillar = heritage_latin
				}
			}
			modifier = {
				add = 70
				trigger_if = {
					limit = { exists = this }
					OR = {
						AND = {
							OR = {
								highest_held_title_tier = tier_county
								highest_held_title_tier = tier_duchy
							}
							NOR = {
								# has_dynasty = no
								AND = {
									has_government = republic_government
									primary_title.tier > 1
								}
								AND = { is_ruler = yes has_government = theocracy_government }
							}
							culture = {
								has_cultural_pillar = heritage_latin
							}
						}
						AND = {
							exists = primary_spouse
							OR = {
								is_ruler = no
								highest_held_title_tier = tier_barony
							}
							primary_spouse = {
								OR = {
									highest_held_title_tier = tier_county
									highest_held_title_tier = tier_duchy
								}
								NOR = {
									# has_dynasty = no
									AND = {
									has_government = republic_government
										primary_title.tier > 1
									}
									AND = { is_ruler = yes has_government = theocracy_government }
								}
								culture = {
									has_cultural_pillar = heritage_latin
								}
							}
						}
					}
				}
				trigger_else = {
					OR = {
						scope:highest_held_title_tier = tier_county
						scope:highest_held_title_tier = tier_duchy
					}
					culture = {
						has_cultural_pillar = heritage_latin
					}
				}
			}
		}
	}

	roman_high_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_nobility_03
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8
				template = bust_clothes
			}

		}

		weight = {
			base = 0
			modifier = {
				add = 300
				exists = court_owner
				court_owner = {
					has_royal_court = yes
					amenity_level = { target = court_fashion value = 5 }
				}
				culture = {
					OR = {
						has_cultural_pillar = heritage_latin
						has_cultural_pillar = heritage_hellenistic
					}
				}
			}
			modifier = {
				add = 300
				trigger_if = {
					limit = { exists = this }
					OR = {
						AND = {
							OR = {
								highest_held_title_tier >= tier_kingdom
								AND = {
									has_government = republic_government
									primary_title.tier > 1
								}
								AND = { is_ruler = yes has_government = theocracy_government }
							}
							NOT = { AND = { is_ruler = yes has_government = mercenary_government  } } # Blocked for mercenaries
							culture = {
								OR = {
									has_cultural_pillar = heritage_latin
									has_cultural_pillar = heritage_hellenistic
								}
							}
						}
						AND = {
							exists = primary_spouse
							OR = {
								is_ruler = no
								highest_held_title_tier = tier_barony
							}
							primary_spouse = {
								OR = {
									highest_held_title_tier >= tier_kingdom
									AND = {
									has_government = republic_government
										primary_title.tier > 1
									}
									AND = { is_ruler = yes has_government = theocracy_government }
								}
								culture = {
									OR = {
										has_cultural_pillar = heritage_latin
										has_cultural_pillar = heritage_hellenistic
									}
								}
							}
						}
					}
				}
				trigger_else = {
					scope:highest_held_title_tier > tier_county
					culture = {
						OR = {
							has_cultural_pillar = heritage_latin
							has_cultural_pillar = heritage_hellenistic
						}
					}
				}
			}
		}
	}

	roman_imperial = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_nobility_03
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8
				template = bust_clothes
			}
		}

		weight = {
			base = 0
			modifier = {
				add = 400
				OR = {
					highest_held_title_tier = tier_empire
					highest_held_title_tier = tier_hegemony
				}
				NOT = { AND = { is_ruler = yes has_government = mercenary_government } }
				culture = {
					OR = {
						has_cultural_pillar = heritage_latin
						has_cultural_pillar = heritage_hellenistic
					}
				}
			}
			modifier = {
				add = 400
				exists = primary_spouse
				OR = {
					is_ruler = no
					highest_held_title_tier = tier_barony
				}
				primary_spouse = {
					OR = {
						highest_held_title_tier = tier_empire
						highest_held_title_tier = tier_hegemony
					}
					culture = {
						OR = {
							has_cultural_pillar = heritage_latin
							has_cultural_pillar = heritage_hellenistic
						}
					}
				}
			}
		}
	}

	roman_toga = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = roman_senate_clothes
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8
				template = bust_clothes
			}

		}

		weight = {
			base = 0
			modifier = {
				add = 800
				OR = {
					has_trait = low_senator
					has_trait = senator
					has_trait = high_senator
				}
			}
		}
	}
	
	
}
