#ADVCM

create_advcm_lucas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = advcm_lucas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = advcm_lucas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = advcm_lucas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = advcm_lucas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Afeganistão - AFGHANISTAN

create_dost_mohammad_khan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = dost_mohammad_khan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = dost_mohammad_khan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = dost_mohammad_khan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = dost_mohammad_khan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BUK_nasrullah_khan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUK_nasrullah_khan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUK_nasrullah_khan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUK_nasrullah_khan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUK_nasrullah_khan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KAB_josiah_harlan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KAB_josiah_harlan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KAB_josiah_harlan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KAB_josiah_harlan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KAB_josiah_harlan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_afg_general_mohammed = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = afg_general_mohammed
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = afg_general_mohammed
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = afg_general_mohammed
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = afg_general_mohammed
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Algéria - ALGERIA

create_AIT_ahmed_al_mokrani = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AIT_ahmed_al_mokrani
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AIT_ahmed_al_mokrani
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AIT_ahmed_al_mokrani
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AIT_ahmed_al_mokrani
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AIT_mohamed_al_mokrani = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AIT_mohamed_al_mokrani
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AIT_mohamed_al_mokrani
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AIT_mohamed_al_mokrani
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AIT_mohamed_al_mokrani
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CON_ahmed_bey_ben_mohamed_cherif = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CON_ahmed_bey_ben_mohamed_cherif
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CON_ahmed_bey_ben_mohamed_cherif
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CON_ahmed_bey_ben_mohamed_cherif
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CON_ahmed_bey_ben_mohamed_cherif
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CON_ali_ben_aissa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CON_ali_ben_aissa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CON_ali_ben_aissa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CON_ali_ben_aissa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CON_ali_ben_aissa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MAS_abdelkader_el_djezairi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAS_abdelkader_el_djezairi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAS_abdelkader_el_djezairi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAS_abdelkader_el_djezairi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAS_abdelkader_el_djezairi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MAS_mustapha_el_djezairi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAS_mustapha_el_djezairi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAS_mustapha_el_djezairi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAS_mustapha_el_djezairi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAS_mustapha_el_djezairi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MAS_ahmed_bin_tayeb_bin_salem = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAS_ahmed_bin_tayeb_bin_salem
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAS_ahmed_bin_tayeb_bin_salem
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAS_ahmed_bin_tayeb_bin_salem
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAS_ahmed_bin_tayeb_bin_salem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUG_sultan_abd_al_rahman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUG_sultan_abd_al_rahman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUG_sultan_abd_al_rahman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUG_sultan_abd_al_rahman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUG_sultan_abd_al_rahman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUG_lalla_aisha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUG_lalla_aisha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUG_lalla_aisha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUG_lalla_aisha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUG_lalla_aisha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ald_general_nsoumer = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ald_general_nsoumer
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ald_general_nsoumer
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ald_general_nsoumer
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ald_general_nsoumer
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ald_general_mokrani = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ald_general_mokrani
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ald_general_mokrani
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ald_general_mokrani
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ald_general_mokrani
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Argentina - ARGENTINA

create_ARG_Juan_Manuel_de_Rosas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Juan_Manuel_de_Rosas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Juan_Manuel_de_Rosas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Juan_Manuel_de_Rosas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Juan_Manuel_de_Rosas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Justo_Jose_de_Urquiza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Justo_Jose_de_Urquiza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Justo_Jose_de_Urquiza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Justo_Jose_de_Urquiza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Justo_Jose_de_Urquiza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Angel_Pacheco = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Angel_Pacheco
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Angel_Pacheco
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Angel_Pacheco
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Angel_Pacheco
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Pascual_EchagU_e = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Pascual_EchagU_e
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Pascual_EchagU_e
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Pascual_EchagU_e
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Pascual_EchagU_e
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Alejandro_Heredia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Alejandro_Heredia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Alejandro_Heredia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Alejandro_Heredia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Alejandro_Heredia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Manuel_Vicente_Maza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Manuel_Vicente_Maza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Manuel_Vicente_Maza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Manuel_Vicente_Maza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Manuel_Vicente_Maza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Mariano_Medrano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Mariano_Medrano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Mariano_Medrano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Mariano_Medrano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Mariano_Medrano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_domingo_sarmiento = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_domingo_sarmiento
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_domingo_sarmiento
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_domingo_sarmiento
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_domingo_sarmiento
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_juan_del_campillo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_del_campillo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_del_campillo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_del_campillo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_del_campillo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_pedro_ferre = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pedro_ferre
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pedro_ferre
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pedro_ferre
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pedro_ferre
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_mariano_jose_de_escalada = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_mariano_jose_de_escalada
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_mariano_jose_de_escalada
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_mariano_jose_de_escalada
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_mariano_jose_de_escalada
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_leon_frederico_aneiros = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_leon_frederico_aneiros
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_leon_frederico_aneiros
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_leon_frederico_aneiros
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_leon_frederico_aneiros
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_uladislao_castellano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_uladislao_castellano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_uladislao_castellano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_uladislao_castellano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_uladislao_castellano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_mariano_espinosa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_mariano_espinosa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_mariano_espinosa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_mariano_espinosa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_mariano_espinosa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_pedro_zenteno = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pedro_zenteno
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pedro_zenteno
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pedro_zenteno
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pedro_zenteno
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_santiago_luis_copello = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_santiago_luis_copello
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_santiago_luis_copello
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_santiago_luis_copello
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_santiago_luis_copello
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_manuel_leiva = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_manuel_leiva
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_manuel_leiva
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_manuel_leiva
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_manuel_leiva
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_juan_maria_gutierrez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_maria_gutierrez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_maria_gutierrez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_maria_gutierrez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_maria_gutierrez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_aaron_castellanos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_aaron_castellanos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_aaron_castellanos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_aaron_castellanos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_aaron_castellanos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_pedro_antonio_echague = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pedro_antonio_echague
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pedro_antonio_echague
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pedro_antonio_echague
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pedro_antonio_echague
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_jose_hernandez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_jose_hernandez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_jose_hernandez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_jose_hernandez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_jose_hernandez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Gregorio_Araoz_de_Lamadrid = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Gregorio_Araoz_de_Lamadrid
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Gregorio_Araoz_de_Lamadrid
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Gregorio_Araoz_de_Lamadrid
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Gregorio_Araoz_de_Lamadrid
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_lucio_norberto_mansilla = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_lucio_norberto_mansilla
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_lucio_norberto_mansilla
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_lucio_norberto_mansilla
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_lucio_norberto_mansilla
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_William_Brown = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_William_Brown
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_William_Brown
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_William_Brown
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_William_Brown
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_bartolome_mitre = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_bartolome_mitre
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_bartolome_mitre
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_bartolome_mitre
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_bartolome_mitre
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_juan_andres_gelly_y_obes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_andres_gelly_y_obes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_andres_gelly_y_obes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_andres_gelly_y_obes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_andres_gelly_y_obes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_jose_felix_murature = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_jose_felix_murature
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_jose_felix_murature
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_jose_felix_murature
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_jose_felix_murature
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_pablo_ricchieri = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pablo_ricchieri
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pablo_ricchieri
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_pablo_ricchieri
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_pablo_ricchieri
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_nicanor_caceres = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_nicanor_caceres
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_nicanor_caceres
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_nicanor_caceres
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_nicanor_caceres
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_julio_de_vedia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_julio_de_vedia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_julio_de_vedia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_julio_de_vedia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_julio_de_vedia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_alejo_roca = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_alejo_roca
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_alejo_roca
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_alejo_roca
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_alejo_roca
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_Juan_Lavalle = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Juan_Lavalle
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Juan_Lavalle
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_Juan_Lavalle
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_Juan_Lavalle
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_juan_bautista_alberdi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_bautista_alberdi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_bautista_alberdi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_bautista_alberdi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_bautista_alberdi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_juan_bautista_bairoletto = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_bautista_bairoletto
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_bautista_bairoletto
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_juan_bautista_bairoletto
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_juan_bautista_bairoletto
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ARG_virginia_bolten = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_virginia_bolten
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_virginia_bolten
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ARG_virginia_bolten
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ARG_virginia_bolten
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Austrália - AUSTRALIA

create_AST_john_hindmarsh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_john_hindmarsh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_john_hindmarsh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_john_hindmarsh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_john_hindmarsh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_robert_gouger = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_robert_gouger
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_robert_gouger
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_robert_gouger
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_robert_gouger
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_george_strickland_kensington = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_strickland_kensington
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_strickland_kensington
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_strickland_kensington
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_strickland_kensington
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_george_fife_angas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_fife_angas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_fife_angas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_fife_angas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_fife_angas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_charles_howard = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_charles_howard
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_charles_howard
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_charles_howard
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_charles_howard
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_william_light = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_light
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_light
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_light
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_light
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_james_stirling = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_james_stirling
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_james_stirling
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_james_stirling
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_james_stirling
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_george_fletcher_moore = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_fletcher_moore
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_fletcher_moore
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_fletcher_moore
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_fletcher_moore
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_rivett_bland = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_rivett_bland
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_rivett_bland
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_rivett_bland
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_rivett_bland
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_william_brockman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_brockman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_brockman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_brockman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_brockman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_george_arthur = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_arthur
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_arthur
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_arthur
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_arthur
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_george_augustus_robinson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_augustus_robinson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_augustus_robinson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_george_augustus_robinson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_george_augustus_robinson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_philip_palmer = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_philip_palmer
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_philip_palmer
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_philip_palmer
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_philip_palmer
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_richard_dry = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_richard_dry
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_richard_dry
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_richard_dry
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_richard_dry
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_michael_fenton = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_michael_fenton
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_michael_fenton
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_michael_fenton
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_michael_fenton
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_thomas_gregson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_thomas_gregson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_thomas_gregson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_thomas_gregson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_thomas_gregson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_richard_bourke = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_richard_bourke
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_richard_bourke
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_richard_bourke
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_richard_bourke
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_william_wentworth = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_wentworth
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_wentworth
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_wentworth
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_wentworth
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_samuel_marsden = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_samuel_marsden
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_samuel_marsden
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_samuel_marsden
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_samuel_marsden
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_john_plunkett = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_john_plunkett
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_john_plunkett
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_john_plunkett
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_john_plunkett
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_william_bland = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_bland
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_bland
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_bland
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_bland
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_alexander_berry = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_alexander_berry
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_alexander_berry
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_alexander_berry
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_alexander_berry
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_richard_jones = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_richard_jones
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_richard_jones
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_richard_jones
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_richard_jones
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AST_william_sandford = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_sandford
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_sandford
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AST_william_sandford
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AST_william_sandford
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Áustria - AUSTRIA

create_aus_ferdinand_I_habsburg_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_ferdinand_I_habsburg_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_ferdinand_I_habsburg_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_ferdinand_I_habsburg_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_ferdinand_I_habsburg_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_franz_josef_I_habsburg_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_franz_josef_I_habsburg_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_franz_josef_I_habsburg_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_franz_josef_I_habsburg_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_franz_josef_I_habsburg_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AUS_sigmund_freud = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AUS_sigmund_freud
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AUS_sigmund_freud
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AUS_sigmund_freud
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AUS_sigmund_freud
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AUS_emil_von_skoda = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AUS_emil_von_skoda
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AUS_emil_von_skoda
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AUS_emil_von_skoda
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AUS_emil_von_skoda
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AUS_michael_thonet = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AUS_michael_thonet
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AUS_michael_thonet
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AUS_michael_thonet
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AUS_michael_thonet
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_admiral_tegetthoff = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_admiral_tegetthoff
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_admiral_tegetthoff
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_admiral_tegetthoff
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_admiral_tegetthoff
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_admiral_archduke_friedrich = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_admiral_archduke_friedrich
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_admiral_archduke_friedrich
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_admiral_archduke_friedrich
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_admiral_archduke_friedrich
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_general_von_windisch_gratz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_windisch_gratz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_windisch_gratz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_windisch_gratz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_windisch_gratz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_general_von_hotzendorf = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_hotzendorf
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_hotzendorf
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_hotzendorf
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_hotzendorf
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_general_boroevic = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_boroevic
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_boroevic
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_boroevic
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_boroevic
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_general_von_benedek = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_benedek
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_benedek
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_benedek
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_benedek
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_aus_general_von_habsburg_lothringen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_habsburg_lothringen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_habsburg_lothringen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = aus_general_von_habsburg_lothringen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = aus_general_von_habsburg_lothringen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Bavária - BAVARIA

create_BAV_ludwig_i_von_bayern = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_ludwig_i_von_bayern
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_ludwig_i_von_bayern
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_ludwig_i_von_bayern
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_ludwig_i_von_bayern
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAV_maximillian_von_bayern = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_maximillian_von_bayern
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_maximillian_von_bayern
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_maximillian_von_bayern
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_maximillian_von_bayern
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAV_friedrich_august_von_gise = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_friedrich_august_von_gise
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_friedrich_august_von_gise
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_friedrich_august_von_gise
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_friedrich_august_von_gise
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAV_joseph_anton_von_maffei = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_joseph_anton_von_maffei
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_joseph_anton_von_maffei
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_joseph_anton_von_maffei
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_joseph_anton_von_maffei
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAV_jakob_von_washington = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_jakob_von_washington
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_jakob_von_washington
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_jakob_von_washington
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_jakob_von_washington
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAV_karl_von_heideck = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_karl_von_heideck
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_karl_von_heideck
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_karl_von_heideck
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_karl_von_heideck
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAV_max_stirner = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_max_stirner
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_max_stirner
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAV_max_stirner
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAV_max_stirner
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_bav_general_von_wittelsbach = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = bav_general_von_wittelsbach
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = bav_general_von_wittelsbach
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = bav_general_von_wittelsbach
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = bav_general_von_wittelsbach
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_bav_general_von_der_tann = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = bav_general_von_der_tann
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = bav_general_von_der_tann
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = bav_general_von_der_tann
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = bav_general_von_der_tann
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Ceylon Britânico - BRITISH CEYLON

create_BCE_robert_wilmot_horton_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BCE_robert_wilmot_horton_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BCE_robert_wilmot_horton_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BCE_robert_wilmot_horton_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BCE_robert_wilmot_horton_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BCE_thomas_fletcher_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BCE_thomas_fletcher_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BCE_thomas_fletcher_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BCE_thomas_fletcher_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BCE_thomas_fletcher_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Bélgica - BELGIUM

create_BEL_leopold_saxe_coburg_gotha_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_leopold_saxe_coburg_gotha_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_leopold_saxe_coburg_gotha_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_leopold_saxe_coburg_gotha_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_leopold_saxe_coburg_gotha_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BEL_leopold_II_saxe_coburg_gotha_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_leopold_II_saxe_coburg_gotha_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_leopold_II_saxe_coburg_gotha_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_leopold_II_saxe_coburg_gotha_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_leopold_II_saxe_coburg_gotha_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BEL_Joseph_van_Haverbeke = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Joseph_van_Haverbeke
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Joseph_van_Haverbeke
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Joseph_van_Haverbeke
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Joseph_van_Haverbeke
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BEL_Albert_Joseph_Goblet_d_Alviella = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Albert_Joseph_Goblet_d_Alviella
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Albert_Joseph_Goblet_d_Alviella
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Albert_Joseph_Goblet_d_Alviella
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Albert_Joseph_Goblet_d_Alviella
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BEL_Felix_de_Muelenaere = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Felix_de_Muelenaere
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Felix_de_Muelenaere
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Felix_de_Muelenaere
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Felix_de_Muelenaere
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BEL_Charles_de_Brouck_Ere = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Charles_de_Brouck_Ere
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Charles_de_Brouck_Ere
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_Charles_de_Brouck_Ere
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_Charles_de_Brouck_Ere
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BEL_John_Cockerill = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_John_Cockerill
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_John_Cockerill
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BEL_John_Cockerill
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BEL_John_Cockerill
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_bel_general_prisse = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = bel_general_prisse
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = bel_general_prisse
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = bel_general_prisse
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = bel_general_prisse
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Companhia Britânica das Índias Orientais - BRITISH COMPANY OF THE ORIENTAL INDIES

create_BIC_george_eden = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_george_eden
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_george_eden
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_george_eden
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_george_eden
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_haji_shariatullah = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_haji_shariatullah
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_haji_shariatullah
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_haji_shariatullah
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_haji_shariatullah
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_radhakanta_deb = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_radhakanta_deb
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_radhakanta_deb
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_radhakanta_deb
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_radhakanta_deb
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_robert_grant = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_robert_grant
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_robert_grant
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_robert_grant
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_robert_grant
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_dwarkanath_tagore = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_dwarkanath_tagore
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_dwarkanath_tagore
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_dwarkanath_tagore
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_dwarkanath_tagore
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_prasanna_tagore = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_prasanna_tagore
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_prasanna_tagore
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_prasanna_tagore
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_prasanna_tagore
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_ramgopal_ghosh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_ramgopal_ghosh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_ramgopal_ghosh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_ramgopal_ghosh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_ramgopal_ghosh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_charles_canning = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_charles_canning
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_charles_canning
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_charles_canning
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_charles_canning
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_john_lawrence = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_john_lawrence
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_john_lawrence
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_john_lawrence
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_john_lawrence
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_muhsin_ad-din_ahmad = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_muhsin_ad-din_ahmad
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_muhsin_ad-din_ahmad
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_muhsin_ad-din_ahmad
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_muhsin_ad-din_ahmad
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_lakshmeshwar_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_lakshmeshwar_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_lakshmeshwar_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_lakshmeshwar_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_lakshmeshwar_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_narayan_lokhande = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_narayan_lokhande
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_narayan_lokhande
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_narayan_lokhande
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_narayan_lokhande
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_debendranath_tagore = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_debendranath_tagore
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_debendranath_tagore
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_debendranath_tagore
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_debendranath_tagore
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_dayananda_saraswati = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_dayananda_saraswati
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_dayananda_saraswati
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_dayananda_saraswati
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_dayananda_saraswati
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_motilal_nehru = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_motilal_nehru
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_motilal_nehru
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_motilal_nehru
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_motilal_nehru
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_henry_petty-fitzmaurice = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_petty-fitzmaurice
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_petty-fitzmaurice
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_petty-fitzmaurice
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_petty-fitzmaurice
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_jawaharlal_nehru = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_jawaharlal_nehru
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_jawaharlal_nehru
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_jawaharlal_nehru
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_jawaharlal_nehru
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_gopal_gokhale = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_gopal_gokhale
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_gopal_gokhale
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_gopal_gokhale
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_gopal_gokhale
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_swami_vivkananda = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_swami_vivkananda
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_swami_vivkananda
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_swami_vivkananda
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_swami_vivkananda
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_jamshedji_tata = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_jamshedji_tata
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_jamshedji_tata
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_jamshedji_tata
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_jamshedji_tata
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_rabindranath_tagore = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_rabindranath_tagore
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_rabindranath_tagore
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_rabindranath_tagore
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_rabindranath_tagore
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_dadabhai_naoroji = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_dadabhai_naoroji
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_dadabhai_naoroji
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_dadabhai_naoroji
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_dadabhai_naoroji
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_amritlal_thakkar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_amritlal_thakkar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_amritlal_thakkar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_amritlal_thakkar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_amritlal_thakkar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_henry_fane = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_fane
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_fane
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_fane
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_fane
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_john_keane = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_john_keane
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_john_keane
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_john_keane
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_john_keane
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_robert_o_callaghan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_robert_o_callaghan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_robert_o_callaghan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_robert_o_callaghan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_robert_o_callaghan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_peregrine_maitland = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_peregrine_maitland
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_peregrine_maitland
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_peregrine_maitland
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_peregrine_maitland
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_william_elphinstone = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_william_elphinstone
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_william_elphinstone
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_william_elphinstone
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_william_elphinstone
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_henry_havelock = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_havelock
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_havelock
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_havelock
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_havelock
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_henry_godwin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_godwin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_godwin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_henry_godwin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_henry_godwin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_reginald_dyer = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_reginald_dyer
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_reginald_dyer
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_reginald_dyer
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_reginald_dyer
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_JOD_pratap_singh_of_idar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_JOD_pratap_singh_of_idar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_JOD_pratap_singh_of_idar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_JOD_pratap_singh_of_idar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_JOD_pratap_singh_of_idar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_john_wood = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_john_wood
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_john_wood
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_john_wood
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_john_wood
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_charles_malcolm = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_charles_malcolm
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_charles_malcolm
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_charles_malcolm
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_charles_malcolm
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_mohandas_karamchand_gandhi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_mohandas_karamchand_gandhi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_mohandas_karamchand_gandhi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_mohandas_karamchand_gandhi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_mohandas_karamchand_gandhi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_muhammad_ali_jinnah = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_muhammad_ali_jinnah
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_muhammad_ali_jinnah
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_muhammad_ali_jinnah
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_muhammad_ali_jinnah
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_bipin_chandra_pal = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bipin_chandra_pal
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bipin_chandra_pal
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bipin_chandra_pal
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bipin_chandra_pal
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_bal_gangadhar_tilak = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bal_gangadhar_tilak
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bal_gangadhar_tilak
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bal_gangadhar_tilak
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bal_gangadhar_tilak
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_lala_lajpat_rai = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_lala_lajpat_rai
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_lala_lajpat_rai
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_lala_lajpat_rai
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_lala_lajpat_rai
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_pandita_ramabai_sarasvati = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_pandita_ramabai_sarasvati
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_pandita_ramabai_sarasvati
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_pandita_ramabai_sarasvati
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_pandita_ramabai_sarasvati
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_bhagat_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bhagat_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bhagat_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bhagat_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bhagat_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_sarojini_naidu = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_sarojini_naidu
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_sarojini_naidu
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_sarojini_naidu
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_sarojini_naidu
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_maulana_azad = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_maulana_azad
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_maulana_azad
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_maulana_azad
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_maulana_azad
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_udham_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_udham_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_udham_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_udham_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_udham_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_mithuben_petit = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_mithuben_petit
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_mithuben_petit
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_mithuben_petit
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_mithuben_petit
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_bhimrao_ramji_ambedkar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bhimrao_ramji_ambedkar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bhimrao_ramji_ambedkar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_bhimrao_ramji_ambedkar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_bhimrao_ramji_ambedkar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_erode_venkatappa_ramasamy = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_erode_venkatappa_ramasamy
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_erode_venkatappa_ramasamy
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_erode_venkatappa_ramasamy
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_erode_venkatappa_ramasamy
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_amy_carmichael = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_amy_carmichael
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_amy_carmichael
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_amy_carmichael
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_amy_carmichael
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_usha_mehta = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_usha_mehta
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_usha_mehta
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_usha_mehta
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_usha_mehta
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_jiddu_krishnamurti = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_jiddu_krishnamurti
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_jiddu_krishnamurti
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_jiddu_krishnamurti
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_jiddu_krishnamurti
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_khudiram_bose = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_khudiram_bose
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_khudiram_bose
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_khudiram_bose
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_khudiram_bose
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIC_damodar_hari_chapekar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_damodar_hari_chapekar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_damodar_hari_chapekar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIC_damodar_hari_chapekar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIC_damodar_hari_chapekar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Bolívia - BOLIVIA

create_BOL_Andres_de_Santa_Cruz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Andres_de_Santa_Cruz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Andres_de_Santa_Cruz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Andres_de_Santa_Cruz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Andres_de_Santa_Cruz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_Mariano_Enrique_Calvo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Mariano_Enrique_Calvo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Mariano_Enrique_Calvo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Mariano_Enrique_Calvo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Mariano_Enrique_Calvo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_Casimiro_Olaneta = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Casimiro_Olaneta
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Casimiro_Olaneta
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Casimiro_Olaneta
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Casimiro_Olaneta
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_Jose_Miguel_de_Velasco = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Jose_Miguel_de_Velasco
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Jose_Miguel_de_Velasco
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Jose_Miguel_de_Velasco
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Jose_Miguel_de_Velasco
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_jose_maria_de_acha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_jose_maria_de_acha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_jose_maria_de_acha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_jose_maria_de_acha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_jose_maria_de_acha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_jose_maria_linares = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_jose_maria_linares
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_jose_maria_linares
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_jose_maria_linares
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_jose_maria_linares
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_casimiro_corral = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_casimiro_corral
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_casimiro_corral
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_casimiro_corral
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_casimiro_corral
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_tomas_frias = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_tomas_frias
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_tomas_frias
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_tomas_frias
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_tomas_frias
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_aniceto_arce = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_aniceto_arce
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_aniceto_arce
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_aniceto_arce
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_aniceto_arce
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_ismael_montes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_ismael_montes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_ismael_montes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_ismael_montes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_ismael_montes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_severo_fernandez_alonso = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_severo_fernandez_alonso
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_severo_fernandez_alonso
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_severo_fernandez_alonso
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_severo_fernandez_alonso
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_simon_iturri_patino = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_simon_iturri_patino
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_simon_iturri_patino
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_simon_iturri_patino
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_simon_iturri_patino
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_francisco_maria_del_granado = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_francisco_maria_del_granado
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_francisco_maria_del_granado
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_francisco_maria_del_granado
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_francisco_maria_del_granado
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_nicolas_armentia_y_ugarte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_nicolas_armentia_y_ugarte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_nicolas_armentia_y_ugarte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_nicolas_armentia_y_ugarte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_nicolas_armentia_y_ugarte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_bautista_saavedra_mallea = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_bautista_saavedra_mallea
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_bautista_saavedra_mallea
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_bautista_saavedra_mallea
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_bautista_saavedra_mallea
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_gabriel_gosalvez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_gabriel_gosalvez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_gabriel_gosalvez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_gabriel_gosalvez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_gabriel_gosalvez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_Jose_Ballivian = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Jose_Ballivian
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Jose_Ballivian
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Jose_Ballivian
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Jose_Ballivian
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_Francisco_Burdett_O_Connor = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Francisco_Burdett_O_Connor
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Francisco_Burdett_O_Connor
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_Francisco_Burdett_O_Connor
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_Francisco_Burdett_O_Connor
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_otto_philipp_braun = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_otto_philipp_braun
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_otto_philipp_braun
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_otto_philipp_braun
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_otto_philipp_braun
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_manuel_isidoro_belzu = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_manuel_isidoro_belzu
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_manuel_isidoro_belzu
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_manuel_isidoro_belzu
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_manuel_isidoro_belzu
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_mariano_melgarejo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_mariano_melgarejo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_mariano_melgarejo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_mariano_melgarejo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_mariano_melgarejo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_hilarion_daza_groselle = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_hilarion_daza_groselle
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_hilarion_daza_groselle
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_hilarion_daza_groselle
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_hilarion_daza_groselle
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_eliodoro_camacho = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_eliodoro_camacho
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_eliodoro_camacho
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_eliodoro_camacho
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_eliodoro_camacho
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_jose_manuel_pando = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_jose_manuel_pando
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_jose_manuel_pando
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_jose_manuel_pando
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_jose_manuel_pando
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_narciso_campero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_narciso_campero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_narciso_campero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_narciso_campero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_narciso_campero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BOL_andres_ibanez_justiniano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_andres_ibanez_justiniano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_andres_ibanez_justiniano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BOL_andres_ibanez_justiniano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BOL_andres_ibanez_justiniano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Brasil - BRAZIL

create_BRZ_emperor_pedro_02 = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_emperor_pedro_02
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_emperor_pedro_02
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_emperor_pedro_02
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_emperor_pedro_02
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = yes
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_brz_isabel_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_isabel_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_isabel_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_isabel_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_isabel_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_diogo_antonio_feijo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_diogo_antonio_feijo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_diogo_antonio_feijo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_diogo_antonio_feijo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_diogo_antonio_feijo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_bernardo_pereira_de_vasconcelos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_bernardo_pereira_de_vasconcelos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_bernardo_pereira_de_vasconcelos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_bernardo_pereira_de_vasconcelos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_bernardo_pereira_de_vasconcelos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_martim_francisco_ribeiro_de_andrada = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_martim_francisco_ribeiro_de_andrada
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_martim_francisco_ribeiro_de_andrada
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_martim_francisco_ribeiro_de_andrada
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_martim_francisco_ribeiro_de_andrada
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_januario_da_cunha_barbosa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_januario_da_cunha_barbosa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_januario_da_cunha_barbosa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_januario_da_cunha_barbosa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_januario_da_cunha_barbosa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_nicolau_pereira_de_campos_vergueiro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_nicolau_pereira_de_campos_vergueiro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_nicolau_pereira_de_campos_vergueiro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_nicolau_pereira_de_campos_vergueiro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_nicolau_pereira_de_campos_vergueiro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_aureliano_de_sousa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_aureliano_de_sousa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_aureliano_de_sousa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_aureliano_de_sousa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_aureliano_de_sousa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_joao_paulo_dos_santos_barretto = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joao_paulo_dos_santos_barretto
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joao_paulo_dos_santos_barretto
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joao_paulo_dos_santos_barretto
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joao_paulo_dos_santos_barretto
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_getulio_vargas_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_getulio_vargas_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_getulio_vargas_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_getulio_vargas_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_getulio_vargas_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_benjamin_constant = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_benjamin_constant
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_benjamin_constant
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_benjamin_constant
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_benjamin_constant
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_ruy_barbosa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_ruy_barbosa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_ruy_barbosa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_ruy_barbosa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_ruy_barbosa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_prudente_de_morais = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_prudente_de_morais
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_prudente_de_morais
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_prudente_de_morais
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_prudente_de_morais
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_quintino_bocaiuva = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_quintino_bocaiuva
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_quintino_bocaiuva
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_quintino_bocaiuva
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_quintino_bocaiuva
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_campos_sales = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_campos_sales
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_campos_sales
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_campos_sales
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_campos_sales
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_euclides_da_cunha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_euclides_da_cunha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_euclides_da_cunha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_euclides_da_cunha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_euclides_da_cunha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_francisco_escobar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_francisco_escobar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_francisco_escobar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_francisco_escobar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_francisco_escobar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_joaquim_nabuco = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joaquim_nabuco
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joaquim_nabuco
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joaquim_nabuco
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joaquim_nabuco
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_julio_de_castilhos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_julio_de_castilhos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_julio_de_castilhos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_julio_de_castilhos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_julio_de_castilhos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_rodriguez_alves = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_rodriguez_alves
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_rodriguez_alves
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_rodriguez_alves
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_rodriguez_alves
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_epitacio_pessoa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_epitacio_pessoa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_epitacio_pessoa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_epitacio_pessoa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_epitacio_pessoa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_astrojildo_pereira = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_astrojildo_pereira
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_astrojildo_pereira
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_astrojildo_pereira
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_astrojildo_pereira
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_irineu_evangelista_de_sousa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_irineu_evangelista_de_sousa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_irineu_evangelista_de_sousa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_irineu_evangelista_de_sousa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_irineu_evangelista_de_sousa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_francisco_sabino = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_francisco_sabino
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_francisco_sabino
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_francisco_sabino
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_francisco_sabino
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_virgulino_ferreira = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_virgulino_ferreira
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_virgulino_ferreira
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_virgulino_ferreira
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_virgulino_ferreira
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_jesuino_brilliant = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_jesuino_brilliant
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_jesuino_brilliant
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_jesuino_brilliant
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_jesuino_brilliant
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_anesia_cauacu = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_anesia_cauacu
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_anesia_cauacu
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_anesia_cauacu
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_anesia_cauacu
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_plinio_salgado = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_plinio_salgado
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_plinio_salgado
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_plinio_salgado
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_plinio_salgado
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_antonio_conselheiro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_antonio_conselheiro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_antonio_conselheiro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_antonio_conselheiro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_antonio_conselheiro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_jose_oiticica = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_jose_oiticica
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_jose_oiticica
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_jose_oiticica
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_jose_oiticica
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_luis_carlos_prestes_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_luis_carlos_prestes_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_luis_carlos_prestes_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_luis_carlos_prestes_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_luis_carlos_prestes_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_pedro_de_alcantara_bellegarde = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_pedro_de_alcantara_bellegarde
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_pedro_de_alcantara_bellegarde
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_pedro_de_alcantara_bellegarde
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_pedro_de_alcantara_bellegarde
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_pierre_labatut = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_pierre_labatut
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_pierre_labatut
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_pierre_labatut
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_pierre_labatut
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_john_grenfell = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_john_grenfell
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_john_grenfell
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_john_grenfell
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_john_grenfell
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_deodoro_da_fonseca = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_deodoro_da_fonseca
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_deodoro_da_fonseca
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_deodoro_da_fonseca
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_deodoro_da_fonseca
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_floriano_peixoto = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_floriano_peixoto
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_floriano_peixoto
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_floriano_peixoto
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_floriano_peixoto
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_manuel_marques_de_sousa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_manuel_marques_de_sousa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_manuel_marques_de_sousa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_manuel_marques_de_sousa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_manuel_marques_de_sousa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_joaquim_marques_lisboa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joaquim_marques_lisboa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joaquim_marques_lisboa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joaquim_marques_lisboa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joaquim_marques_lisboa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_francisco_barroso_da_silva = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_francisco_barroso_da_silva
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_francisco_barroso_da_silva
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_francisco_barroso_da_silva
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_francisco_barroso_da_silva
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_manuel_luis_osorio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_manuel_luis_osorio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_manuel_luis_osorio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_manuel_luis_osorio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_manuel_luis_osorio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_joaquim_jose_inacio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joaquim_jose_inacio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joaquim_jose_inacio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_joaquim_jose_inacio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_joaquim_jose_inacio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_custodio_de_melo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_custodio_de_melo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_custodio_de_melo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_custodio_de_melo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_custodio_de_melo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BRZ_hermes_da_fonseca = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_hermes_da_fonseca
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_hermes_da_fonseca
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BRZ_hermes_da_fonseca
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BRZ_hermes_da_fonseca
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PNI_bento_goncalves_da_silva = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PNI_bento_goncalves_da_silva
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PNI_bento_goncalves_da_silva
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PNI_bento_goncalves_da_silva
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PNI_bento_goncalves_da_silva
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PNI_antonio_de_sousa_neto = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PNI_antonio_de_sousa_neto
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PNI_antonio_de_sousa_neto
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PNI_antonio_de_sousa_neto
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PNI_antonio_de_sousa_neto
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRA_eduardo_angelim = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRA_eduardo_angelim
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRA_eduardo_angelim
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRA_eduardo_angelim
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRA_eduardo_angelim
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CTR_joaquim_neves = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CTR_joaquim_neves
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CTR_joaquim_neves
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CTR_joaquim_neves
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CTR_joaquim_neves
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CTR_vincente_cordiero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CTR_vincente_cordiero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CTR_vincente_cordiero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CTR_vincente_cordiero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CTR_vincente_cordiero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CTR_david_canabarro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CTR_david_canabarro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CTR_david_canabarro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CTR_david_canabarro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CTR_david_canabarro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRA_Manuel_Lopes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRA_Manuel_Lopes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRA_Manuel_Lopes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRA_Manuel_Lopes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRA_Manuel_Lopes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_brz_admiral_inacio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_admiral_inacio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_admiral_inacio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_admiral_inacio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_admiral_inacio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_brz_admiral_tamandare = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_admiral_tamandare
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_admiral_tamandare
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_admiral_tamandare
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_admiral_tamandare
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_brz_general_alves_de_lima_e_silva = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_general_alves_de_lima_e_silva
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_general_alves_de_lima_e_silva
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_general_alves_de_lima_e_silva
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_general_alves_de_lima_e_silva
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Bulgaria - BULGARIA

create_BUL_alexander_i = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_alexander_i
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_alexander_i
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_alexander_i
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_alexander_i
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BUL_ferdinand_i = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_ferdinand_i
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_ferdinand_i
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_ferdinand_i
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_ferdinand_i
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BUL_boris_iii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_boris_iii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_boris_iii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_boris_iii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_boris_iii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BUL_stefan_stambolov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_stefan_stambolov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_stefan_stambolov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUL_stefan_stambolov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUL_stefan_stambolov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Burma - BURMA

create_BUR_bagyidaw_konbaung = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUR_bagyidaw_konbaung
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUR_bagyidaw_konbaung
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUR_bagyidaw_konbaung
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUR_bagyidaw_konbaung
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BUR_tharrawaddy_konbaung = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUR_tharrawaddy_konbaung
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUR_tharrawaddy_konbaung
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUR_tharrawaddy_konbaung
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUR_tharrawaddy_konbaung
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Canadá - CANADA

create_HBC_george_simpson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HBC_george_simpson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HBC_george_simpson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HBC_george_simpson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HBC_george_simpson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NBS_archibald_campbell = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NBS_archibald_campbell
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NBS_archibald_campbell
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NBS_archibald_campbell
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NBS_archibald_campbell
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NVS_colin_campbell = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NVS_colin_campbell
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NVS_colin_campbell
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NVS_colin_campbell
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NVS_colin_campbell
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ONT_francis_bond_head = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_francis_bond_head
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_francis_bond_head
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_francis_bond_head
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_francis_bond_head
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ONT_robert_baldwin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_robert_baldwin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_robert_baldwin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_robert_baldwin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_robert_baldwin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ONT_john_colborne = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_john_colborne
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_john_colborne
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_john_colborne
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_john_colborne
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ONT_william_lyon_mackenzie = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_william_lyon_mackenzie
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_william_lyon_mackenzie
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ONT_william_lyon_mackenzie
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ONT_william_lyon_mackenzie
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_QUE_archibald_acheson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = QUE_archibald_acheson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = QUE_archibald_acheson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = QUE_archibald_acheson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = QUE_archibald_acheson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_QUE_louis_joseph_papineau = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = QUE_louis_joseph_papineau
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = QUE_louis_joseph_papineau
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = QUE_louis_joseph_papineau
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = QUE_louis_joseph_papineau
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ORG_john_mcloughlin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_john_mcloughlin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_john_mcloughlin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_john_mcloughlin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_john_mcloughlin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ORG_ewing_young = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_ewing_young
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_ewing_young
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_ewing_young
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_ewing_young
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ORG_jason_lee = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_jason_lee
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_jason_lee
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_jason_lee
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_jason_lee
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ORG_william_slacum = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_william_slacum
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_william_slacum
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_william_slacum
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_william_slacum
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ORG_william_bailey = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_william_bailey
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_william_bailey
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_william_bailey
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_william_bailey
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ORG_ira_babcock = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_ira_babcock
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_ira_babcock
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_ira_babcock
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_ira_babcock
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ORG_etinne_lucier = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_etinne_lucier
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_etinne_lucier
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORG_etinne_lucier
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORG_etinne_lucier
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Circássia - CIRCASSIA

create_CIR_Ismail_Berzeg = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CIR_Ismail_Berzeg
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CIR_Ismail_Berzeg
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CIR_Ismail_Berzeg
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CIR_Ismail_Berzeg
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CIR_Hawduqo_Mansur = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CIR_Hawduqo_Mansur
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CIR_Hawduqo_Mansur
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CIR_Hawduqo_Mansur
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CIR_Hawduqo_Mansur
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CIR_Muhammad_Amin_Asiyalav = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CIR_Muhammad_Amin_Asiyalav
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CIR_Muhammad_Amin_Asiyalav
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CIR_Muhammad_Amin_Asiyalav
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CIR_Muhammad_Amin_Asiyalav
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHC_Shamil_Murid = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHC_Shamil_Murid
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHC_Shamil_Murid
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHC_Shamil_Murid
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHC_Shamil_Murid
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHC_Hadji_Murad = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHC_Hadji_Murad
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHC_Hadji_Murad
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHC_Hadji_Murad
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHC_Hadji_Murad
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#China - CHINA

create_chi_gong_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_gong_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_gong_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_gong_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_gong_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_daoguang_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_daoguang_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_daoguang_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_daoguang_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_daoguang_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_xianfeng_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_xianfeng_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_xianfeng_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_xianfeng_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_xianfeng_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_cixi_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_cixi_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_cixi_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_cixi_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_cixi_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_admiral_ding_ruchang = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_admiral_ding_ruchang
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_admiral_ding_ruchang
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_admiral_ding_ruchang
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_admiral_ding_ruchang
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_admiral_sa_chenbing = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_admiral_sa_chenbing
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_admiral_sa_chenbing
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_admiral_sa_chenbing
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_admiral_sa_chenbing
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_general_yuan_shikai = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_general_yuan_shikai
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_general_yuan_shikai
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_general_yuan_shikai
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_general_yuan_shikai
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_general_zeng_guofan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_general_zeng_guofan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_general_zeng_guofan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_general_zeng_guofan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_general_zeng_guofan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_general_sengge_rinchen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_general_sengge_rinchen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_general_sengge_rinchen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_general_sengge_rinchen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_general_sengge_rinchen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chi_sun_yat_sen_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_sun_yat_sen_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_sun_yat_sen_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chi_sun_yat_sen_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chi_sun_yat_sen_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHI_zhou_xuexi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHI_zhou_xuexi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHI_zhou_xuexi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHI_zhou_xuexi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHI_zhou_xuexi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHI_shen_baozhen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHI_shen_baozhen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHI_shen_baozhen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHI_shen_baozhen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHI_shen_baozhen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Chile - CHILE

create_CHL_Jose_Joaquin_Prieto = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Jose_Joaquin_Prieto
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Jose_Joaquin_Prieto
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Jose_Joaquin_Prieto
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Jose_Joaquin_Prieto
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_Manuel_Bulnes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Manuel_Bulnes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Manuel_Bulnes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Manuel_Bulnes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Manuel_Bulnes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_Diego_Portales = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Diego_Portales
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Diego_Portales
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Diego_Portales
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Diego_Portales
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_Joaquin_Tocornal = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Joaquin_Tocornal
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Joaquin_Tocornal
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Joaquin_Tocornal
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Joaquin_Tocornal
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_Manuel_Rengifo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Manuel_Rengifo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Manuel_Rengifo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Manuel_Rengifo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Manuel_Rengifo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_francisco_vicuna = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_francisco_vicuna
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_francisco_vicuna
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_francisco_vicuna
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_francisco_vicuna
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_Manuel_Vicuna_Larrain = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Manuel_Vicuna_Larrain
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Manuel_Vicuna_Larrain
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Manuel_Vicuna_Larrain
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Manuel_Vicuna_Larrain
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_manuel_montt = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_manuel_montt
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_manuel_montt
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_manuel_montt
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_manuel_montt
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_rafael_valentin_valdivieso = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_rafael_valentin_valdivieso
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_rafael_valentin_valdivieso
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_rafael_valentin_valdivieso
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_rafael_valentin_valdivieso
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_jose_manuel_balmaceda = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_manuel_balmaceda
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_manuel_balmaceda
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_manuel_balmaceda
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_manuel_balmaceda
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_eliodoro_yanez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_eliodoro_yanez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_eliodoro_yanez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_eliodoro_yanez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_eliodoro_yanez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_frederico_santa_maria_carrera = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_frederico_santa_maria_carrera
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_frederico_santa_maria_carrera
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_frederico_santa_maria_carrera
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_frederico_santa_maria_carrera
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_diego_barros_arana = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_diego_barros_arana
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_diego_barros_arana
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_diego_barros_arana
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_diego_barros_arana
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_carlos_ibanez_del_campo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_carlos_ibanez_del_campo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_carlos_ibanez_del_campo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_carlos_ibanez_del_campo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_carlos_ibanez_del_campo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_abdon_cifuentes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_abdon_cifuentes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_abdon_cifuentes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_abdon_cifuentes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_abdon_cifuentes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_jose_joaquin_perez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_joaquin_perez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_joaquin_perez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_joaquin_perez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_joaquin_perez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_eugenio_matte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_eugenio_matte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_eugenio_matte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_eugenio_matte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_eugenio_matte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_juan_luis_sanfuentes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_juan_luis_sanfuentes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_juan_luis_sanfuentes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_juan_luis_sanfuentes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_juan_luis_sanfuentes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_domingo_matte_mesias = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_domingo_matte_mesias
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_domingo_matte_mesias
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_domingo_matte_mesias
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_domingo_matte_mesias
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_jorge_gonzalez_von_marees = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jorge_gonzalez_von_marees
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jorge_gonzalez_von_marees
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jorge_gonzalez_von_marees
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jorge_gonzalez_von_marees
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_luis_recabarren = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_luis_recabarren
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_luis_recabarren
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_luis_recabarren
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_luis_recabarren
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_elias_lafertte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_elias_lafertte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_elias_lafertte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_elias_lafertte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_elias_lafertte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_Victorino_Garrido = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Victorino_Garrido
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Victorino_Garrido
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_Victorino_Garrido
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_Victorino_Garrido
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_manuel_garcia_banqueda = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_manuel_garcia_banqueda
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_manuel_garcia_banqueda
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_manuel_garcia_banqueda
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_manuel_garcia_banqueda
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_jose_maria_de_la_cruz_prieto = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_maria_de_la_cruz_prieto
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_maria_de_la_cruz_prieto
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_maria_de_la_cruz_prieto
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_maria_de_la_cruz_prieto
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_cornelio_saavedra_rodriguez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_cornelio_saavedra_rodriguez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_cornelio_saavedra_rodriguez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_cornelio_saavedra_rodriguez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_cornelio_saavedra_rodriguez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_jose_manuel_pinto_arias = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_manuel_pinto_arias
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_manuel_pinto_arias
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_manuel_pinto_arias
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_manuel_pinto_arias
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_gregorio_urrutia_venegas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_gregorio_urrutia_venegas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_gregorio_urrutia_venegas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_gregorio_urrutia_venegas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_gregorio_urrutia_venegas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_estanislao_del_canto_arteaga = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_estanislao_del_canto_arteaga
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_estanislao_del_canto_arteaga
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_estanislao_del_canto_arteaga
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_estanislao_del_canto_arteaga
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_emil_koerner_henze = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_emil_koerner_henze
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_emil_koerner_henze
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_emil_koerner_henze
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_emil_koerner_henze
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_eulogio_robles_pinochet = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_eulogio_robles_pinochet
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_eulogio_robles_pinochet
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_eulogio_robles_pinochet
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_eulogio_robles_pinochet
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_erasmo_escala_arriagada = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_erasmo_escala_arriagada
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_erasmo_escala_arriagada
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_erasmo_escala_arriagada
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_erasmo_escala_arriagada
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_manuel_blanco_encalada = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_manuel_blanco_encalada
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_manuel_blanco_encalada
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_manuel_blanco_encalada
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_manuel_blanco_encalada
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_roberto_simpson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_roberto_simpson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_roberto_simpson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_roberto_simpson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_roberto_simpson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_arturo_vial = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_arturo_vial
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_arturo_vial
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_arturo_vial
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_arturo_vial
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_patrick_lynch = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_patrick_lynch
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_patrick_lynch
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_patrick_lynch
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_patrick_lynch
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_joaquin_edwards_bello = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_joaquin_edwards_bello
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_joaquin_edwards_bello
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_joaquin_edwards_bello
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_joaquin_edwards_bello
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CHL_jose_victorino_lastarria = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_victorino_lastarria
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_victorino_lastarria
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CHL_jose_victorino_lastarria
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CHL_jose_victorino_lastarria
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_chl_admiral_prat = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chl_admiral_prat
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chl_admiral_prat
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = chl_admiral_prat
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = chl_admiral_prat
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Colômbia - COLOMBIA

create_CLM_Francisco_de_Paula_Santander = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Francisco_de_Paula_Santander
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Francisco_de_Paula_Santander
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Francisco_de_Paula_Santander
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Francisco_de_Paula_Santander
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_Jose_Marquez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Jose_Marquez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Jose_Marquez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Jose_Marquez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Jose_Marquez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_Pedro_Herran = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Pedro_Herran
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Pedro_Herran
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Pedro_Herran
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Pedro_Herran
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_Tomas_de_Mosquera = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Tomas_de_Mosquera
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Tomas_de_Mosquera
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Tomas_de_Mosquera
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Tomas_de_Mosquera
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_Manuel_Jose_de_Mosquera = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Manuel_Jose_de_Mosquera
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Manuel_Jose_de_Mosquera
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Manuel_Jose_de_Mosquera
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Manuel_Jose_de_Mosquera
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_Vicente_Azuero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Vicente_Azuero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Vicente_Azuero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_Vicente_Azuero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_Vicente_Azuero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_santiago_perez_manosalva = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_santiago_perez_manosalva
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_santiago_perez_manosalva
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_santiago_perez_manosalva
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_santiago_perez_manosalva
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_julio_arboleda = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_julio_arboleda
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_julio_arboleda
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_julio_arboleda
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_julio_arboleda
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_mariano_ospina_rodriguez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_mariano_ospina_rodriguez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_mariano_ospina_rodriguez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_mariano_ospina_rodriguez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_mariano_ospina_rodriguez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_miguel_antonio_caro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_miguel_antonio_caro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_miguel_antonio_caro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_miguel_antonio_caro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_miguel_antonio_caro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_rafael_nunez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_rafael_nunez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_rafael_nunez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_rafael_nunez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_rafael_nunez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_manuel_murillo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_manuel_murillo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_manuel_murillo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_manuel_murillo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_manuel_murillo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_rafaeal_uribe_uribe = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_rafaeal_uribe_uribe
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_rafaeal_uribe_uribe
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_rafaeal_uribe_uribe
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_rafaeal_uribe_uribe
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_aristides_fernandez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_aristides_fernandez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_aristides_fernandez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_aristides_fernandez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_aristides_fernandez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_victoriano_lorenzo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_victoriano_lorenzo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_victoriano_lorenzo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_victoriano_lorenzo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_victoriano_lorenzo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_carlos_eugenio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_carlos_eugenio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_carlos_eugenio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_carlos_eugenio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_carlos_eugenio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_maria_cano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_maria_cano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_maria_cano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_maria_cano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_maria_cano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_jose_camacho = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_camacho
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_camacho
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_camacho
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_camacho
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_jose_hilario_lopez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_hilario_lopez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_hilario_lopez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_hilario_lopez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_hilario_lopez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_jose_eusebio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_eusebio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_eusebio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_eusebio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_eusebio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_jose_maria_campo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_maria_campo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_maria_campo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_maria_campo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_maria_campo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_santos_acosta = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_santos_acosta
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_santos_acosta
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_santos_acosta
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_santos_acosta
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_ricardo_gaitan_obeso = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_ricardo_gaitan_obeso
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_ricardo_gaitan_obeso
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_ricardo_gaitan_obeso
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_ricardo_gaitan_obeso
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_guillermo_quintero_calderon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_guillermo_quintero_calderon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_guillermo_quintero_calderon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_guillermo_quintero_calderon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_guillermo_quintero_calderon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_alfredo_vasquez_cobo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_alfredo_vasquez_cobo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_alfredo_vasquez_cobo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_alfredo_vasquez_cobo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_alfredo_vasquez_cobo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_avelino_rosas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_avelino_rosas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_avelino_rosas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_avelino_rosas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_avelino_rosas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_jose_dolores_solano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_dolores_solano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_dolores_solano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_dolores_solano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_dolores_solano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_jose_maria_melo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_maria_melo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_maria_melo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_jose_maria_melo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_jose_maria_melo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_ambrosio_lopez_pinzon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_ambrosio_lopez_pinzon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_ambrosio_lopez_pinzon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_ambrosio_lopez_pinzon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_ambrosio_lopez_pinzon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CLM_luis_tejada_cano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_luis_tejada_cano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_luis_tejada_cano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CLM_luis_tejada_cano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CLM_luis_tejada_cano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Dai Nam - DAI NAM

create_DAI_minh_mang_nguyen_phuoc = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DAI_minh_mang_nguyen_phuoc
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DAI_minh_mang_nguyen_phuoc
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DAI_minh_mang_nguyen_phuoc
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DAI_minh_mang_nguyen_phuoc
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DAI_thieu_tri_nguyen_phuoc = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DAI_thieu_tri_nguyen_phuoc
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DAI_thieu_tri_nguyen_phuoc
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DAI_thieu_tri_nguyen_phuoc
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DAI_thieu_tri_nguyen_phuoc
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Krakow - KRAKOW

create_DEI_Frans_David_Cochius = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEI_Frans_David_Cochius
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEI_Frans_David_Cochius
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEI_Frans_David_Cochius
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEI_Frans_David_Cochius
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Dinamarca - DENMARK

create_DEN_frederik_von_oldenburg = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_frederik_von_oldenburg
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_frederik_von_oldenburg
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_frederik_von_oldenburg
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_frederik_von_oldenburg
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_christian_von_oldenburg = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christian_von_oldenburg
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christian_von_oldenburg
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christian_von_oldenburg
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christian_von_oldenburg
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_poul_christian_von_stemann = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_poul_christian_von_stemann
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_poul_christian_von_stemann
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_poul_christian_von_stemann
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_poul_christian_von_stemann
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_johan_christian_drewsen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_johan_christian_drewsen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_johan_christian_drewsen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_johan_christian_drewsen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_johan_christian_drewsen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_joakim_frederik_schouw = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_joakim_frederik_schouw
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_joakim_frederik_schouw
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_joakim_frederik_schouw
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_joakim_frederik_schouw
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_jacob_peter_mynster = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_jacob_peter_mynster
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_jacob_peter_mynster
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_jacob_peter_mynster
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_jacob_peter_mynster
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_hans_caspersen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_hans_caspersen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_hans_caspersen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_hans_caspersen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_hans_caspersen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_lauritz_nicolai_hvidt = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_lauritz_nicolai_hvidt
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_lauritz_nicolai_hvidt
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_lauritz_nicolai_hvidt
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_lauritz_nicolai_hvidt
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_frantz_von_bulow = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_frantz_von_bulow
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_frantz_von_bulow
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_frantz_von_bulow
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_frantz_von_bulow
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_christoph_von_krogh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christoph_von_krogh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christoph_von_krogh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christoph_von_krogh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christoph_von_krogh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_christian_de_meza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christian_de_meza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christian_de_meza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christian_de_meza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christian_de_meza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_andreas_schifter = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_andreas_schifter
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_andreas_schifter
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_andreas_schifter
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_andreas_schifter
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_arnold_peter_moller = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_arnold_peter_moller
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_arnold_peter_moller
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_arnold_peter_moller
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_arnold_peter_moller
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DEN_christian_hansen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christian_hansen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christian_hansen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DEN_christian_hansen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DEN_christian_hansen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_den_general_rye = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = den_general_rye
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = den_general_rye
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = den_general_rye
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = den_general_rye
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_den_admiral_suenson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = den_admiral_suenson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = den_admiral_suenson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = den_admiral_suenson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = den_admiral_suenson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Equador - ECUADOR

create_ECU_Vicente_Rocafuerte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_Vicente_Rocafuerte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_Vicente_Rocafuerte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_Vicente_Rocafuerte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_Vicente_Rocafuerte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_Juan_Jose_Flores = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_Juan_Jose_Flores
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_Juan_Jose_Flores
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_Juan_Jose_Flores
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_Juan_Jose_Flores
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_Pedro_Moncayo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_Pedro_Moncayo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_Pedro_Moncayo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_Pedro_Moncayo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_Pedro_Moncayo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_eloy_alfaro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_eloy_alfaro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_eloy_alfaro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_eloy_alfaro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_eloy_alfaro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_vicente_ramon_roca = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_vicente_ramon_roca
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_vicente_ramon_roca
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_vicente_ramon_roca
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_vicente_ramon_roca
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_diego_noboa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_diego_noboa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_diego_noboa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_diego_noboa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_diego_noboa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_frederico_gonzalez_suarez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_frederico_gonzalez_suarez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_frederico_gonzalez_suarez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_frederico_gonzalez_suarez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_frederico_gonzalez_suarez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_juan_montalvo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_juan_montalvo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_juan_montalvo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_juan_montalvo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_juan_montalvo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_manuel_de_ascazubi_y_matheu = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_manuel_de_ascazubi_y_matheu
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_manuel_de_ascazubi_y_matheu
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_manuel_de_ascazubi_y_matheu
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_manuel_de_ascazubi_y_matheu
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_alfredo_baquerizo_moreno = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_alfredo_baquerizo_moreno
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_alfredo_baquerizo_moreno
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_alfredo_baquerizo_moreno
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_alfredo_baquerizo_moreno
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_gabriel_garcia_moreno = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_gabriel_garcia_moreno
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_gabriel_garcia_moreno
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_gabriel_garcia_moreno
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_gabriel_garcia_moreno
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_francisco_aguirre_abad = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_francisco_aguirre_abad
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_francisco_aguirre_abad
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_francisco_aguirre_abad
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_francisco_aguirre_abad
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_ricardo_paredes_romero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_ricardo_paredes_romero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_ricardo_paredes_romero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_ricardo_paredes_romero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_ricardo_paredes_romero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_lizardo_garcia_sorroza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_lizardo_garcia_sorroza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_lizardo_garcia_sorroza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_lizardo_garcia_sorroza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_lizardo_garcia_sorroza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_flavio_alfaro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_flavio_alfaro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_flavio_alfaro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_flavio_alfaro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_flavio_alfaro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_antonio_elizalde = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_antonio_elizalde
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_antonio_elizalde
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_antonio_elizalde
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_antonio_elizalde
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_leonidas_plaza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_leonidas_plaza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_leonidas_plaza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_leonidas_plaza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_leonidas_plaza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_pedro_jacinto_montero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_pedro_jacinto_montero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_pedro_jacinto_montero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_pedro_jacinto_montero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_pedro_jacinto_montero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_juan_francisco_morales = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_juan_francisco_morales
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_juan_francisco_morales
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_juan_francisco_morales
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_juan_francisco_morales
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_jose_maria_sarasti = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_jose_maria_sarasti
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_jose_maria_sarasti
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_jose_maria_sarasti
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_jose_maria_sarasti
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_jose_maria_robles_y_canelos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_jose_maria_robles_y_canelos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_jose_maria_robles_y_canelos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_jose_maria_robles_y_canelos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_jose_maria_robles_y_canelos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ECU_fernando_daquilema = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_fernando_daquilema
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_fernando_daquilema
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ECU_fernando_daquilema
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ECU_fernando_daquilema
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Egito - EGYPT

create_egy_muhammad_ali_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = egy_muhammad_ali_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = egy_muhammad_ali_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = egy_muhammad_ali_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = egy_muhammad_ali_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_egy_ibrahim_alawi_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = egy_ibrahim_alawi_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = egy_ibrahim_alawi_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = egy_ibrahim_alawi_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = egy_ibrahim_alawi_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_EGY_charles_marie_napoleon_de_beaufort_dhautpoul = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_charles_marie_napoleon_de_beaufort_dhautpoul
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_charles_marie_napoleon_de_beaufort_dhautpoul
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_charles_marie_napoleon_de_beaufort_dhautpoul
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_charles_marie_napoleon_de_beaufort_dhautpoul
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_EGY_ahmad_pasha_abu_widan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_ahmad_pasha_abu_widan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_ahmad_pasha_abu_widan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_ahmad_pasha_abu_widan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_ahmad_pasha_abu_widan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_EGY_soliman_al_faransawi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_soliman_al_faransawi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_soliman_al_faransawi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_soliman_al_faransawi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_soliman_al_faransawi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_EGY_matush_bey = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_matush_bey
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_matush_bey
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_matush_bey
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_matush_bey
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_EGY_jean_victor_besson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_jean_victor_besson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_jean_victor_besson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_jean_victor_besson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_jean_victor_besson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_EGY_talaat_harb = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_talaat_harb
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_talaat_harb
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = EGY_talaat_harb
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = EGY_talaat_harb
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Etiópia - ETHIOPIA

create_HAR_abu_bakr_ali = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAR_abu_bakr_ali
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAR_abu_bakr_ali
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAR_abu_bakr_ali
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAR_abu_bakr_ali
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HAR_ahmad_ali = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAR_ahmad_ali
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAR_ahmad_ali
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAR_ahmad_ali
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAR_ahmad_ali
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HAR_gerad_mohamed = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAR_gerad_mohamed
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAR_gerad_mohamed
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAR_gerad_mohamed
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAR_gerad_mohamed
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SHW_sahle_selassie = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SHW_sahle_selassie
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SHW_sahle_selassie
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SHW_sahle_selassie
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SHW_sahle_selassie
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SHW_haile_melekot_solomon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SHW_haile_melekot_solomon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SHW_haile_melekot_solomon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SHW_haile_melekot_solomon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SHW_haile_melekot_solomon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ETH_tewodros_solomon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ETH_tewodros_solomon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ETH_tewodros_solomon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ETH_tewodros_solomon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ETH_tewodros_solomon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Finlândia - FINLAND

create_fin_general_mannerheim = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fin_general_mannerheim
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fin_general_mannerheim
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fin_general_mannerheim
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fin_general_mannerheim
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FIN_eduard_polon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FIN_eduard_polon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FIN_eduard_polon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FIN_eduard_polon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FIN_eduard_polon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#França - FRANCE

create_FRA_louis_philippe = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_louis_philippe
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_louis_philippe
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_louis_philippe
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_louis_philippe
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_ferdinand_philippe = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_ferdinand_philippe
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_ferdinand_philippe
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_ferdinand_philippe
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_ferdinand_philippe
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_victor_de_broglie = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_victor_de_broglie
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_victor_de_broglie
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_victor_de_broglie
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_victor_de_broglie
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_adolphe_thiers = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_adolphe_thiers
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_adolphe_thiers
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_adolphe_thiers
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_adolphe_thiers
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_jacques_lafitte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jacques_lafitte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jacques_lafitte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jacques_lafitte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jacques_lafitte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_jean-francois_mocquard = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean-francois_mocquard
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean-francois_mocquard
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean-francois_mocquard
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean-francois_mocquard
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_francois-rene_de_chateaubriand = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_francois-rene_de_chateaubriand
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_francois-rene_de_chateaubriand
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_francois-rene_de_chateaubriand
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_francois-rene_de_chateaubriand
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_jean-de-dieu_soult = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean-de-dieu_soult
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean-de-dieu_soult
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean-de-dieu_soult
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean-de-dieu_soult
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_mathieu_de_la_drome = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_mathieu_de_la_drome
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_mathieu_de_la_drome
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_mathieu_de_la_drome
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_mathieu_de_la_drome
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_charles_fourier = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_charles_fourier
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_charles_fourier
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_charles_fourier
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_charles_fourier
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_thomas_bugeaud = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_thomas_bugeaud
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_thomas_bugeaud
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_thomas_bugeaud
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_thomas_bugeaud
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_bertrand_clauzel = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_bertrand_clauzel
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_bertrand_clauzel
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_bertrand_clauzel
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_bertrand_clauzel
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_guy-victor_duperre = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_guy-victor_duperre
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_guy-victor_duperre
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_guy-victor_duperre
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_guy-victor_duperre
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_charles_baudin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_charles_baudin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_charles_baudin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_charles_baudin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_charles_baudin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_honore-charles_reille = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_honore-charles_reille
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_honore-charles_reille
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_honore-charles_reille
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_honore-charles_reille
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_guillaume_dode_de_la_brunerie = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_guillaume_dode_de_la_brunerie
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_guillaume_dode_de_la_brunerie
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_guillaume_dode_de_la_brunerie
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_guillaume_dode_de_la_brunerie
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_philippe_de_orleans_of_paris = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_philippe_de_orleans_of_paris
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_philippe_de_orleans_of_paris
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_philippe_de_orleans_of_paris
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_philippe_de_orleans_of_paris
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_philippe_de_orleans_of_orleans = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_philippe_de_orleans_of_orleans
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_philippe_de_orleans_of_orleans
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_philippe_de_orleans_of_orleans
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_philippe_de_orleans_of_orleans
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_jean_de_orleans = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean_de_orleans
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean_de_orleans
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean_de_orleans
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean_de_orleans
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_henri_de_orleans = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_henri_de_orleans
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_henri_de_orleans
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_henri_de_orleans
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_henri_de_orleans
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_louis_antoine_de_bourbon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_louis_antoine_de_bourbon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_louis_antoine_de_bourbon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_louis_antoine_de_bourbon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_louis_antoine_de_bourbon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_henri_de_bourbon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_henri_de_bourbon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_henri_de_bourbon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_henri_de_bourbon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_henri_de_bourbon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_jean_de_bourbon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean_de_bourbon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean_de_bourbon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean_de_bourbon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean_de_bourbon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_carlos_de_bourbon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_carlos_de_bourbon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_carlos_de_bourbon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_carlos_de_bourbon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_carlos_de_bourbon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_jacques_de_bourbon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jacques_de_bourbon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jacques_de_bourbon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jacques_de_bourbon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jacques_de_bourbon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_alfonso_carlos_de_bourbon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_alfonso_carlos_de_bourbon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_alfonso_carlos_de_bourbon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_alfonso_carlos_de_bourbon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_alfonso_carlos_de_bourbon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_alfonso_de_bourbon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_alfonso_de_bourbon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_alfonso_de_bourbon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_alfonso_de_bourbon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_alfonso_de_bourbon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_napoleon_eugene_louis_bonaparte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_napoleon_eugene_louis_bonaparte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_napoleon_eugene_louis_bonaparte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_napoleon_eugene_louis_bonaparte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_napoleon_eugene_louis_bonaparte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_victor_bonaparte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_victor_bonaparte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_victor_bonaparte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_victor_bonaparte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_victor_bonaparte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_louis_bonaparte = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_louis_bonaparte
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_louis_bonaparte
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_louis_bonaparte
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_louis_bonaparte
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_auguste_comte_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_auguste_comte_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_auguste_comte_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_auguste_comte_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_auguste_comte_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_eugene_schneider = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_eugene_schneider
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_eugene_schneider
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_eugene_schneider
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_eugene_schneider
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_ferdinand_de_lesseps = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_ferdinand_de_lesseps
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_ferdinand_de_lesseps
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_ferdinand_de_lesseps
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_ferdinand_de_lesseps
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_jean_dollfus = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean_dollfus
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean_dollfus
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_jean_dollfus
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_jean_dollfus
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_FRA_charles_frederick_worth = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_charles_frederick_worth
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_charles_frederick_worth
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = FRA_charles_frederick_worth
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = FRA_charles_frederick_worth
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_canonic_dreyfus_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = canonic_dreyfus_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = canonic_dreyfus_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = canonic_dreyfus_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = canonic_dreyfus_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_canonic_esterhazy_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = canonic_esterhazy_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = canonic_esterhazy_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = canonic_esterhazy_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = canonic_esterhazy_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_canonic_zola_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = canonic_zola_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = canonic_zola_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = canonic_zola_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = canonic_zola_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_admiral_courbet = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_courbet
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_courbet
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_courbet
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_courbet
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_admiral_lespes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_lespes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_lespes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_lespes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_lespes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_admiral_boue_de_lapeyrere = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_boue_de_lapeyrere
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_boue_de_lapeyrere
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_boue_de_lapeyrere
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_boue_de_lapeyrere
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_admiral_jaureguiberry = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_jaureguiberry
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_jaureguiberry
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_admiral_jaureguiberry
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_admiral_jaureguiberry
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_general_foch = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_foch
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_foch
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_foch
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_foch
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_general_macmahon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_macmahon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_macmahon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_macmahon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_macmahon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_general_bazaine = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_bazaine
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_bazaine
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_bazaine
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_bazaine
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_general_de_saint_arnaud = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_de_saint_arnaud
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_de_saint_arnaud
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_de_saint_arnaud
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_de_saint_arnaud
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_general_changarnier = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_changarnier
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_changarnier
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_changarnier
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_changarnier
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_general_dorleans = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_dorleans
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_dorleans
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_general_dorleans
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_general_dorleans
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_clemenceau_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_clemenceau_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_clemenceau_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_clemenceau_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_clemenceau_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Grã-Bretanha - GREAT BRITAIN

create_gbr_william_hanover_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_william_hanover_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_william_hanover_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_william_hanover_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_william_hanover_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_queen_victoria_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_queen_victoria_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_queen_victoria_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_queen_victoria_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_queen_victoria_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_albert_edward_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_albert_edward_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_albert_edward_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_albert_edward_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_albert_edward_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_george_v_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_george_v_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_george_v_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_george_v_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_george_v_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_william_lamb = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_lamb
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_lamb
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_lamb
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_lamb
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_robert_peel = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_robert_peel
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_robert_peel
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_robert_peel
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_robert_peel
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_william_howley = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_howley
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_howley
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_howley
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_howley
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_robert_owen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_robert_owen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_robert_owen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_robert_owen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_robert_owen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_rowland_hill = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_rowland_hill
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_rowland_hill
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_rowland_hill
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_rowland_hill
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_thomas_barnes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_barnes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_barnes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_barnes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_barnes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_edward_smith-stanley = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_edward_smith-stanley
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_edward_smith-stanley
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_edward_smith-stanley
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_edward_smith-stanley
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_charles_gordon-lennox = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_gordon-lennox
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_gordon-lennox
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_gordon-lennox
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_gordon-lennox
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_o_connor_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_o_connor_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_o_connor_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_o_connor_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_o_connor_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_wellington_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_wellington_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_wellington_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_wellington_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_wellington_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_disraeli_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_disraeli_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_disraeli_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_disraeli_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_disraeli_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_gladstone_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_gladstone_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_gladstone_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_gladstone_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_gladstone_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_temple_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_temple_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_temple_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_temple_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_temple_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_george_curzon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_george_curzon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_george_curzon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_george_curzon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_george_curzon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_anthony_ashley-cooper = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_anthony_ashley-cooper
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_anthony_ashley-cooper
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_anthony_ashley-cooper
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_anthony_ashley-cooper
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_russell = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_russell
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_russell
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_russell
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_russell
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_richard_cobden = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_richard_cobden
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_richard_cobden
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_richard_cobden
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_richard_cobden
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_bright = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_bright
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_bright
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_bright
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_bright
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_george_hamilton-gordon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_george_hamilton-gordon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_george_hamilton-gordon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_george_hamilton-gordon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_george_hamilton-gordon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_joseph_chamberlain = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_joseph_chamberlain
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_joseph_chamberlain
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_joseph_chamberlain
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_joseph_chamberlain
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_bird_sumner = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_bird_sumner
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_bird_sumner
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_bird_sumner
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_bird_sumner
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_charles_longley = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_longley
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_longley
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_longley
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_longley
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_archibald_campbell_tait = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_archibald_campbell_tait
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_archibald_campbell_tait
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_archibald_campbell_tait
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_archibald_campbell_tait
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_edward_white_benson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_edward_white_benson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_edward_white_benson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_edward_white_benson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_edward_white_benson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_frederick_temple = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_frederick_temple
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_frederick_temple
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_frederick_temple
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_frederick_temple
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_randall_davidson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_randall_davidson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_randall_davidson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_randall_davidson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_randall_davidson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_cosmo_gordon_lang = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_cosmo_gordon_lang
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_cosmo_gordon_lang
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_cosmo_gordon_lang
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_cosmo_gordon_lang
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_thomas_burt = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_burt
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_burt
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_burt
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_burt
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_maynard_keynes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_maynard_keynes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_maynard_keynes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_maynard_keynes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_maynard_keynes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_david_lloyd_george = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_david_lloyd_george
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_david_lloyd_george
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_david_lloyd_george
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_david_lloyd_george
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_arthur_balfour = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_arthur_balfour
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_arthur_balfour
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_arthur_balfour
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_arthur_balfour
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_george_barnes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_george_barnes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_george_barnes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_george_barnes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_george_barnes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_colborne = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_colborne
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_colborne
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_colborne
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_colborne
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_matthew_whitworth_aylmer = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_matthew_whitworth_aylmer
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_matthew_whitworth_aylmer
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_matthew_whitworth_aylmer
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_matthew_whitworth_aylmer
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_henry_hardinge = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_henry_hardinge
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_henry_hardinge
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_henry_hardinge
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_henry_hardinge
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_hugh_gough = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_hugh_gough
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_hugh_gough
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_hugh_gough
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_hugh_gough
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_general_smith = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_smith
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_smith
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_smith
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_smith
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_general_kitchener = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_kitchener
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_kitchener
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_kitchener
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_kitchener
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_general_gordon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_gordon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_gordon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_gordon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_gordon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_general_french = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_french
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_french
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_french
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_french
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_general_baden_powell = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_baden_powell
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_baden_powell
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_baden_powell
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_baden_powell
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_general_prince_george = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_prince_george
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_prince_george
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_general_prince_george
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_general_prince_george
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_fitzroy_somerset = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_fitzroy_somerset
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_fitzroy_somerset
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_fitzroy_somerset
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_fitzroy_somerset
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_frederick_roberts = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_frederick_roberts
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_frederick_roberts
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_frederick_roberts
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_frederick_roberts
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_garnet_wolseley = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_garnet_wolseley
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_garnet_wolseley
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_garnet_wolseley
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_garnet_wolseley
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_william_bellairs = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_bellairs
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_bellairs
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_bellairs
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_bellairs
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_douglas_haig = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_douglas_haig
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_douglas_haig
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_douglas_haig
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_douglas_haig
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_thomas_byam_martin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_byam_martin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_byam_martin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_byam_martin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_byam_martin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_edward_codrington = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_edward_codrington
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_edward_codrington
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_edward_codrington
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_edward_codrington
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_thomas_cochrane = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_cochrane
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_cochrane
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_thomas_cochrane
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_thomas_cochrane
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_george_cockburn = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_george_cockburn
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_george_cockburn
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_george_cockburn
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_george_cockburn
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_james_dundas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_james_dundas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_james_dundas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_james_dundas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_james_dundas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_admiral_beatty = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_beatty
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_beatty
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_beatty
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_beatty
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_admiral_fisher = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_fisher
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_fisher
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_fisher
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_fisher
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_admiral_mountbatten = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_mountbatten
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_mountbatten
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_mountbatten
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_mountbatten
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_admiral_milne = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_milne
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_milne
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_milne
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_milne
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_admiral_seymour = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_seymour
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_seymour
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_admiral_seymour
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_admiral_seymour
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_algernon_percy = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_algernon_percy
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_algernon_percy
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_algernon_percy
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_algernon_percy
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_provo_wallis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_provo_wallis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_provo_wallis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_provo_wallis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_provo_wallis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_edmund_commerell = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_edmund_commerell
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_edmund_commerell
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_edmund_commerell
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_edmund_commerell
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_james_elphinstone_erskine = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_james_elphinstone_erskine
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_james_elphinstone_erskine
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_james_elphinstone_erskine
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_james_elphinstone_erskine
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_charles_ogle = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_ogle
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_ogle
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_ogle
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_ogle
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_augustus_leopold_kuper = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_augustus_leopold_kuper
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_augustus_leopold_kuper
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_augustus_leopold_kuper
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_augustus_leopold_kuper
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_John_Frost = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_John_Frost
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_John_Frost
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_John_Frost
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_John_Frost
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_john_stuart_mill = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_john_stuart_mill
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_john_stuart_mill
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_john_stuart_mill
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_john_stuart_mill
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_william_smith_o_brien = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_william_smith_o_brien
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_william_smith_o_brien
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_william_smith_o_brien
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_william_smith_o_brien
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_pankhurst_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_pankhurst_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_pankhurst_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_pankhurst_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_pankhurst_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gbr_charles_dickens_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_charles_dickens_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_charles_dickens_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gbr_charles_dickens_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gbr_charles_dickens_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_bedford_leno = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_bedford_leno
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_bedford_leno
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_bedford_leno
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_bedford_leno
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_arthur_james_cook = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_arthur_james_cook
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_arthur_james_cook
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_arthur_james_cook
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_arthur_james_cook
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_albert_inkpin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_albert_inkpin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_albert_inkpin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_albert_inkpin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_albert_inkpin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_friedrich_engels = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_friedrich_engels
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_friedrich_engels
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_friedrich_engels
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_friedrich_engels
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_rotha_lintorn-orman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_rotha_lintorn-orman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_rotha_lintorn-orman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_rotha_lintorn-orman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_rotha_lintorn-orman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_charles_prestwich_scott = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_prestwich_scott
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_prestwich_scott
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_prestwich_scott
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_prestwich_scott
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_annie_besant = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_annie_besant
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_annie_besant
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_annie_besant
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_annie_besant
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_andrew_scott_waugh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_andrew_scott_waugh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_andrew_scott_waugh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_andrew_scott_waugh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_andrew_scott_waugh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_charles_granville_bruce = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_granville_bruce
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_granville_bruce
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_charles_granville_bruce
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_charles_granville_bruce
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_florence_nightingale = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_florence_nightingale
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_florence_nightingale
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_florence_nightingale
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_florence_nightingale
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_william_armstrong = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_armstrong
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_armstrong
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_william_armstrong
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_william_armstrong
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_brown = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_brown
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_brown
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_brown
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_brown
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_hughes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_hughes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_hughes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_hughes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_hughes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_alexander_keiller = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_alexander_keiller
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_alexander_keiller
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_alexander_keiller
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_alexander_keiller
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_isambard_kingdom_brunel = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_isambard_kingdom_brunel
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_isambard_kingdom_brunel
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_isambard_kingdom_brunel
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_isambard_kingdom_brunel
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_maple = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_maple
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_maple
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_maple
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_maple
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GBR_john_holt = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_holt
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_holt
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GBR_john_holt
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GBR_john_holt
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Grécia - GREECE

create_GRE_otto_von_wittelsbach = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_otto_von_wittelsbach
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_otto_von_wittelsbach
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_otto_von_wittelsbach
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_otto_von_wittelsbach
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_josef_ludwig_von_armansperg = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_josef_ludwig_von_armansperg
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_josef_ludwig_von_armansperg
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_josef_ludwig_von_armansperg
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_josef_ludwig_von_armansperg
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_carl_wilhelm_von_heideck = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_carl_wilhelm_von_heideck
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_carl_wilhelm_von_heideck
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_carl_wilhelm_von_heideck
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_carl_wilhelm_von_heideck
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_antonios_kriezis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_antonios_kriezis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_antonios_kriezis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_antonios_kriezis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_antonios_kriezis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gre_general_kolokotronis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gre_general_kolokotronis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gre_general_kolokotronis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gre_general_kolokotronis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gre_general_kolokotronis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_gre_general_kallergis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gre_general_kallergis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gre_general_kallergis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gre_general_kallergis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gre_general_kallergis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_ioannis_kolettis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_ioannis_kolettis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_ioannis_kolettis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_ioannis_kolettis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_ioannis_kolettis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_georgios_psyllas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_georgios_psyllas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_georgios_psyllas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_georgios_psyllas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_georgios_psyllas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_theophilos_kairis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_theophilos_kairis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_theophilos_kairis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_theophilos_kairis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_theophilos_kairis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_kitsos_tzavelas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_kitsos_tzavelas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_kitsos_tzavelas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_kitsos_tzavelas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_kitsos_tzavelas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_neophytos_metaxas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_neophytos_metaxas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_neophytos_metaxas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_neophytos_metaxas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_neophytos_metaxas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_georgios_kountouriotis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_georgios_kountouriotis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_georgios_kountouriotis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_georgios_kountouriotis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_georgios_kountouriotis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_ioannis_makriyannis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_ioannis_makriyannis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_ioannis_makriyannis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_ioannis_makriyannis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_ioannis_makriyannis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_anastasios_nectarios_kephalas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_anastasios_nectarios_kephalas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_anastasios_nectarios_kephalas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_anastasios_nectarios_kephalas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_anastasios_nectarios_kephalas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_andreas_syggros = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_andreas_syggros
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_andreas_syggros
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_andreas_syggros
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_andreas_syggros
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_constantine_paparrigopoulos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_constantine_paparrigopoulos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_constantine_paparrigopoulos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_constantine_paparrigopoulos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_constantine_paparrigopoulos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_petrobey_mavromichalis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_petrobey_mavromichalis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_petrobey_mavromichalis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_petrobey_mavromichalis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_petrobey_mavromichalis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_anastasios_polyzoidis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_anastasios_polyzoidis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_anastasios_polyzoidis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_anastasios_polyzoidis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_anastasios_polyzoidis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_anastasios_londos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_anastasios_londos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_anastasios_londos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_anastasios_londos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_anastasios_londos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_stavros_kallergis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_stavros_kallergis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_stavros_kallergis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_stavros_kallergis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_stavros_kallergis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_general_panagiotis_danglis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_general_panagiotis_danglis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_general_panagiotis_danglis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_general_panagiotis_danglis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_general_panagiotis_danglis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_general_anastasios_papoulas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_general_anastasios_papoulas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_general_anastasios_papoulas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_general_anastasios_papoulas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_general_anastasios_papoulas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_admiral_konstantinos_kanaris = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_admiral_konstantinos_kanaris
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_admiral_konstantinos_kanaris
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_admiral_konstantinos_kanaris
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_admiral_konstantinos_kanaris
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_admiral_leonidas_palaskas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_admiral_leonidas_palaskas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_admiral_leonidas_palaskas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_admiral_leonidas_palaskas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_admiral_leonidas_palaskas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_george_i_of_greece = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_george_i_of_greece
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_george_i_of_greece
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_george_i_of_greece
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_george_i_of_greece
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Gwalior - GWALIOR

create_gwa_general_tope = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gwa_general_tope
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gwa_general_tope
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = gwa_general_tope
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = gwa_general_tope
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Haití - HAITI

create_HAI_jean_pierre_boyer = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_jean_pierre_boyer
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_jean_pierre_boyer
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_jean_pierre_boyer
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_jean_pierre_boyer
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HAI_charles_riviere_herard = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_charles_riviere_herard
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_charles_riviere_herard
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_charles_riviere_herard
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_charles_riviere_herard
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HAI_jean_baptiste_riche = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_jean_baptiste_riche
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_jean_baptiste_riche
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_jean_baptiste_riche
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_jean_baptiste_riche
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HAI_faustin_soulouque = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_faustin_soulouque
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_faustin_soulouque
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAI_faustin_soulouque
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAI_faustin_soulouque
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Hannover - HANNOVER

create_HAN_hugh_halkett = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAN_hugh_halkett
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAN_hugh_halkett
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAN_hugh_halkett
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAN_hugh_halkett
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HAN_andreas_von_schlutter = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAN_andreas_von_schlutter
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAN_andreas_von_schlutter
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAN_andreas_von_schlutter
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAN_andreas_von_schlutter
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HAN_jacob_grimm = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAN_jacob_grimm
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAN_jacob_grimm
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HAN_jacob_grimm
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HAN_jacob_grimm
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Hindustan - HINDUSTAN

create_mug_akbar_ii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_akbar_ii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_akbar_ii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_akbar_ii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_akbar_ii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_bahadur_ii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_bahadur_ii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_bahadur_ii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_bahadur_ii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_bahadur_ii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_mirza_salim = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_salim
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_salim
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_salim
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_salim
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_mirza_dara_bakht = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_dara_bakht
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_dara_bakht
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_dara_bakht
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_dara_bakht
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_raja_sohan_lal = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_raja_sohan_lal
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_raja_sohan_lal
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_raja_sohan_lal
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_raja_sohan_lal
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_hamid_ali_khan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_hamid_ali_khan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_hamid_ali_khan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_hamid_ali_khan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_hamid_ali_khan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_mirza_mughal = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_mughal
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_mughal
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_mughal
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_mughal
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_mirza_fakhru = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_fakhru
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_fakhru
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_mirza_fakhru
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_mirza_fakhru
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_bakht_khan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_bakht_khan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_bakht_khan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_bakht_khan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_bakht_khan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mug_george_thompson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_george_thompson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_george_thompson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mug_george_thompson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mug_george_thompson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Hungria - HUNGARY

create_HUN_manfred_weiss = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HUN_manfred_weiss
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HUN_manfred_weiss
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HUN_manfred_weiss
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HUN_manfred_weiss
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Principes da India - INDIAN PRINCELY STATES

create_ALW_banni_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ALW_banni_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ALW_banni_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ALW_banni_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ALW_banni_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ALW_balvant_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ALW_balvant_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ALW_balvant_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ALW_balvant_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ALW_balvant_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AWA_nasir_ud_din_haidar_nishapuri_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AWA_nasir_ud_din_haidar_nishapuri_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AWA_nasir_ud_din_haidar_nishapuri_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AWA_nasir_ud_din_haidar_nishapuri_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AWA_nasir_ud_din_haidar_nishapuri_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AWA_muhammad_ali_nishapuri_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AWA_muhammad_ali_nishapuri_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AWA_muhammad_ali_nishapuri_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AWA_muhammad_ali_nishapuri_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AWA_muhammad_ali_nishapuri_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_AWA_muhammad_husayn_khan_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AWA_muhammad_husayn_khan_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AWA_muhammad_husayn_khan_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = AWA_muhammad_husayn_khan_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = AWA_muhammad_husayn_khan_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ASM_purandar_singha_swargadeo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ASM_purandar_singha_swargadeo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ASM_purandar_singha_swargadeo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ASM_purandar_singha_swargadeo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ASM_purandar_singha_swargadeo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ASM_kameswar_swargadeo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ASM_kameswar_swargadeo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ASM_kameswar_swargadeo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ASM_kameswar_swargadeo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ASM_kameswar_swargadeo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ASM_maniram_dewan_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ASM_maniram_dewan_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ASM_maniram_dewan_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ASM_maniram_dewan_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ASM_maniram_dewan_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAG_vishwanath_baghela_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAG_vishwanath_baghela_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAG_vishwanath_baghela_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAG_vishwanath_baghela_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAG_vishwanath_baghela_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAG_raghuraj_baghela_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAG_raghuraj_baghela_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAG_raghuraj_baghela_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAG_raghuraj_baghela_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAG_raghuraj_baghela_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIK_rathan_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIK_rathan_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIK_rathan_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIK_rathan_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIK_rathan_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BIK_sardar_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIK_sardar_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIK_sardar_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BIK_sardar_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BIK_sardar_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BUN_tej_singh_bundela = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUN_tej_singh_bundela
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUN_tej_singh_bundela
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUN_tej_singh_bundela
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUN_tej_singh_bundela
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BUN_sajjan_singh_bundela = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUN_sajjan_singh_bundela
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUN_sajjan_singh_bundela
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BUN_sajjan_singh_bundela
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BUN_sajjan_singh_bundela
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAS_bhopal_deo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAS_bhopal_deo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAS_bhopal_deo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAS_bhopal_deo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAS_bhopal_deo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BAS_bhairam_deo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAS_bhairam_deo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAS_bhairam_deo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BAS_bhairam_deo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BAS_bhairam_deo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BHO_muiz_muhammad_orakzai_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHO_muiz_muhammad_orakzai_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHO_muiz_muhammad_orakzai_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHO_muiz_muhammad_orakzai_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHO_muiz_muhammad_orakzai_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BHO_jahangir_mohammad_orakzai_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHO_jahangir_mohammad_orakzai_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHO_jahangir_mohammad_orakzai_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHO_jahangir_mohammad_orakzai_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHO_jahangir_mohammad_orakzai_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BHO_qudsia_begum_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHO_qudsia_begum_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHO_qudsia_begum_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHO_qudsia_begum_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHO_qudsia_begum_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BER_sayaji_rao_gaekwad_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BER_sayaji_rao_gaekwad_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BER_sayaji_rao_gaekwad_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BER_sayaji_rao_gaekwad_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BER_sayaji_rao_gaekwad_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BER_ganpat_rao_gaekwad_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BER_ganpat_rao_gaekwad_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BER_ganpat_rao_gaekwad_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BER_ganpat_rao_gaekwad_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BER_ganpat_rao_gaekwad_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BER_veniram_aditram_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BER_veniram_aditram_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BER_veniram_aditram_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BER_veniram_aditram_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BER_veniram_aditram_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BHV_wajesimhji_wakhatsimhji_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHV_wajesimhji_wakhatsimhji_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHV_wajesimhji_wakhatsimhji_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHV_wajesimhji_wakhatsimhji_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHV_wajesimhji_wakhatsimhji_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BHV_akherajji_bhavsimhji_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHV_akherajji_bhavsimhji_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHV_akherajji_bhavsimhji_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHV_akherajji_bhavsimhji_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHV_akherajji_bhavsimhji_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_BHV_pramanandas_ranchordas_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHV_pramanandas_ranchordas_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHV_pramanandas_ranchordas_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = BHV_pramanandas_ranchordas_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = BHV_pramanandas_ranchordas_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_COC_ramavarma_xi_swaroopam_perumpadappu_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COC_ramavarma_xi_swaroopam_perumpadappu_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COC_ramavarma_xi_swaroopam_perumpadappu_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COC_ramavarma_xi_swaroopam_perumpadappu_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COC_ramavarma_xi_swaroopam_perumpadappu_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_COC_ramavarma_xii_swaroopam_perumpadappu_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COC_ramavarma_xii_swaroopam_perumpadappu_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COC_ramavarma_xii_swaroopam_perumpadappu_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COC_ramavarma_xii_swaroopam_perumpadappu_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COC_ramavarma_xii_swaroopam_perumpadappu_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_COC_venkata_subbaraya_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COC_venkata_subbaraya_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COC_venkata_subbaraya_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COC_venkata_subbaraya_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COC_venkata_subbaraya_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_COO_harendra_narayan_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COO_harendra_narayan_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COO_harendra_narayan_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COO_harendra_narayan_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COO_harendra_narayan_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_COO_shivendra_narayan_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COO_shivendra_narayan_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COO_shivendra_narayan_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COO_shivendra_narayan_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COO_shivendra_narayan_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_COO_ramchandra_lahiri_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COO_ramchandra_lahiri_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COO_ramchandra_lahiri_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = COO_ramchandra_lahiri_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = COO_ramchandra_lahiri_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DHA_vijaidevji_sisodia_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DHA_vijaidevji_sisodia_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DHA_vijaidevji_sisodia_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DHA_vijaidevji_sisodia_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DHA_vijaidevji_sisodia_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_DHA_ramdevji_sisodia_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DHA_ramdevji_sisodia_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DHA_ramdevji_sisodia_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = DHA_ramdevji_sisodia_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = DHA_ramdevji_sisodia_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GAR_sudarshan_shah_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GAR_sudarshan_shah_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GAR_sudarshan_shah_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GAR_sudarshan_shah_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GAR_sudarshan_shah_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GAR_bhawani_shah_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GAR_bhawani_shah_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GAR_bhawani_shah_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GAR_bhawani_shah_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GAR_bhawani_shah_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GWA_jankoji_roa_scindia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GWA_jankoji_roa_scindia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GWA_jankoji_roa_scindia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GWA_jankoji_roa_scindia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GWA_jankoji_roa_scindia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GWA_jayajirao_scindia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GWA_jayajirao_scindia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GWA_jayajirao_scindia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GWA_jayajirao_scindia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GWA_jayajirao_scindia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GWA_baiza_bai_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GWA_baiza_bai_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GWA_baiza_bai_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GWA_baiza_bai_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GWA_baiza_bai_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HYD_nasir_ud_daulah_asaf_jah_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_nasir_ud_daulah_asaf_jah_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_nasir_ud_daulah_asaf_jah_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_nasir_ud_daulah_asaf_jah_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_nasir_ud_daulah_asaf_jah_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HYD_afzal_ud_daulah_asaf_jah_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_afzal_ud_daulah_asaf_jah_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_afzal_ud_daulah_asaf_jah_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_afzal_ud_daulah_asaf_jah_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_afzal_ud_daulah_asaf_jah_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HYD_mubarez_ud_daulah_asaf_jah_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_mubarez_ud_daulah_asaf_jah_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_mubarez_ud_daulah_asaf_jah_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_mubarez_ud_daulah_asaf_jah_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_mubarez_ud_daulah_asaf_jah_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_HYD_chandu_lal_malhotra_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_chandu_lal_malhotra_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_chandu_lal_malhotra_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = HYD_chandu_lal_malhotra_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = HYD_chandu_lal_malhotra_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_IDA_jawan_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = IDA_jawan_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = IDA_jawan_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = IDA_jawan_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = IDA_jawan_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAI_ram_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAI_ram_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAI_ram_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAI_ram_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAI_ram_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAI_rawal_bairi_sal_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAI_rawal_bairi_sal_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAI_rawal_bairi_sal_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAI_rawal_bairi_sal_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAI_rawal_bairi_sal_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAS_gaj_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAS_gaj_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAS_gaj_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAS_gaj_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAS_gaj_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAS_himmat_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAS_himmat_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAS_himmat_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAS_himmat_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAS_himmat_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JEY_vikram_dev_ii_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JEY_vikram_dev_ii_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JEY_vikram_dev_ii_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JEY_vikram_dev_ii_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JEY_vikram_dev_ii_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JEY_ramchandra_dev_iii_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JEY_ramchandra_dev_iii_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JEY_ramchandra_dev_iii_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JEY_ramchandra_dev_iii_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JEY_ramchandra_dev_iii_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JHN_raghunath_newalkar_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JHN_raghunath_newalkar_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JHN_raghunath_newalkar_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JHN_raghunath_newalkar_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JHN_raghunath_newalkar_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JHN_gangadhar_newalkar_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JHN_gangadhar_newalkar_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JHN_gangadhar_newalkar_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JHN_gangadhar_newalkar_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JHN_gangadhar_newalkar_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JOD_man_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JOD_man_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JOD_man_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JOD_man_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JOD_man_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JOD_takht_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JOD_takht_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JOD_takht_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JOD_takht_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JOD_takht_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JOD_uttam_chand_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JOD_uttam_chand_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JOD_uttam_chand_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JOD_uttam_chand_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JOD_uttam_chand_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JUN_mohammad_bahadur_khanji_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JUN_mohammad_bahadur_khanji_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JUN_mohammad_bahadur_khanji_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JUN_mohammad_bahadur_khanji_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JUN_mohammad_bahadur_khanji_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JUN_mohammad_hamid_khanji_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JUN_mohammad_hamid_khanji_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JUN_mohammad_hamid_khanji_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JUN_mohammad_hamid_khanji_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JUN_mohammad_hamid_khanji_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JUN_amratlal_amarchand_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JUN_amratlal_amarchand_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JUN_amratlal_amarchand_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JUN_amratlal_amarchand_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JUN_amratlal_amarchand_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KHP_shahaji_bhonsle_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KHP_shahaji_bhonsle_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KHP_shahaji_bhonsle_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KHP_shahaji_bhonsle_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KHP_shahaji_bhonsle_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KHP_shivaji_bhonsle_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KHP_shivaji_bhonsle_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KHP_shivaji_bhonsle_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KHP_shivaji_bhonsle_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KHP_shivaji_bhonsle_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KNO_ghulam_rasul_khan_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KNO_ghulam_rasul_khan_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KNO_ghulam_rasul_khan_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KNO_ghulam_rasul_khan_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KNO_ghulam_rasul_khan_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOT_ram_singh_hada_chauhan_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOT_ram_singh_hada_chauhan_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOT_ram_singh_hada_chauhan_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOT_ram_singh_hada_chauhan_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOT_ram_singh_hada_chauhan_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KUT_daishalji_jadeja_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KUT_daishalji_jadeja_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KUT_daishalji_jadeja_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KUT_daishalji_jadeja_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KUT_daishalji_jadeja_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KUT_nanji_jivraj_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KUT_nanji_jivraj_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KUT_nanji_jivraj_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KUT_nanji_jivraj_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KUT_nanji_jivraj_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MLD_muhammad_imaaduddeen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MLD_muhammad_imaaduddeen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MLD_muhammad_imaaduddeen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MLD_muhammad_imaaduddeen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MLD_muhammad_imaaduddeen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MLD_ibrahim_nooraddeen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MLD_ibrahim_nooraddeen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MLD_ibrahim_nooraddeen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MLD_ibrahim_nooraddeen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MLD_ibrahim_nooraddeen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEW_jawan_singh_sisodia_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEW_jawan_singh_sisodia_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEW_jawan_singh_sisodia_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEW_jawan_singh_sisodia_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEW_jawan_singh_sisodia_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEW_sardar_singh_sisodia_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEW_sardar_singh_sisodia_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEW_sardar_singh_sisodia_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEW_sardar_singh_sisodia_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEW_sardar_singh_sisodia_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEW_mehta_sher_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEW_mehta_sher_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEW_mehta_sher_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEW_mehta_sher_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEW_mehta_sher_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MNP_chandrakirti_singh_ningthouja_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MNP_chandrakirti_singh_ningthouja_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MNP_chandrakirti_singh_ningthouja_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MNP_chandrakirti_singh_ningthouja_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MNP_chandrakirti_singh_ningthouja_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MNP_nara_singh_ningthouja_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MNP_nara_singh_ningthouja_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MNP_nara_singh_ningthouja_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MNP_nara_singh_ningthouja_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MNP_nara_singh_ningthouja_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MYB_jadunath_bhanj_deo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MYB_jadunath_bhanj_deo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MYB_jadunath_bhanj_deo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MYB_jadunath_bhanj_deo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MYB_jadunath_bhanj_deo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MYB_shrinath_bhanj_deo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MYB_shrinath_bhanj_deo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MYB_shrinath_bhanj_deo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MYB_shrinath_bhanj_deo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MYB_shrinath_bhanj_deo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NAG_raghuji_bhonsle = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAG_raghuji_bhonsle
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAG_raghuji_bhonsle
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAG_raghuji_bhonsle
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAG_raghuji_bhonsle
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NAG_baka_bai = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAG_baka_bai
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAG_baka_bai
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAG_baka_bai
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAG_baka_bai
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NAR_somanath_harichandan_mohapatra_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAR_somanath_harichandan_mohapatra_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAR_somanath_harichandan_mohapatra_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAR_somanath_harichandan_mohapatra_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAR_somanath_harichandan_mohapatra_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NAR_braja_sundar_harichandan_mohapatra_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAR_braja_sundar_harichandan_mohapatra_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAR_braja_sundar_harichandan_mohapatra_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAR_braja_sundar_harichandan_mohapatra_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAR_braja_sundar_harichandan_mohapatra_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NAW_ranmalji_sataji_jadeja = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAW_ranmalji_sataji_jadeja
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAW_ranmalji_sataji_jadeja
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAW_ranmalji_sataji_jadeja
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAW_ranmalji_sataji_jadeja
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NAW_vibhoji_ranmalji_jadeja = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAW_vibhoji_ranmalji_jadeja
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAW_vibhoji_ranmalji_jadeja
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NAW_vibhoji_ranmalji_jadeja
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NAW_vibhoji_ranmalji_jadeja
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PTA_karam_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTA_karam_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTA_karam_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTA_karam_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTA_karam_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PTA_narendra_singh_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTA_narendra_singh_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTA_narendra_singh_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTA_narendra_singh_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTA_narendra_singh_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PLP_fateh_mohammad_jhalori = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PLP_fateh_mohammad_jhalori
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PLP_fateh_mohammad_jhalori
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PLP_fateh_mohammad_jhalori
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PLP_fateh_mohammad_jhalori
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PLP_zorawar_mohammad_jhalori = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PLP_zorawar_mohammad_jhalori
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PLP_zorawar_mohammad_jhalori
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PLP_zorawar_mohammad_jhalori
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PLP_zorawar_mohammad_jhalori
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PTN_bhupal_singh_deo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTN_bhupal_singh_deo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTN_bhupal_singh_deo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTN_bhupal_singh_deo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTN_bhupal_singh_deo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PTN_hiravajra_singh_deo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTN_hiravajra_singh_deo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTN_hiravajra_singh_deo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PTN_hiravajra_singh_deo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PTN_hiravajra_singh_deo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PUD_raghunatha_tondaiman_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PUD_raghunatha_tondaiman_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PUD_raghunatha_tondaiman_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PUD_raghunatha_tondaiman_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PUD_raghunatha_tondaiman_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PUD_ramachandra_tondaiman_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PUD_ramachandra_tondaiman_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PUD_ramachandra_tondaiman_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PUD_ramachandra_tondaiman_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PUD_ramachandra_tondaiman_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SAT_pratap_singh_bhonsle_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_pratap_singh_bhonsle_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_pratap_singh_bhonsle_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_pratap_singh_bhonsle_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_pratap_singh_bhonsle_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SAT_shahaji_bhonsle_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_shahaji_bhonsle_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_shahaji_bhonsle_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_shahaji_bhonsle_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_shahaji_bhonsle_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SAT_nana_saheb_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_nana_saheb_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_nana_saheb_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_nana_saheb_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_nana_saheb_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SAT_baji_rao_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_baji_rao_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_baji_rao_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAT_baji_rao_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAT_baji_rao_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SUR_lal_amar_singh_deo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SUR_lal_amar_singh_deo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SUR_lal_amar_singh_deo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SUR_lal_amar_singh_deo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SUR_lal_amar_singh_deo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SUR_indrajit_singh_deo_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SUR_indrajit_singh_deo_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SUR_indrajit_singh_deo_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SUR_indrajit_singh_deo_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SUR_indrajit_singh_deo_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TRA_rama_varma_iii_venad_swaroopam_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRA_rama_varma_iii_venad_swaroopam_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRA_rama_varma_iii_venad_swaroopam_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRA_rama_varma_iii_venad_swaroopam_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRA_rama_varma_iii_venad_swaroopam_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TRA_thanjavur_subha_rao_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRA_thanjavur_subha_rao_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRA_thanjavur_subha_rao_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRA_thanjavur_subha_rao_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRA_thanjavur_subha_rao_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}


#Itália - ITALY

create_PAP_gregorius_cappellari = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_gregorius_cappellari
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_gregorius_cappellari
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_gregorius_cappellari
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_gregorius_cappellari
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PAP_carlo_armellini = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_carlo_armellini
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_carlo_armellini
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_carlo_armellini
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_carlo_armellini
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PAL_luigi_lambruschini = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAL_luigi_lambruschini
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAL_luigi_lambruschini
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAL_luigi_lambruschini
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAL_luigi_lambruschini
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PAP_giovanni_maria_ferretti = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_giovanni_maria_ferretti
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_giovanni_maria_ferretti
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_giovanni_maria_ferretti
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_giovanni_maria_ferretti
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PAP_filippo_resta = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_filippo_resta
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_filippo_resta
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAP_filippo_resta
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAP_filippo_resta
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SIC_ferdinando_di_borbone_delle_due_sicilie = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_ferdinando_di_borbone_delle_due_sicilie
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_ferdinando_di_borbone_delle_due_sicilie
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_ferdinando_di_borbone_delle_due_sicilie
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_ferdinando_di_borbone_delle_due_sicilie
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SIC_francesco_di_borbone_delle_due_sicilie = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_francesco_di_borbone_delle_due_sicilie
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_francesco_di_borbone_delle_due_sicilie
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_francesco_di_borbone_delle_due_sicilie
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_francesco_di_borbone_delle_due_sicilie
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SIC_carlo_filangieri = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_carlo_filangieri
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_carlo_filangieri
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_carlo_filangieri
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_carlo_filangieri
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SIC_prince_leopoldo_di_borbone_delle_due_sicilie = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_prince_leopoldo_di_borbone_delle_due_sicilie
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_prince_leopoldo_di_borbone_delle_due_sicilie
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_prince_leopoldo_di_borbone_delle_due_sicilie
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_prince_leopoldo_di_borbone_delle_due_sicilie
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SIC_raffaele_de_cosa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_raffaele_de_cosa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_raffaele_de_cosa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIC_raffaele_de_cosa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIC_raffaele_de_cosa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ITA_giovanni_agnelli = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ITA_giovanni_agnelli
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ITA_giovanni_agnelli
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ITA_giovanni_agnelli
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ITA_giovanni_agnelli
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ITA_giovanni_ansaldo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ITA_giovanni_ansaldo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ITA_giovanni_ansaldo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ITA_giovanni_ansaldo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ITA_giovanni_ansaldo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_garibaldi_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = garibaldi_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = garibaldi_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = garibaldi_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = garibaldi_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_admiral_pellion_di_persano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_admiral_pellion_di_persano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_admiral_pellion_di_persano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_admiral_pellion_di_persano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_admiral_pellion_di_persano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_general_de_sonnaz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_de_sonnaz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_de_sonnaz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_de_sonnaz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_de_sonnaz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_general_la_marmora = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_la_marmora
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_la_marmora
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_la_marmora
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_la_marmora
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_general_bava = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_bava
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_bava
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_bava
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_bava
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_general_cadorna = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_cadorna
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_cadorna
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_cadorna
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_cadorna
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_general_chiodo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_chiodo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_chiodo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_general_chiodo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_general_chiodo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sic_general_diaz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sic_general_diaz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sic_general_diaz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sic_general_diaz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sic_general_diaz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_benso_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_benso_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_benso_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_benso_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_benso_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_charles_albert_sardinia_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_charles_albert_sardinia_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_charles_albert_sardinia_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_charles_albert_sardinia_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_charles_albert_sardinia_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_sar_victor_emmanuel_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_victor_emmanuel_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_victor_emmanuel_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sar_victor_emmanuel_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sar_victor_emmanuel_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Japão - JAPAN

create_JAP_ninko_yamato = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_ninko_yamato
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_ninko_yamato
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_ninko_yamato
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_ninko_yamato
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAP_komei_yamato = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_komei_yamato
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_komei_yamato
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_komei_yamato
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_komei_yamato
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAP_meiji_yamato = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_meiji_yamato
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_meiji_yamato
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_meiji_yamato
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_meiji_yamato
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAP_taisho_yamato = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_taisho_yamato
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_taisho_yamato
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_taisho_yamato
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_taisho_yamato
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAP_showa_yamato = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_showa_yamato
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_showa_yamato
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_showa_yamato
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_showa_yamato
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAP_ienari_tokugawa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_ienari_tokugawa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_ienari_tokugawa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_ienari_tokugawa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_ienari_tokugawa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAP_ieyoshi_tokugawa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_ieyoshi_tokugawa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_ieyoshi_tokugawa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_ieyoshi_tokugawa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_ieyoshi_tokugawa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_JAP_iwasaki_yataro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_iwasaki_yataro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_iwasaki_yataro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = JAP_iwasaki_yataro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = JAP_iwasaki_yataro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_jap_admiral_togo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jap_admiral_togo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jap_admiral_togo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jap_admiral_togo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jap_admiral_togo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_jap_general_gentaro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jap_general_gentaro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jap_general_gentaro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jap_general_gentaro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jap_general_gentaro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_jap_general_oyama = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jap_general_oyama
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jap_general_oyama
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jap_general_oyama
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jap_general_oyama
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Jhansi - JHANSI

create_jhn_rani_of_jhansi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jhn_rani_of_jhansi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jhn_rani_of_jhansi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = jhn_rani_of_jhansi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = jhn_rani_of_jhansi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Koreia - KOREA

create_KOR_yi_hwan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_hwan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_hwan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_hwan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_hwan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_yi_byeon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_byeon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_byeon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_byeon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_byeon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_yi_myongbok = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_myongbok
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_myongbok
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_myongbok
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_myongbok
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_yi_sang_hwang = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_sang_hwang
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_sang_hwang
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_yi_sang_hwang
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_yi_sang_hwang
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_gim_jeong_hui = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_gim_jeong_hui
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_gim_jeong_hui
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_gim_jeong_hui
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_gim_jeong_hui
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_jo_in_young = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_jo_in_young
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_jo_in_young
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_jo_in_young
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_jo_in_young
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_im_sang_ok = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_im_sang_ok
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_im_sang_ok
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_im_sang_ok
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_im_sang_ok
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_namgung_ok = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_namgung_ok
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_namgung_ok
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_namgung_ok
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_namgung_ok
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_empress_myeongseong = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_empress_myeongseong
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_empress_myeongseong
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_empress_myeongseong
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_empress_myeongseong
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KOR_choi_je_woo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_choi_je_woo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_choi_je_woo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KOR_choi_je_woo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KOR_choi_je_woo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Kracovia - KRAKOW

create_KRA_Kasper_Wieloglowski = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Kasper_Wieloglowski
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Kasper_Wieloglowski
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Kasper_Wieloglowski
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Kasper_Wieloglowski
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KRA_Jozef_Haller = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Jozef_Haller
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Jozef_Haller
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Jozef_Haller
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Jozef_Haller
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KRA_Jan_Schindler = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Jan_Schindler
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Jan_Schindler
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Jan_Schindler
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Jan_Schindler
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KRA_Hilary_Walenty_Meciszewski = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Hilary_Walenty_Meciszewski
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Hilary_Walenty_Meciszewski
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KRA_Hilary_Walenty_Meciszewski
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KRA_Hilary_Walenty_Meciszewski
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Ladakh - LADAKH

create_LAD_tsepal_dondup_namgyal_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = LAD_tsepal_dondup_namgyal_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = LAD_tsepal_dondup_namgyal_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = LAD_tsepal_dondup_namgyal_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = LAD_tsepal_dondup_namgyal_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_LAD_kunga_namgyal_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = LAD_kunga_namgyal_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = LAD_kunga_namgyal_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = LAD_kunga_namgyal_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = LAD_kunga_namgyal_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Madagascar - MADAGASCAR

create_MAD_ranavalona_hova = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAD_ranavalona_hova
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAD_ranavalona_hova
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MAD_ranavalona_hova
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MAD_ranavalona_hova
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#México - MEXICO

create_mex_miguel_barragan_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_miguel_barragan_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_miguel_barragan_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_miguel_barragan_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_miguel_barragan_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_anastasio_bustamante = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_anastasio_bustamante
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_anastasio_bustamante
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_anastasio_bustamante
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_anastasio_bustamante
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_mariano_paredes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_mariano_paredes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_mariano_paredes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_mariano_paredes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_mariano_paredes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_juan_alvarez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_juan_alvarez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_juan_alvarez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_juan_alvarez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_juan_alvarez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_lucas_alaman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_lucas_alaman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_lucas_alaman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_lucas_alaman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_lucas_alaman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_valentin_gomez_farias = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_valentin_gomez_farias
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_valentin_gomez_farias
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_valentin_gomez_farias
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_valentin_gomez_farias
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_rafael_magino_i_medivil = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_rafael_magino_i_medivil
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_rafael_magino_i_medivil
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_rafael_magino_i_medivil
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_rafael_magino_i_medivil
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_Thomas_Thompson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_Thomas_Thompson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_Thomas_Thompson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_Thomas_Thompson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_Thomas_Thompson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MEX_antonio_lopez_de_santa_anna = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_antonio_lopez_de_santa_anna
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_antonio_lopez_de_santa_anna
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MEX_antonio_lopez_de_santa_anna
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MEX_antonio_lopez_de_santa_anna
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mex_general_diaz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_general_diaz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_general_diaz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_general_diaz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_general_diaz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mex_general_zaragoza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_general_zaragoza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_general_zaragoza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_general_zaragoza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_general_zaragoza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mex_juarez_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_juarez_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_juarez_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mex_juarez_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mex_juarez_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Montenegro - MONTENEGRO

create_mon_general_mirko_petrovic_njegos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_general_mirko_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_general_mirko_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_general_mirko_petrovic_njegos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_general_mirko_petrovic_njegos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_petar_II_petrovic_njegos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_petar_II_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_petar_II_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_petar_II_petrovic_njegos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_petar_II_petrovic_njegos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_danilo_petrovic_njegos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_danilo_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_danilo_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_danilo_petrovic_njegos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_danilo_petrovic_njegos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_kenjo_jankoviC_ = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_kenjo_jankoviC_
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_kenjo_jankoviC_
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_kenjo_jankoviC_
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_kenjo_jankoviC_
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_stanko_petrovic_njegos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_stanko_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_stanko_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_stanko_petrovic_njegos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_stanko_petrovic_njegos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_dordije_petrovic_njegos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_dordije_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_dordije_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_dordije_petrovic_njegos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_dordije_petrovic_njegos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_general_novica_cerovic = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_general_novica_cerovic
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_general_novica_cerovic
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_general_novica_cerovic
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_general_novica_cerovic
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_general_petar_vukotić = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_general_petar_vukotić
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_general_petar_vukotić
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_general_petar_vukotić
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_general_petar_vukotić
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_nikola_petrovic_njegos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_nikola_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_nikola_petrovic_njegos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_nikola_petrovic_njegos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_nikola_petrovic_njegos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_mon_ali_pasha_rizvanbegovic = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_ali_pasha_rizvanbegovic
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_ali_pasha_rizvanbegovic
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = mon_ali_pasha_rizvanbegovic
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = mon_ali_pasha_rizvanbegovic
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Marrocos - MORROCOS

create_MOR_abd_al_rahman_al_alawi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MOR_abd_al_rahman_al_alawi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MOR_abd_al_rahman_al_alawi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MOR_abd_al_rahman_al_alawi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MOR_abd_al_rahman_al_alawi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MOR_muhammad_al_alawi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MOR_muhammad_al_alawi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MOR_muhammad_al_alawi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MOR_muhammad_al_alawi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MOR_muhammad_al_alawi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Nativo Americano - NATIVE AMERICAN

create_NZP_tuekakas_wallowa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NZP_tuekakas_wallowa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NZP_tuekakas_wallowa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NZP_tuekakas_wallowa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NZP_tuekakas_wallowa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Países Baixos - NETHERLANDS

create_NET_willem_i_van_oranje_nassau = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_willem_i_van_oranje_nassau
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_willem_i_van_oranje_nassau
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_willem_i_van_oranje_nassau
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_willem_i_van_oranje_nassau
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NET_willem_ii_van_oranje_nassau = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_willem_ii_van_oranje_nassau
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_willem_ii_van_oranje_nassau
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_willem_ii_van_oranje_nassau
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_willem_ii_van_oranje_nassau
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NET_david_hendrik_chasse = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_david_hendrik_chasse
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_david_hendrik_chasse
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_david_hendrik_chasse
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_david_hendrik_chasse
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NET_engelbertus_lucas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_engelbertus_lucas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_engelbertus_lucas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NET_engelbertus_lucas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NET_engelbertus_lucas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_net_admiral_rijk = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_admiral_rijk
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_admiral_rijk
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_admiral_rijk
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_admiral_rijk
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_net_general_de_kock = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_general_de_kock
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_general_de_kock
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_general_de_kock
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_general_de_kock
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_net_general_michiels = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_general_michiels
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_general_michiels
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_general_michiels
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_general_michiels
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_net_general_list = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_general_list
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_general_list
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = net_general_list
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = net_general_list
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Noruéga - NORWAY

create_NOR_peter_steenstrup = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NOR_peter_steenstrup
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NOR_peter_steenstrup
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NOR_peter_steenstrup
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NOR_peter_steenstrup
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_NOR_sam_eyde = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NOR_sam_eyde
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NOR_sam_eyde
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = NOR_sam_eyde
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = NOR_sam_eyde
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_nor_thrane_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = nor_thrane_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = nor_thrane_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = nor_thrane_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = nor_thrane_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Pérsia - PERSIA

create_per_mohammad_shah_qajar_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = per_mohammad_shah_qajar_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = per_mohammad_shah_qajar_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = per_mohammad_shah_qajar_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = per_mohammad_shah_qajar_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_per_nasir_al_din_qajar_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = per_nasir_al_din_qajar_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = per_nasir_al_din_qajar_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = per_nasir_al_din_qajar_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = per_nasir_al_din_qajar_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PER_reza_pahlavi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PER_reza_pahlavi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PER_reza_pahlavi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PER_reza_pahlavi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PER_reza_pahlavi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PER_mirza_kuchik_khan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PER_mirza_kuchik_khan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PER_mirza_kuchik_khan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PER_mirza_kuchik_khan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PER_mirza_kuchik_khan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PER_sattar_khan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PER_sattar_khan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PER_sattar_khan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PER_sattar_khan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PER_sattar_khan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Peru - PERU

create_PEU_Luis_Jose_de_Orbegoso = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Luis_Jose_de_Orbegoso
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Luis_Jose_de_Orbegoso
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Luis_Jose_de_Orbegoso
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Luis_Jose_de_Orbegoso
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_Nicolas_Fernandez_de_Pierola = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Nicolas_Fernandez_de_Pierola
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Nicolas_Fernandez_de_Pierola
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Nicolas_Fernandez_de_Pierola
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Nicolas_Fernandez_de_Pierola
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_Antonio_Huachaca = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Antonio_Huachaca
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Antonio_Huachaca
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Antonio_Huachaca
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Antonio_Huachaca
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_Felipe_Salaverry = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Felipe_Salaverry
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Felipe_Salaverry
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Felipe_Salaverry
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Felipe_Salaverry
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_Agustin_Gamarra = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Agustin_Gamarra
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Agustin_Gamarra
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Agustin_Gamarra
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Agustin_Gamarra
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_Jose_de_Goyeneche = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Jose_de_Goyeneche
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Jose_de_Goyeneche
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Jose_de_Goyeneche
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Jose_de_Goyeneche
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_jorge_de_benavente_y_macoaga = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_jorge_de_benavente_y_macoaga
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_jorge_de_benavente_y_macoaga
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_jorge_de_benavente_y_macoaga
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_jorge_de_benavente_y_macoaga
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_Manuel_Salazar_y_Baquijano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Manuel_Salazar_y_Baquijano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Manuel_Salazar_y_Baquijano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_Manuel_Salazar_y_Baquijano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_Manuel_Salazar_y_Baquijano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_bartoleme_herrera = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_bartoleme_herrera
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_bartoleme_herrera
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_bartoleme_herrera
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_bartoleme_herrera
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_francisco_xavier_de_luna_pizarro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_francisco_xavier_de_luna_pizarro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_francisco_xavier_de_luna_pizarro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_francisco_xavier_de_luna_pizarro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_francisco_xavier_de_luna_pizarro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_manuel_menendez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_manuel_menendez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_manuel_menendez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_manuel_menendez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_manuel_menendez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_francisco_quiros_y_ampudia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_francisco_quiros_y_ampudia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_francisco_quiros_y_ampudia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_francisco_quiros_y_ampudia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_francisco_quiros_y_ampudia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_manuel_pardo_y_lavalle = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_manuel_pardo_y_lavalle
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_manuel_pardo_y_lavalle
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_manuel_pardo_y_lavalle
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_manuel_pardo_y_lavalle
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_domingo_elias = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_domingo_elias
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_domingo_elias
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_domingo_elias
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_domingo_elias
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_sebastian_lorente = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_sebastian_lorente
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_sebastian_lorente
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_sebastian_lorente
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_sebastian_lorente
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_pedro_galvez_egusquiza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_pedro_galvez_egusquiza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_pedro_galvez_egusquiza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_pedro_galvez_egusquiza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_pedro_galvez_egusquiza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_nicolas_de_pierola = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_nicolas_de_pierola
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_nicolas_de_pierola
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_nicolas_de_pierola
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_nicolas_de_pierola
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_julio_cesar_arana_del_aguila = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_julio_cesar_arana_del_aguila
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_julio_cesar_arana_del_aguila
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_julio_cesar_arana_del_aguila
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_julio_cesar_arana_del_aguila
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_jose_pardo_y_barreda = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_jose_pardo_y_barreda
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_jose_pardo_y_barreda
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_jose_pardo_y_barreda
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_jose_pardo_y_barreda
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_augusto_leguia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_augusto_leguia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_augusto_leguia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_augusto_leguia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_augusto_leguia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_enrique_lopez_albujar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_enrique_lopez_albujar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_enrique_lopez_albujar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_enrique_lopez_albujar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_enrique_lopez_albujar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_guillermo_billinghurst = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_guillermo_billinghurst
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_guillermo_billinghurst
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_guillermo_billinghurst
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_guillermo_billinghurst
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_victor_raul_haya_de_la_torre = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_victor_raul_haya_de_la_torre
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_victor_raul_haya_de_la_torre
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_victor_raul_haya_de_la_torre
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_victor_raul_haya_de_la_torre
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_emilio_lisson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_emilio_lisson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_emilio_lisson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_emilio_lisson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_emilio_lisson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_ramon_castilla = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_ramon_castilla
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_ramon_castilla
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_ramon_castilla
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_ramon_castilla
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_manuel_ignacio_de_vivanco = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_manuel_ignacio_de_vivanco
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_manuel_ignacio_de_vivanco
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_manuel_ignacio_de_vivanco
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_manuel_ignacio_de_vivanco
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_juan_francisco_de_vidal_la_hoz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_juan_francisco_de_vidal_la_hoz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_juan_francisco_de_vidal_la_hoz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_juan_francisco_de_vidal_la_hoz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_juan_francisco_de_vidal_la_hoz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_juan_cristostomo_torrico = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_juan_cristostomo_torrico
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_juan_cristostomo_torrico
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_juan_cristostomo_torrico
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_juan_cristostomo_torrico
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_antonio_gutierrez_de_la_fuente = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_antonio_gutierrez_de_la_fuente
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_antonio_gutierrez_de_la_fuente
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_antonio_gutierrez_de_la_fuente
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_antonio_gutierrez_de_la_fuente
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_jose_rufino_echenique = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_jose_rufino_echenique
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_jose_rufino_echenique
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_jose_rufino_echenique
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_jose_rufino_echenique
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_miguel_de_san_roman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_miguel_de_san_roman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_miguel_de_san_roman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_miguel_de_san_roman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_miguel_de_san_roman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_pedro_pablo_bermudez_ascarza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_pedro_pablo_bermudez_ascarza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_pedro_pablo_bermudez_ascarza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_pedro_pablo_bermudez_ascarza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_pedro_pablo_bermudez_ascarza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_andres_avelino_caceres = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_andres_avelino_caceres
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_andres_avelino_caceres
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_andres_avelino_caceres
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_andres_avelino_caceres
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_miguel_iglesias = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_miguel_iglesias
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_miguel_iglesias
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_miguel_iglesias
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_miguel_iglesias
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PEU_pedro_pablo_atusparia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_pedro_pablo_atusparia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_pedro_pablo_atusparia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PEU_pedro_pablo_atusparia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PEU_pedro_pablo_atusparia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_peu_admiral_grau = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = peu_admiral_grau
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = peu_admiral_grau
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = peu_admiral_grau
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = peu_admiral_grau
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Portugal - PORTUGAL

create_POR_maria_ii_de_braganca = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_maria_ii_de_braganca
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_maria_ii_de_braganca
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_maria_ii_de_braganca
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_maria_ii_de_braganca
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_POR_antonio_jose_severim_de_noronha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_antonio_jose_severim_de_noronha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_antonio_jose_severim_de_noronha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_antonio_jose_severim_de_noronha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_antonio_jose_severim_de_noronha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_POR_antonio_manuel_de_noronha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_antonio_manuel_de_noronha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_antonio_manuel_de_noronha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_antonio_manuel_de_noronha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_antonio_manuel_de_noronha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_POR_luis_do_rego_barreto = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_luis_do_rego_barreto
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_luis_do_rego_barreto
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = POR_luis_do_rego_barreto
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = POR_luis_do_rego_barreto
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_por_general_de_mesquita = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = por_general_de_mesquita
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = por_general_de_mesquita
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = por_general_de_mesquita
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = por_general_de_mesquita
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Paraguai - PARAGUAY

create_PRG_carlos_antonio_lopez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_carlos_antonio_lopez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_carlos_antonio_lopez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_carlos_antonio_lopez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_carlos_antonio_lopez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_francisco_solano_lopez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_francisco_solano_lopez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_francisco_solano_lopez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_francisco_solano_lopez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_francisco_solano_lopez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_jose_gaspar_rodriguez_de_francia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_gaspar_rodriguez_de_francia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_gaspar_rodriguez_de_francia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_gaspar_rodriguez_de_francia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_gaspar_rodriguez_de_francia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_policarpo_patino = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_policarpo_patino
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_policarpo_patino
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_policarpo_patino
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_policarpo_patino
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_manuel_antonio_ortiz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_manuel_antonio_ortiz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_manuel_antonio_ortiz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_manuel_antonio_ortiz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_manuel_antonio_ortiz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_andres_gill = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_andres_gill
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_andres_gill
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_andres_gill
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_andres_gill
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_mariano_roque_alonso = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_mariano_roque_alonso
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_mariano_roque_alonso
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_mariano_roque_alonso
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_mariano_roque_alonso
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_basilio_lopez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_basilio_lopez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_basilio_lopez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_basilio_lopez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_basilio_lopez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_juan_bautista_gill = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_juan_bautista_gill
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_juan_bautista_gill
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_juan_bautista_gill
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_juan_bautista_gill
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_arsenio_lopez_decoud = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_arsenio_lopez_decoud
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_arsenio_lopez_decoud
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_arsenio_lopez_decoud
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_arsenio_lopez_decoud
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_pedro_pablo_pena = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_pedro_pablo_pena
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_pedro_pablo_pena
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_pedro_pablo_pena
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_pedro_pablo_pena
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_candido_bareiro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_candido_bareiro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_candido_bareiro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_candido_bareiro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_candido_bareiro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_pedro_taboada_zarza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_pedro_taboada_zarza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_pedro_taboada_zarza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_pedro_taboada_zarza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_pedro_taboada_zarza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_cecilio_baez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_cecilio_baez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_cecilio_baez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_cecilio_baez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_cecilio_baez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_rufino_recalde_milesi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_rufino_recalde_milesi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_rufino_recalde_milesi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_rufino_recalde_milesi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_rufino_recalde_milesi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_manuel_ferreira_sosa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_manuel_ferreira_sosa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_manuel_ferreira_sosa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_manuel_ferreira_sosa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_manuel_ferreira_sosa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_jacobo_friedmann = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jacobo_friedmann
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jacobo_friedmann
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jacobo_friedmann
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jacobo_friedmann
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_juan_sinforiano = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_juan_sinforiano
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_juan_sinforiano
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_juan_sinforiano
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_juan_sinforiano
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_bernardino_caballero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_bernardino_caballero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_bernardino_caballero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_bernardino_caballero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_bernardino_caballero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_patricio_escobar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_patricio_escobar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_patricio_escobar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_patricio_escobar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_patricio_escobar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_jose_maria_bruguez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_maria_bruguez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_maria_bruguez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_maria_bruguez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_maria_bruguez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_jose_felix_estigarribia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_felix_estigarribia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_felix_estigarribia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_felix_estigarribia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_felix_estigarribia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_rafael_franco = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_rafael_franco
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_rafael_franco
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_rafael_franco
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_rafael_franco
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_jose_eduvigis_diaz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_eduvigis_diaz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_eduvigis_diaz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_jose_eduvigis_diaz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_jose_eduvigis_diaz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_juan_silvano_godoi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_juan_silvano_godoi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_juan_silvano_godoi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_juan_silvano_godoi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_juan_silvano_godoi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRG_rafael_barrett = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_rafael_barrett
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_rafael_barrett
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRG_rafael_barrett
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRG_rafael_barrett
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_prg_general_aquino = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_aquino
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_aquino
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_aquino
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_aquino
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_prg_general_bruguez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_bruguez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_bruguez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_bruguez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_bruguez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_prg_general_caballero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_caballero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_caballero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_caballero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_caballero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_prg_general_diaz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_diaz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_diaz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_general_diaz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_general_diaz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_prg_admiral_meza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_admiral_meza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_admiral_meza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = prg_admiral_meza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = prg_admiral_meza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Prússia - PRUSSIA

create_PRU_otto_von_bismarck = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRU_otto_von_bismarck
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRU_otto_von_bismarck
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRU_otto_von_bismarck
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRU_otto_von_bismarck
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRU_alfred_krupp = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRU_alfred_krupp
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRU_alfred_krupp
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRU_alfred_krupp
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRU_alfred_krupp
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PRU_werner_von_siemens = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRU_werner_von_siemens
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRU_werner_von_siemens
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PRU_werner_von_siemens
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PRU_werner_von_siemens
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_admiral_von_tirpitz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_admiral_von_tirpitz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_admiral_von_tirpitz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_admiral_von_tirpitz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_admiral_von_tirpitz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_admiral_von_spee = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_admiral_von_spee
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_admiral_von_spee
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_admiral_von_spee
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_admiral_von_spee
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_admiral_von_hohenzollern = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_admiral_von_hohenzollern
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_admiral_von_hohenzollern
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_admiral_von_hohenzollern
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_admiral_von_hohenzollern
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_general_zu_dohna_schlobitten = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_zu_dohna_schlobitten
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_zu_dohna_schlobitten
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_zu_dohna_schlobitten
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_zu_dohna_schlobitten
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_general_von_moltke = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_moltke
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_moltke
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_moltke
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_moltke
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_general_von_roon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_roon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_roon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_roon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_roon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_general_prince_friedrich_karl = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_prince_friedrich_karl
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_prince_friedrich_karl
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_prince_friedrich_karl
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_prince_friedrich_karl
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_general_von_goeben = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_goeben
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_goeben
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_goeben
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_goeben
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_general_von_hindenburg = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_hindenburg
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_hindenburg
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_von_hindenburg
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_von_hindenburg
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_general_ludendorff = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_ludendorff
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_ludendorff
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_general_ludendorff
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_general_ludendorff
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_frm_grimm_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = frm_grimm_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = frm_grimm_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = frm_grimm_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = frm_grimm_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_wilhelm_III_hohenzollern_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_wilhelm_III_hohenzollern_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_wilhelm_III_hohenzollern_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_wilhelm_III_hohenzollern_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_wilhelm_III_hohenzollern_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_wilhelm_IV_hohenzollern_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_wilhelm_IV_hohenzollern_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_wilhelm_IV_hohenzollern_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_wilhelm_IV_hohenzollern_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_wilhelm_IV_hohenzollern_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Rússia - RUSSIA

create_RUS_nicholas_i = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nicholas_i
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nicholas_i
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nicholas_i
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nicholas_i
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_ii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_tsarevich_nicholas_alexandrovich = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_tsarevich_nicholas_alexandrovich
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_tsarevich_nicholas_alexandrovich
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_tsarevich_nicholas_alexandrovich
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_tsarevich_nicholas_alexandrovich
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_iii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_iii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_iii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_iii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_iii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nicholas_ii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nicholas_ii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nicholas_ii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nicholas_ii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nicholas_ii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_george_i = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_george_i
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_george_i
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_george_i
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_george_i
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_michael_ii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_michael_ii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_michael_ii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_michael_ii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_michael_ii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexei_ii = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexei_ii
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexei_ii
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexei_ii
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexei_ii
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_von_benckendorff = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_von_benckendorff
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_von_benckendorff
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_von_benckendorff
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_von_benckendorff
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_mikhail_speransky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_speransky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_speransky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_speransky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_speransky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_sergei_uvarov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_sergei_uvarov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_sergei_uvarov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_sergei_uvarov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_sergei_uvarov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_filaret_drozdov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_filaret_drozdov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_filaret_drozdov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_filaret_drozdov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_filaret_drozdov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_aleksandr_herzen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_aleksandr_herzen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_aleksandr_herzen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_aleksandr_herzen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_aleksandr_herzen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_yevhen_hrebinka = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_yevhen_hrebinka
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_yevhen_hrebinka
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_yevhen_hrebinka
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_yevhen_hrebinka
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexei_bobrinsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexei_bobrinsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexei_bobrinsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexei_bobrinsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexei_bobrinsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_witte_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_witte_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_witte_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_witte_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_witte_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_elena_pavlovna_romanova = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_elena_pavlovna_romanova
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_elena_pavlovna_romanova
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_elena_pavlovna_romanova
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_elena_pavlovna_romanova
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_konstantin_nikolayevich_romanov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_konstantin_nikolayevich_romanov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_konstantin_nikolayevich_romanov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_konstantin_nikolayevich_romanov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_konstantin_nikolayevich_romanov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolai_alekseevich_milyutin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_alekseevich_milyutin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_alekseevich_milyutin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_alekseevich_milyutin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_alekseevich_milyutin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_egor_frantsevich_kankrin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_egor_frantsevich_kankrin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_egor_frantsevich_kankrin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_egor_frantsevich_kankrin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_egor_frantsevich_kankrin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_ageevich_abaza = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ageevich_abaza
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ageevich_abaza
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ageevich_abaza
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ageevich_abaza
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_ivan_evseevich_popov-veniaminov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_evseevich_popov-veniaminov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_evseevich_popov-veniaminov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_evseevich_popov-veniaminov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_evseevich_popov-veniaminov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolai_stepanovich_klementyevsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_stepanovich_klementyevsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_stepanovich_klementyevsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_stepanovich_klementyevsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_stepanovich_klementyevsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_yakov_sergeevich_nikolsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_yakov_sergeevich_nikolsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_yakov_sergeevich_nikolsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_yakov_sergeevich_nikolsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_yakov_sergeevich_nikolsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_pavel_ivanovich_raev = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_ivanovich_raev
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_ivanovich_raev
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_ivanovich_raev
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_ivanovich_raev
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_vasilyevich_vadkovsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_vasilyevich_vadkovsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_vasilyevich_vadkovsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_vasilyevich_vadkovsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_vasilyevich_vadkovsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_vasily_nikiforovich_bogoyavlensky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_vasily_nikiforovich_bogoyavlensky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_vasily_nikiforovich_bogoyavlensky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_vasily_nikiforovich_bogoyavlensky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_vasily_nikiforovich_bogoyavlensky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_vasily_ivanovich_bellavin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_vasily_ivanovich_bellavin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_vasily_ivanovich_bellavin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_vasily_ivanovich_bellavin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_vasily_ivanovich_bellavin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexey_pavlovich_khrapovitsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexey_pavlovich_khrapovitsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexey_pavlovich_khrapovitsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexey_pavlovich_khrapovitsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexey_pavlovich_khrapovitsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_peter_fedorovich_polyansky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_peter_fedorovich_polyansky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_peter_fedorovich_polyansky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_peter_fedorovich_polyansky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_peter_fedorovich_polyansky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolai_christianovich_bunge = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_christianovich_bunge
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_christianovich_bunge
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_christianovich_bunge
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_christianovich_bunge
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_konstantin_petrovich_pobedonostsev = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_konstantin_petrovich_pobedonostsev
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_konstantin_petrovich_pobedonostsev
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_konstantin_petrovich_pobedonostsev
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_konstantin_petrovich_pobedonostsev
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_pavel_nikolaevich_ignatiev = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_nikolaevich_ignatiev
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_nikolaevich_ignatiev
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_nikolaevich_ignatiev
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_nikolaevich_ignatiev
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolai_dmitrievich_golitsyn = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_dmitrievich_golitsyn
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_dmitrievich_golitsyn
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_dmitrievich_golitsyn
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_dmitrievich_golitsyn
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_pyotr_arkadyevich_stolypin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pyotr_arkadyevich_stolypin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pyotr_arkadyevich_stolypin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pyotr_arkadyevich_stolypin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pyotr_arkadyevich_stolypin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_viktor_mikhailovich_chernov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_viktor_mikhailovich_chernov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_viktor_mikhailovich_chernov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_viktor_mikhailovich_chernov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_viktor_mikhailovich_chernov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolai_konstantinovich_rerikh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_konstantinovich_rerikh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_konstantinovich_rerikh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_konstantinovich_rerikh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_konstantinovich_rerikh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_fyodorovich_kerensky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_fyodorovich_kerensky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_fyodorovich_kerensky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_fyodorovich_kerensky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_fyodorovich_kerensky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_pavel_nikolaevich_milyukov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_nikolaevich_milyukov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_nikolaevich_milyukov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_nikolaevich_milyukov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_nikolaevich_milyukov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_ivanovich_guchkov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ivanovich_guchkov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ivanovich_guchkov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ivanovich_guchkov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ivanovich_guchkov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexander_ivanovich_konovalov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ivanovich_konovalov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ivanovich_konovalov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexander_ivanovich_konovalov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexander_ivanovich_konovalov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_ivan_zakharovich_surikov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_zakharovich_surikov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_zakharovich_surikov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_zakharovich_surikov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_zakharovich_surikov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_georgi_valentinovich_plekhanov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_georgi_valentinovich_plekhanov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_georgi_valentinovich_plekhanov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_georgi_valentinovich_plekhanov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_georgi_valentinovich_plekhanov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_mikhail_vorontsov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_vorontsov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_vorontsov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_vorontsov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_vorontsov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_aleksandr_chernyshyov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_aleksandr_chernyshyov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_aleksandr_chernyshyov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_aleksandr_chernyshyov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_aleksandr_chernyshyov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_ivan_paskevich = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_paskevich
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_paskevich
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_paskevich
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_paskevich
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_matvey_khrapovitsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_matvey_khrapovitsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_matvey_khrapovitsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_matvey_khrapovitsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_matvey_khrapovitsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolay_muravyov_karsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolay_muravyov_karsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolay_muravyov_karsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolay_muravyov_karsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolay_muravyov_karsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_pavel_grabbe = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_grabbe
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_grabbe
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pavel_grabbe
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pavel_grabbe
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_friedrich_von_berg = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_friedrich_von_berg
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_friedrich_von_berg
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_friedrich_von_berg
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_friedrich_von_berg
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_general_chicherin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_chicherin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_chicherin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_chicherin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_chicherin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_general_von_tottleben = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_von_tottleben
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_von_tottleben
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_von_tottleben
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_von_tottleben
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_general_von_rennenkampf = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_von_rennenkampf
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_von_rennenkampf
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_von_rennenkampf
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_von_rennenkampf
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_general_grand_duke_nicholas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_grand_duke_nicholas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_grand_duke_nicholas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_grand_duke_nicholas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_grand_duke_nicholas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_general_brusilov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_brusilov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_brusilov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_brusilov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_brusilov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_general_wrangel = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_wrangel
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_wrangel
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_wrangel
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_wrangel
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_general_skobelev = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_skobelev
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_skobelev
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_general_skobelev
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_general_skobelev
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_mikhail_tarielovich_loris-melikov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_tarielovich_loris-melikov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_tarielovich_loris-melikov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_tarielovich_loris-melikov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_tarielovich_loris-melikov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_sergei_alexandrovich_romanov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_sergei_alexandrovich_romanov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_sergei_alexandrovich_romanov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_sergei_alexandrovich_romanov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_sergei_alexandrovich_romanov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_dmitry_milyutin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_dmitry_milyutin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_dmitry_milyutin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_dmitry_milyutin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_dmitry_milyutin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_mikhail_lazarev = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_lazarev
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_lazarev
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_mikhail_lazarev
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_mikhail_lazarev
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_fabian_gottlieb_von_bellingshausen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_fabian_gottlieb_von_bellingshausen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_fabian_gottlieb_von_bellingshausen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_fabian_gottlieb_von_bellingshausen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_fabian_gottlieb_von_bellingshausen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_vasily_zavoyko = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_vasily_zavoyko
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_vasily_zavoyko
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_vasily_zavoyko
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_vasily_zavoyko
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_pyotr_ricord = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pyotr_ricord
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pyotr_ricord
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_pyotr_ricord
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_pyotr_ricord
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_ivan_kupreyanov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_kupreyanov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_kupreyanov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_ivan_kupreyanov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_ivan_kupreyanov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_admiral_makarov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_admiral_makarov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_admiral_makarov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_admiral_makarov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_admiral_makarov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_admiral_nakhimov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_admiral_nakhimov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_admiral_nakhimov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_admiral_nakhimov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_admiral_nakhimov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolai_vasilyevich_tchaikovsky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_vasilyevich_tchaikovsky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_vasilyevich_tchaikovsky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolai_vasilyevich_tchaikovsky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolai_vasilyevich_tchaikovsky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_sergei_gennadievich_nechaev = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_sergei_gennadievich_nechaev
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_sergei_gennadievich_nechaev
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_sergei_gennadievich_nechaev
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_sergei_gennadievich_nechaev
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexey_alekseevich_borovoy = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexey_alekseevich_borovoy
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexey_alekseevich_borovoy
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexey_alekseevich_borovoy
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexey_alekseevich_borovoy
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexey_aleksandrovich_solonovich = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexey_aleksandrovich_solonovich
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexey_aleksandrovich_solonovich
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexey_aleksandrovich_solonovich
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexey_aleksandrovich_solonovich
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_olha_illivna_taratuta = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_olha_illivna_taratuta
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_olha_illivna_taratuta
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_olha_illivna_taratuta
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_olha_illivna_taratuta
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_alexandra_mikhailovna_kollontai = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexandra_mikhailovna_kollontai
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexandra_mikhailovna_kollontai
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_alexandra_mikhailovna_kollontai
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_alexandra_mikhailovna_kollontai
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_aleksei_aladin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_aleksei_aladin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_aleksei_aladin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_aleksei_aladin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_aleksei_aladin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_nestor_makhno = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_nestor_makhno
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_nestor_makhno
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_nestor_makhno
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_nestor_makhno
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_dmitry_ivanovich_pisarev = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_dmitry_ivanovich_pisarev
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_dmitry_ivanovich_pisarev
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_dmitry_ivanovich_pisarev
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_dmitry_ivanovich_pisarev
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_maxim_gorky = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_maxim_gorky
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_maxim_gorky
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_maxim_gorky
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_maxim_gorky
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_leon_trotsky_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_leon_trotsky_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_leon_trotsky_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_leon_trotsky_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_leon_trotsky_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_jaroslaw_dabrowski_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_jaroslaw_dabrowski_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_jaroslaw_dabrowski_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_jaroslaw_dabrowski_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_jaroslaw_dabrowski_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_mikhail_bakunin_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_mikhail_bakunin_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_mikhail_bakunin_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_mikhail_bakunin_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_mikhail_bakunin_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_pyotr_kropotkin_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_pyotr_kropotkin_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_pyotr_kropotkin_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_pyotr_kropotkin_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_pyotr_kropotkin_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_rus_lenin_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_lenin_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_lenin_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = rus_lenin_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = rus_lenin_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_kaz_kenesary_khan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = kaz_kenesary_khan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = kaz_kenesary_khan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = kaz_kenesary_khan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = kaz_kenesary_khan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_RUS_nikolay_putilov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolay_putilov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolay_putilov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = RUS_nikolay_putilov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = RUS_nikolay_putilov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Saxônia - SAXONY

create_sax_general_von_hausen = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sax_general_von_hausen
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sax_general_von_hausen
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = sax_general_von_hausen
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = sax_general_von_hausen
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#África do Sul - SOUTH AFRICA

create_ORA_piet_retief = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORA_piet_retief
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORA_piet_retief
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ORA_piet_retief
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ORA_piet_retief
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SAF_benjamin_durban = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAF_benjamin_durban
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAF_benjamin_durban
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAF_benjamin_durban
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAF_benjamin_durban
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SAF_cecil_rhodes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAF_cecil_rhodes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAF_cecil_rhodes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SAF_cecil_rhodes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SAF_cecil_rhodes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TRN_andries_pretorius = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRN_andries_pretorius
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRN_andries_pretorius
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRN_andries_pretorius
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRN_andries_pretorius
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ZUL_mpande_zulu = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ZUL_mpande_zulu
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ZUL_mpande_zulu
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ZUL_mpande_zulu
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ZUL_mpande_zulu
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TRN_paul_kruger_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRN_paul_kruger_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRN_paul_kruger_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TRN_paul_kruger_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TRN_paul_kruger_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ZUL_dingane = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ZUL_dingane
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ZUL_dingane
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ZUL_dingane
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ZUL_dingane
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ZUL_cetshwayo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ZUL_cetshwayo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ZUL_cetshwayo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ZUL_cetshwayo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ZUL_cetshwayo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Siam - SIAM

create_SIA_nangklao_chakri = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIA_nangklao_chakri
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIA_nangklao_chakri
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIA_nangklao_chakri
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIA_nangklao_chakri
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SIA_pinklao_chakri = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIA_pinklao_chakri
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIA_pinklao_chakri
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SIA_pinklao_chakri
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SIA_pinklao_chakri
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Sikh Empire - SIKH EMPIRE

create_pan_ranjit_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_ranjit_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_ranjit_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_ranjit_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_ranjit_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_kharak_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_kharak_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_kharak_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_kharak_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_kharak_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_nau_nihal_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_nau_nihal_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_nau_nihal_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_nau_nihal_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_nau_nihal_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_duleep_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_duleep_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_duleep_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_duleep_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_duleep_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_dhian_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_dhian_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_dhian_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_dhian_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_dhian_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_hari_singh_nalwa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_hari_singh_nalwa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_hari_singh_nalwa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_hari_singh_nalwa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_hari_singh_nalwa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_fakir_aziz_ud-din = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_fakir_aziz_ud-din
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_fakir_aziz_ud-din
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_fakir_aziz_ud-din
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_fakir_aziz_ud-din
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_datar_kaur = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_datar_kaur
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_datar_kaur
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_datar_kaur
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_datar_kaur
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_sher_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_sher_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_sher_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_sher_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_sher_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_ajit_singh_sandhawalia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_ajit_singh_sandhawalia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_ajit_singh_sandhawalia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_ajit_singh_sandhawalia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_ajit_singh_sandhawalia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PAN_chand_kaur = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAN_chand_kaur
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAN_chand_kaur
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAN_chand_kaur
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAN_chand_kaur
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PAN_jind_kaur = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAN_jind_kaur
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAN_jind_kaur
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAN_jind_kaur
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAN_jind_kaur
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_PAN_lal_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAN_lal_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAN_lal_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = PAN_lal_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = PAN_lal_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_mahan_singh_hazarawala = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_mahan_singh_hazarawala
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_mahan_singh_hazarawala
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_mahan_singh_hazarawala
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_mahan_singh_hazarawala
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_tej_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_tej_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_tej_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_tej_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_tej_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pan_sham_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_sham_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_sham_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pan_sham_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pan_sham_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_KAS_gulab_singh = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KAS_gulab_singh
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KAS_gulab_singh
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = KAS_gulab_singh
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = KAS_gulab_singh
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Espanha - SPAIN

create_spa_isabel_de_borbon_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = spa_isabel_de_borbon_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = spa_isabel_de_borbon_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = spa_isabel_de_borbon_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = spa_isabel_de_borbon_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SPA_juan_medizabal = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_juan_medizabal
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_juan_medizabal
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_juan_medizabal
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_juan_medizabal
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SPA_baldomero_espartero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_baldomero_espartero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_baldomero_espartero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_baldomero_espartero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_baldomero_espartero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SPA_ramon_maria_narvaez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_ramon_maria_narvaez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_ramon_maria_narvaez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_ramon_maria_narvaez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_ramon_maria_narvaez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SPA_victor_saez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_victor_saez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_victor_saez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_victor_saez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_victor_saez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SPA_nazario_equia = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_nazario_equia
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_nazario_equia
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_nazario_equia
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_nazario_equia
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SPA_jose_ramon_rodil = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_jose_ramon_rodil
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_jose_ramon_rodil
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_jose_ramon_rodil
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_jose_ramon_rodil
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_CUB_miguel_tacon_y_rosique = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CUB_miguel_tacon_y_rosique
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CUB_miguel_tacon_y_rosique
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = CUB_miguel_tacon_y_rosique
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = CUB_miguel_tacon_y_rosique
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SPA_pedro_duro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_pedro_duro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_pedro_duro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SPA_pedro_duro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SPA_pedro_duro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Suécia - SWEDEN

create_swe_karl_johan_bernadotte_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_karl_johan_bernadotte_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_karl_johan_bernadotte_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_karl_johan_bernadotte_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_karl_johan_bernadotte_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_swe_oscar_bernadotte_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_oscar_bernadotte_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_oscar_bernadotte_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_oscar_bernadotte_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_oscar_bernadotte_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_swe_charles_bernadotte_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_charles_bernadotte_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_charles_bernadotte_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_charles_bernadotte_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_charles_bernadotte_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_swe_oscar_ii_bernadotte_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_oscar_ii_bernadotte_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_oscar_ii_bernadotte_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_oscar_ii_bernadotte_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_oscar_ii_bernadotte_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_swe_gustaf_v_bernadotte_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_gustaf_v_bernadotte_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_gustaf_v_bernadotte_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_gustaf_v_bernadotte_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_gustaf_v_bernadotte_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_swe_gustaf_peyron = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_gustaf_peyron
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_gustaf_peyron
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_gustaf_peyron
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_gustaf_peyron
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_swe_lars_magnus_ericsson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_lars_magnus_ericsson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_lars_magnus_ericsson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = swe_lars_magnus_ericsson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = swe_lars_magnus_ericsson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SWE_ludvig_nobel = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SWE_ludvig_nobel
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SWE_ludvig_nobel
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SWE_ludvig_nobel
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SWE_ludvig_nobel
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_SWE_fredrik_wester = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SWE_fredrik_wester
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SWE_fredrik_wester
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = SWE_fredrik_wester
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = SWE_fredrik_wester
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Texas - TEXAS

create_TEX_david_burnet = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_david_burnet
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_david_burnet
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_david_burnet
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_david_burnet
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TEX_samuel_houston = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_samuel_houston
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_samuel_houston
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_samuel_houston
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_samuel_houston
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TEX_mirabeau_lamar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_mirabeau_lamar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_mirabeau_lamar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_mirabeau_lamar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_mirabeau_lamar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TEX_thomas_jefferson_rusk = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_thomas_jefferson_rusk
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_thomas_jefferson_rusk
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_thomas_jefferson_rusk
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_thomas_jefferson_rusk
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TEX_William_Travis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_William_Travis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_William_Travis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_William_Travis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_William_Travis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TEX_Charles_Edward_Hawkins = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_Charles_Edward_Hawkins
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_Charles_Edward_Hawkins
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TEX_Charles_Edward_Hawkins
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TEX_Charles_Edward_Hawkins
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Tunísia - TUNISIA

create_TUN_mustafa_ibn_mahmud = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUN_mustafa_ibn_mahmud
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUN_mustafa_ibn_mahmud
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUN_mustafa_ibn_mahmud
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUN_mustafa_ibn_mahmud
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUN_ahmad_al_husaini = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUN_ahmad_al_husaini
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUN_ahmad_al_husaini
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUN_ahmad_al_husaini
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUN_ahmad_al_husaini
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Turquia - TURKEY

create_tur_mahmut_osmanoglu_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_mahmut_osmanoglu_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_mahmut_osmanoglu_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_mahmut_osmanoglu_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_mahmut_osmanoglu_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_tur_abdulmecid_osmanoglu_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_abdulmecid_osmanoglu_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_abdulmecid_osmanoglu_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_abdulmecid_osmanoglu_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_abdulmecid_osmanoglu_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_mehmet_emin_rauf_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mehmet_emin_rauf_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mehmet_emin_rauf_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mehmet_emin_rauf_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mehmet_emin_rauf_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_mustafa_reshid_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mustafa_reshid_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mustafa_reshid_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mustafa_reshid_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mustafa_reshid_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_mustafa_bushatli = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mustafa_bushatli
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mustafa_bushatli
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mustafa_bushatli
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mustafa_bushatli
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_koca_huesrev_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_koca_huesrev_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_koca_huesrev_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_koca_huesrev_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_koca_huesrev_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_mustafa_asim_mekkizade = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mustafa_asim_mekkizade
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mustafa_asim_mekkizade
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_mustafa_asim_mekkizade
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_mustafa_asim_mekkizade
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_resid_mehmed_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_resid_mehmed_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_resid_mehmed_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_resid_mehmed_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_resid_mehmed_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_abdulkerim_nadir_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_abdulkerim_nadir_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_abdulkerim_nadir_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_abdulkerim_nadir_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_abdulkerim_nadir_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_TUR_yaver_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_yaver_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_yaver_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = TUR_yaver_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = TUR_yaver_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_tur_abdulhamid_ii_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_abdulhamid_ii_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_abdulhamid_ii_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_abdulhamid_ii_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_abdulhamid_ii_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_tur_koca_mustafa_reshid_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_koca_mustafa_reshid_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_koca_mustafa_reshid_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_koca_mustafa_reshid_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_koca_mustafa_reshid_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_tur_general_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_general_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_general_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_general_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_general_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_tur_admiral_hobart = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_admiral_hobart
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_admiral_hobart
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_admiral_hobart
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_admiral_hobart
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_tur_general_mehmed_ali = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_general_mehmed_ali
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_general_mehmed_ali
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_general_mehmed_ali
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_general_mehmed_ali
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_tur_general_osman_nuri = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_general_osman_nuri
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_general_osman_nuri
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = tur_general_osman_nuri
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = tur_general_osman_nuri
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#União da América Central - CENTRAL AMERICA UNION

create_MKT_robert_charles_frederic = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MKT_robert_charles_frederic
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MKT_robert_charles_frederic
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MKT_robert_charles_frederic
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MKT_robert_charles_frederic
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_MKT_george_augustus_frederic = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MKT_george_augustus_frederic
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MKT_george_augustus_frederic
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = MKT_george_augustus_frederic
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = MKT_george_augustus_frederic
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_UCA_francisco_morazan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = UCA_francisco_morazan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = UCA_francisco_morazan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = UCA_francisco_morazan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = UCA_francisco_morazan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Uruguai - URUGUAY

create_URU_Manuel_Oribe = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Manuel_Oribe
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Manuel_Oribe
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Manuel_Oribe
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Manuel_Oribe
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_Fructuoso_Rivera = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Fructuoso_Rivera
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Fructuoso_Rivera
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Fructuoso_Rivera
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Fructuoso_Rivera
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_Juan_Antonio_Lavalleja = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Juan_Antonio_Lavalleja
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Juan_Antonio_Lavalleja
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Juan_Antonio_Lavalleja
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Juan_Antonio_Lavalleja
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_joaquin_suarez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_joaquin_suarez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_joaquin_suarez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_joaquin_suarez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_joaquin_suarez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_Ignacio_Oribe = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Ignacio_Oribe
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Ignacio_Oribe
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_Ignacio_Oribe
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_Ignacio_Oribe
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_manuel_herrera_y_obes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_manuel_herrera_y_obes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_manuel_herrera_y_obes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_manuel_herrera_y_obes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_manuel_herrera_y_obes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_andres_lamas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_andres_lamas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_andres_lamas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_andres_lamas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_andres_lamas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_bernardo_prudencio_berro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_bernardo_prudencio_berro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_bernardo_prudencio_berro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_bernardo_prudencio_berro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_bernardo_prudencio_berro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_jose_pedro_varela = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_jose_pedro_varela
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_jose_pedro_varela
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_jose_pedro_varela
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_jose_pedro_varela
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_lorenzo_latorre = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_lorenzo_latorre
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_lorenzo_latorre
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_lorenzo_latorre
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_lorenzo_latorre
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_inocencio_maria_yeregui = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_inocencio_maria_yeregui
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_inocencio_maria_yeregui
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_inocencio_maria_yeregui
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_inocencio_maria_yeregui
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_emilio_reus = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_emilio_reus
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_emilio_reus
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_emilio_reus
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_emilio_reus
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_jose_batlle = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_jose_batlle
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_jose_batlle
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_jose_batlle
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_jose_batlle
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_gabriel_terra = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_gabriel_terra
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_gabriel_terra
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_gabriel_terra
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_gabriel_terra
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_emilio_frugoni = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_emilio_frugoni
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_emilio_frugoni
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_emilio_frugoni
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_emilio_frugoni
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_pedro_manini_rios = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_pedro_manini_rios
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_pedro_manini_rios
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_pedro_manini_rios
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_pedro_manini_rios
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_cesar_diaz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_cesar_diaz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_cesar_diaz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_cesar_diaz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_cesar_diaz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_venancio_flores = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_venancio_flores
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_venancio_flores
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_venancio_flores
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_venancio_flores
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_anacleto_medina = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_anacleto_medina
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_anacleto_medina
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_anacleto_medina
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_anacleto_medina
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_timoteo_aparicio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_timoteo_aparicio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_timoteo_aparicio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_timoteo_aparicio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_timoteo_aparicio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_maximo_tajes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_maximo_tajes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_maximo_tajes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_maximo_tajes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_maximo_tajes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_justino_muniz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_justino_muniz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_justino_muniz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_justino_muniz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_justino_muniz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_lorenzo_batlle = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_lorenzo_batlle
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_lorenzo_batlle
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_lorenzo_batlle
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_lorenzo_batlle
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_ruperto_elichiribehety = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_ruperto_elichiribehety
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_ruperto_elichiribehety
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_ruperto_elichiribehety
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_ruperto_elichiribehety
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_angel_muniz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_angel_muniz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_angel_muniz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_angel_muniz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_angel_muniz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_URU_paulina_luisi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_paulina_luisi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_paulina_luisi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = URU_paulina_luisi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = URU_paulina_luisi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Estados Unidos - United States

create_USA_john_calhoun = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_john_calhoun
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_john_calhoun
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_john_calhoun
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_john_calhoun
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_henry_clay = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_henry_clay
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_henry_clay
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_henry_clay
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_henry_clay
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_daniel_webster = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_daniel_webster
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_daniel_webster
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_daniel_webster
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_daniel_webster
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_charles_finney = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_charles_finney
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_charles_finney
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_charles_finney
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_charles_finney
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_robert_rantoul = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_robert_rantoul
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_robert_rantoul
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_robert_rantoul
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_robert_rantoul
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_winfield_scott = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_winfield_scott
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_winfield_scott
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_winfield_scott
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_winfield_scott
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_cornelius_vanderbilt = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_cornelius_vanderbilt
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_cornelius_vanderbilt
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_cornelius_vanderbilt
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_cornelius_vanderbilt
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_zachary_taylor = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_zachary_taylor
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_zachary_taylor
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_zachary_taylor
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_zachary_taylor
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_isaac_hull = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_isaac_hull
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_isaac_hull
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_isaac_hull
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_isaac_hull
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_elie_augustus_frederick_lavallette = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_elie_augustus_frederick_lavallette
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_elie_augustus_frederick_lavallette
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_elie_augustus_frederick_lavallette
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_elie_augustus_frederick_lavallette
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_lincoln_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_lincoln_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_lincoln_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_lincoln_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_lincoln_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_andrew_jackson_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_andrew_jackson_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_andrew_jackson_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_andrew_jackson_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_andrew_jackson_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_roosevelt_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_roosevelt_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_roosevelt_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_roosevelt_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_roosevelt_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_jp_morgan_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_jp_morgan_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_jp_morgan_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_jp_morgan_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_jp_morgan_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_thomas_edison_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_thomas_edison_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_thomas_edison_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_thomas_edison_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_thomas_edison_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_uom_mkc = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = uom_mkc
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = uom_mkc
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = uom_mkc
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = uom_mkc
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_mark_twain_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_mark_twain_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_mark_twain_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_mark_twain_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_mark_twain_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_jesup = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_jesup
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_jesup
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_jesup
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_jesup
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_admiral_shubrick = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_shubrick
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_shubrick
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_shubrick
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_shubrick
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_admiral_dewey = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_dewey
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_dewey
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_dewey
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_dewey
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_admiral_farragut = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_farragut
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_farragut
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_farragut
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_farragut
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_admiral_perry = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_perry
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_perry
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_perry
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_perry
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_admiral_buchanan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_buchanan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_buchanan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_admiral_buchanan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_admiral_buchanan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_lee = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_lee
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_lee
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_lee
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_lee
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_jackson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_jackson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_jackson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_jackson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_jackson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_longstreet = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_longstreet
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_longstreet
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_longstreet
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_longstreet
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_sherman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_sherman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_sherman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_sherman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_sherman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_chaffee = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_chaffee
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_chaffee
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_chaffee
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_chaffee
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_grant = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_grant
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_grant
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_grant
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_grant
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_pershing = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_pershing
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_pershing
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_pershing
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_pershing
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_general_sheridan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_sheridan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_sheridan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_general_sheridan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_general_sheridan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_USA_william_cramp = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_william_cramp
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_william_cramp
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = USA_william_cramp
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = USA_william_cramp
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_rockefeller_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_rockefeller_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_rockefeller_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_rockefeller_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_rockefeller_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_carnegie_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_carnegie_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_carnegie_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_carnegie_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_carnegie_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_samuel_colt = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_samuel_colt
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_samuel_colt
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_samuel_colt
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_samuel_colt
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_robert_e_lee_wilson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_robert_e_lee_wilson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_robert_e_lee_wilson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_robert_e_lee_wilson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_robert_e_lee_wilson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Venezuela - VENEZUELA

create_VNZ_Jose_Maria_Ponce = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Jose_Maria_Ponce
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Jose_Maria_Ponce
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Jose_Maria_Ponce
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Jose_Maria_Ponce
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_Jose_Paez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Jose_Paez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Jose_Paez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Jose_Paez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Jose_Paez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_tomas_lander = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_tomas_lander
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_tomas_lander
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_tomas_lander
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_tomas_lander
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_francisco_jose_rangel = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_jose_rangel
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_jose_rangel
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_jose_rangel
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_jose_rangel
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_Jose_Monagas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Jose_Monagas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Jose_Monagas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Jose_Monagas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Jose_Monagas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_Santiago_Marino = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Santiago_Marino
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Santiago_Marino
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Santiago_Marino
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Santiago_Marino
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_Tomas_de_Heres = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Tomas_de_Heres
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Tomas_de_Heres
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_Tomas_de_Heres
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_Tomas_de_Heres
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_fermin_toro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_fermin_toro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_fermin_toro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_fermin_toro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_fermin_toro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_antonio_leocadio_guzman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_antonio_leocadio_guzman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_antonio_leocadio_guzman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_antonio_leocadio_guzman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_antonio_leocadio_guzman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_manuel_felipe_de_tovar = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_manuel_felipe_de_tovar
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_manuel_felipe_de_tovar
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_manuel_felipe_de_tovar
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_manuel_felipe_de_tovar
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_juan_pablo_rojas_paul = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_juan_pablo_rojas_paul
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_juan_pablo_rojas_paul
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_juan_pablo_rojas_paul
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_juan_pablo_rojas_paul
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_manuel_antonio_matos = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_manuel_antonio_matos
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_manuel_antonio_matos
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_manuel_antonio_matos
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_manuel_antonio_matos
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_jose_gil_fortoul = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_gil_fortoul
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_gil_fortoul
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_gil_fortoul
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_gil_fortoul
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_juan_vicente_gomez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_juan_vicente_gomez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_juan_vicente_gomez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_juan_vicente_gomez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_juan_vicente_gomez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_silvestre_guevara_y_lira = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_silvestre_guevara_y_lira
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_silvestre_guevara_y_lira
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_silvestre_guevara_y_lira
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_silvestre_guevara_y_lira
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_jose_manuel_hernandez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_manuel_hernandez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_manuel_hernandez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_manuel_hernandez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_manuel_hernandez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_leopoldo_baptista = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_leopoldo_baptista
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_leopoldo_baptista
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_leopoldo_baptista
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_leopoldo_baptista
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_eleazar_lopez = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_eleazar_lopez
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_eleazar_lopez
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_eleazar_lopez
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_eleazar_lopez
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_antonio_aranguren = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_antonio_aranguren
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_antonio_aranguren
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_antonio_aranguren
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_antonio_aranguren
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_manuel_landaeta = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_manuel_landaeta
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_manuel_landaeta
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_manuel_landaeta
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_manuel_landaeta
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_jose_gregorio_monagas = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_gregorio_monagas
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_gregorio_monagas
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_gregorio_monagas
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_gregorio_monagas
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_julian_castro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_julian_castro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_julian_castro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_julian_castro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_julian_castro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_carlo_castelli = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_carlo_castelli
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_carlo_castelli
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_carlo_castelli
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_carlo_castelli
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_francisco_linares_alcantara = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_linares_alcantara
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_linares_alcantara
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_linares_alcantara
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_linares_alcantara
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_antonio_guzman_blanco = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_antonio_guzman_blanco
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_antonio_guzman_blanco
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_antonio_guzman_blanco
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_antonio_guzman_blanco
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_ezequiel_zamora = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_ezequiel_zamora
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_ezequiel_zamora
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_ezequiel_zamora
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_ezequiel_zamora
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_joaquin_crespo = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_joaquin_crespo
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_joaquin_crespo
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_joaquin_crespo
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_joaquin_crespo
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_juan_cristostomo_falcon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_juan_cristostomo_falcon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_juan_cristostomo_falcon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_juan_cristostomo_falcon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_juan_cristostomo_falcon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_cipriano_castro = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_cipriano_castro
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_cipriano_castro
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_cipriano_castro
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_cipriano_castro
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_felix_galavis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_felix_galavis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_felix_galavis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_felix_galavis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_felix_galavis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_jose_ramon_yepes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_ramon_yepes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_ramon_yepes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jose_ramon_yepes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jose_ramon_yepes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_francisco_hernaiz = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_hernaiz
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_hernaiz
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_hernaiz
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_hernaiz
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_francisco_betancourt_sosa = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_betancourt_sosa
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_betancourt_sosa
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_francisco_betancourt_sosa
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_francisco_betancourt_sosa
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_jesus_faria = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jesus_faria
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jesus_faria
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_jesus_faria
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_jesus_faria
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_VNZ_rafael_simon_urbina = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_rafael_simon_urbina
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_rafael_simon_urbina
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = VNZ_rafael_simon_urbina
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = VNZ_rafael_simon_urbina
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

#Agitadores - AGITATORS

create_agitator_pierre_joseph_proudhon = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_pierre_joseph_proudhon
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_pierre_joseph_proudhon
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_pierre_joseph_proudhon
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_pierre_joseph_proudhon
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_errico_malatesta = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_errico_malatesta
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_errico_malatesta
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_errico_malatesta
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_errico_malatesta
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_henry_ford = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_henry_ford
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_henry_ford
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_henry_ford
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_henry_ford
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_louise_michel = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_louise_michel
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_louise_michel
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_louise_michel
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_louise_michel
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_emiliano_zapata = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_emiliano_zapata
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_emiliano_zapata
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_emiliano_zapata
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_emiliano_zapata
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_ernst_rohm = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ernst_rohm
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ernst_rohm
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ernst_rohm
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ernst_rohm
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_frederick_douglass = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_frederick_douglass
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_frederick_douglass
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_frederick_douglass
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_frederick_douglass
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_ahmed_urabi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ahmed_urabi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ahmed_urabi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ahmed_urabi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ahmed_urabi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_eugene_debs = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_eugene_debs
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_eugene_debs
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_eugene_debs
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_eugene_debs
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_saigo_takamori = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_saigo_takamori
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_saigo_takamori
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_saigo_takamori
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_saigo_takamori
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_wichaichan = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_wichaichan
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_wichaichan
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_wichaichan
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_wichaichan
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_enver_pasha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_enver_pasha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_enver_pasha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_enver_pasha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_enver_pasha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_alfred_hugenberg = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_alfred_hugenberg
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_alfred_hugenberg
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_alfred_hugenberg
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_alfred_hugenberg
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_susan_b_anthony = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_susan_b_anthony
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_susan_b_anthony
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_susan_b_anthony
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_susan_b_anthony
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_giovanni_gentile = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_giovanni_gentile
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_giovanni_gentile
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_giovanni_gentile
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_giovanni_gentile
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_lajos_kossuth = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_lajos_kossuth
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_lajos_kossuth
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_lajos_kossuth
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_lajos_kossuth
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_ludwik_mieroslawski = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ludwik_mieroslawski
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ludwik_mieroslawski
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ludwik_mieroslawski
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ludwik_mieroslawski
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_francesco_crispi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francesco_crispi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francesco_crispi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francesco_crispi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francesco_crispi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_bjornstjerne_bjornson = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_bjornstjerne_bjornson
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_bjornstjerne_bjornson
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_bjornstjerne_bjornson
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_bjornstjerne_bjornson
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_orla_lehmann = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_orla_lehmann
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_orla_lehmann
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_orla_lehmann
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_orla_lehmann
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_prince_sabahaddin = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_prince_sabahaddin
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_prince_sabahaddin
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_prince_sabahaddin
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_prince_sabahaddin
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_francisco_madero = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francisco_madero
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francisco_madero
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francisco_madero
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francisco_madero
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_gabriele_d_annunzio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_gabriele_d_annunzio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_gabriele_d_annunzio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_gabriele_d_annunzio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_gabriele_d_annunzio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_jean_jaures = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_jean_jaures
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_jean_jaures
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_jean_jaures
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_jean_jaures
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_viggo_horup = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_viggo_horup
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_viggo_horup
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_viggo_horup
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_viggo_horup
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_georg_brandes = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_georg_brandes
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_georg_brandes
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_georg_brandes
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_georg_brandes
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_alexis_de_tocqueville = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_alexis_de_tocqueville
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_alexis_de_tocqueville
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_alexis_de_tocqueville
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_alexis_de_tocqueville
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_jose_do_patrocinio = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_jose_do_patrocinio
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_jose_do_patrocinio
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_jose_do_patrocinio
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_jose_do_patrocinio
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_karl_liebknecht = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_karl_liebknecht
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_karl_liebknecht
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_karl_liebknecht
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_karl_liebknecht
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_francesc_pi_i_margall = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francesc_pi_i_margall
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francesc_pi_i_margall
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francesc_pi_i_margall
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francesc_pi_i_margall
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_manuel_ruiz_zorrilla = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_manuel_ruiz_zorrilla
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_manuel_ruiz_zorrilla
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_manuel_ruiz_zorrilla
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_manuel_ruiz_zorrilla
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_francois_rene_de_la_tour_du_pin_chambly = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francois_rene_de_la_tour_du_pin_chambly
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francois_rene_de_la_tour_du_pin_chambly
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_francois_rene_de_la_tour_du_pin_chambly
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_francois_rene_de_la_tour_du_pin_chambly
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_antonio_sardinha = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_antonio_sardinha
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_antonio_sardinha
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_antonio_sardinha
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_antonio_sardinha
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_ion_dragoumis = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ion_dragoumis
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ion_dragoumis
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_ion_dragoumis
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_ion_dragoumis
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_sandor_petofi = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_sandor_petofi
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_sandor_petofi
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_sandor_petofi
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_sandor_petofi
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_harriet_tubman = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_harriet_tubman
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_harriet_tubman
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_harriet_tubman
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_harriet_tubman
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_web_du_bois = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_web_du_bois
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_web_du_bois
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_web_du_bois
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_web_du_bois
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_alexandru_bogdan_pitesti = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_alexandru_bogdan_pitesti
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_alexandru_bogdan_pitesti
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_alexandru_bogdan_pitesti
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_alexandru_bogdan_pitesti
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_jules_brunet = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_jules_brunet
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_jules_brunet
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_jules_brunet
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_jules_brunet
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_giuseppe_mazzini = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_giuseppe_mazzini
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_giuseppe_mazzini
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_giuseppe_mazzini
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_giuseppe_mazzini
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_delescluze_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_delescluze_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_delescluze_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_delescluze_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_delescluze_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_blanqui_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_blanqui_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_blanqui_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_blanqui_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_blanqui_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_john_brown_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_john_brown_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_john_brown_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_john_brown_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_john_brown_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_maurras_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_maurras_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_maurras_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_maurras_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_maurras_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_napoleon_iii_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_napoleon_iii_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_napoleon_iii_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_napoleon_iii_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_napoleon_iii_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_usa_joshua_norton_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_joshua_norton_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_joshua_norton_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = usa_joshua_norton_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = usa_joshua_norton_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pol_rosa_luxemburg_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pol_rosa_luxemburg_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pol_rosa_luxemburg_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pol_rosa_luxemburg_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pol_rosa_luxemburg_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_georges_sorel_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_georges_sorel_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_georges_sorel_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_georges_sorel_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_georges_sorel_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_georges_boulanger_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_georges_boulanger_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_georges_boulanger_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_georges_boulanger_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_georges_boulanger_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_pru_ferdinand_lassalle_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_ferdinand_lassalle_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_ferdinand_lassalle_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = pru_ferdinand_lassalle_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = pru_ferdinand_lassalle_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_brz_luis_gama_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_luis_gama_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_luis_gama_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = brz_luis_gama_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = brz_luis_gama_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_fra_victor_hugo_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_victor_hugo_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_victor_hugo_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = fra_victor_hugo_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = fra_victor_hugo_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_karl_marx = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_karl_marx
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_karl_marx
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_karl_marx
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_karl_marx
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_charlie_marx = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_charlie_marx
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_charlie_marx
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_charlie_marx
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_charlie_marx
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_agitator_kras_masov = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_kras_masov
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_kras_masov
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = agitator_kras_masov
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = agitator_kras_masov
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ada_lovelace_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ada_lovelace_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ada_lovelace_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ada_lovelace_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ada_lovelace_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_ibsen_character_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ibsen_character_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ibsen_character_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = ibsen_character_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = ibsen_character_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_albert_einstein_template = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = albert_einstein_template
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = albert_einstein_template
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = albert_einstein_template
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = albert_einstein_template
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}

create_GRE_alexandros_koumoundouros = {
    scope = country

    effect = {
        if = {
            limit = {
                AND = {
                    has_variable = grupoInteresse
                    OR = {
                        has_variable = governante
                        has_variable = herdeiro
                        has_variable = almirante
                        has_variable = comandante
                        has_variable = agitador
                    }
                }
            }
            if = {
                limit = {
                    has_variable = idadePersonalizada
                }
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_alexandros_koumoundouros
                        birth_date = xxxx.xx.xx
                        culture = primary_culture
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_alexandros_koumoundouros
                        birth_date = xxxx.xx.xx
                        age = var:idadePersonagem
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                
            }
            else = {
                if = {
                    limit = {
                        has_variable = cultura
                    }
                    create_character = {
                        template = GRE_alexandros_koumoundouros
                        culture = primary_culture
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
                else = {
                    create_character = {
                        template = GRE_alexandros_koumoundouros
                        ruler = var:governante
                        heir = var:herdeiro
                        noble = no
                        is_admiral = var:almirante
                        is_agitator = var:agitador
                        is_general = var:comandante
                        interest_group = var:grupoInteresse
                    }
                }
            }
        }
    }
}
