namespace = merg_check

country_event = {
    id = merg_check.1
    hide_window = yes
    is_triggered_only = yes

    trigger = {
        has_country_flag = merg_host_country
    }

    immediate = {
        # UGRP
        if = {
            limit = { merg_has_ugrp = yes }
            country_event = { id = merg_redalert.1 }
        }
        # Real Space
        if = {
            limit = {
                merg_has_real_space = yes
                has_rs_comp_patch = no
            }
            country_event = { id = merg_check.2 }
        }
        # Girls Frontline
        if = {
            limit = {
                merg_has_girls_frontline = yes
                has_gf_comp_patch = no
            }
            country_event = { id = merg_check.3 }
        }
        # Expanded Pops
        if = {
            limit = {
                merg_has_expanded_pops = yes
                has_expops_compatch = no
            }
            country_event = { id = merg_check.4 }
        }
        # Maiden Frontier Gunstar
        if = {
            limit = {
                merg_has_gunstar = yes
                has_msgsc_compatch = no
            }
            country_event = { id = merg_check.5 }
        }
        # Madoka Magicka New
        if = {
            limit = {
                any_country = { has_country_flag = maju_country }
            }
            set_global_flag = merg_madoka_detected
        }
        if = {
            limit = {
                merg_has_madoka = yes
                has_madoka_comp = no
            }
            country_event = {
                id = merg_check.6
            }
        }
        # Wula Fallen Empire
        if = {
            limit = {
                merg_has_wula_fe = yes
                has_wula_compatch = no
            }
            country_event = { id = merg_check.7 }
        }
        # Expanded Events
        if = {
            limit = {
                merg_has_expanded_events = yes
                has_expevents_compatch = no
            }
            country_event = { id = merg_check.8 }
        }
        # Expanded Megastructures and Technology
        if = {
            limit = {
                merg_has_expanded_megas = yes
                has_emt_compatch = no
            }
            country_event = { id = merg_check.9 }
        }
    }
}

country_event = {
    id = merg_check.2
    title = TRANSMISSION
    desc = merg_check.2.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
country_event = {
    id = merg_check.3
    title = TRANSMISSION
    desc = merg_check.3.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
country_event = {
    id = merg_check.4
    title = TRANSMISSION
    desc = merg_check.4.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
country_event = {
    id = merg_check.5
    title = TRANSMISSION
    desc = merg_check.5.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
country_event = {
    id = merg_check.6
    title = TRANSMISSION
    desc = merg_check.6.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
country_event = {
    id = merg_check.7
    title = TRANSMISSION
    desc = merg_check.7.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
country_event = {
    id = merg_check.8
    title = TRANSMISSION
    desc = merg_check.8.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
country_event = {
    id = merg_check.9
    title = TRANSMISSION
    desc = merg_check.9.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}


namespace = merg_redalert
country_event = {
    id = merg_redalert.1
    title = merg.2.name
    desc = merg.2.desc
    picture = GFX_evt_communication_event
    show_sound = event_default
    is_triggered_only = yes

    option = {
        name = UNDERSTOOD
    }
}
