
part = {
    location = 3
    localization = origin_plnmg_builder_start_msg

    trigger = {
        or = {
            has_origin = origin_planetmega_builder
            capital_scope = {
                count_deposit = {
                    count = 1
                    limit = { is_plnmg_any_mega = yes }
                }
            }
        }
        not = { has_country_flag = custom_start_screen }
    }
}

part = {
    location = 3
    localization = origin_plnmg_worshipper_start_msg

    trigger = {
        or = {
            has_origin = origin_planetmega_worshipper
            capital_scope = {
                count_deposit = {
                    count = 1
                    limit = { is_plnmg_any_destroyed_mega = yes }
                }
            }
        }
        nor = {
            has_country_flag = custom_start_screen
            has_civic = civic_planetmega_worshipper
        }
    }
}
part = {
    location = 3
    localization = origin_plnmg_worshipper_spiritualist_start_msg

    trigger = {
        has_civic = civic_planetmega_worshipper
        or = {
            has_origin = origin_planetmega_worshipper
            capital_scope = {
                count_deposit = {
                    count = 1
                    limit = { is_plnmg_any_destroyed_mega = yes }
                }
            }
        }
        not = { has_country_flag = custom_start_screen }
    }
}

### custom
#origin-rationalist
part = {
    location = 0
    localization = origin_plnmg_rationalist_start_msg_first_reg
    trigger = {
        has_origin = origin_planetmega_rationalist
        is_gestalt = no
    }
}
part = {
    location = 0
    localization = origin_plnmg_rationalist_start_msg_first_ges
    trigger = {
        has_origin = origin_planetmega_rationalist
        is_gestalt = yes
    }
}
part = {
    location = 1
    localization = origin_plnmg_rationalist_start_msg_last
    trigger = {
        has_origin = origin_planetmega_rationalist
    }
}
