add_namespace = maratha_event

# Maratha Demands Delhi!
country_event = {
    id = maratha_event.1
    title = maratha_event.1.t
    desc  = maratha_event.1.d

    picture = GFX_report_event_generic_defensive_preparations
    fire_only_once = yes
    is_triggered_only = yes

    option = {
        name = maratha_event.1.a
        ai_chance = { factor = 50 }
        MAH = { country_event = { id = maratha_event.3 days = 1 } }   # << match namespace
        hidden_effect = { }
    }

    option = {
        name = maratha_event.1.b
        ai_chance = { factor = 50 }
        MAH = { country_event = { id = maratha_event.2 days = 1 } }   # << match namespace
        hidden_effect = { }
    }
}

# The Mughals Refuse to give us Delhi
country_event = {
    id = maratha_event.2
    title = maratha_event.2.t
    desc  = maratha_event.2.d

    picture = GFX_report_event_spr_spanish_civil_war2
    fire_only_once = yes
    is_triggered_only = yes

    option = {
        name = maratha_event.2.a
        trigger = { }
        ai_chance = { factor = 1 }
        MUG = {
            create_wargoal = {
                type = puppet_wargoal_focus
                target = MAH              # (likely what you intended; target = MUG would be self-targeting)
            }
        }
        hidden_effect = { }
    }
}

# The Mughals Gave us Delhi!
country_event = {
    id = maratha_event.3
    title = maratha_event.3.t
    desc  = maratha_event.3.d
    

    picture = GFX_report_event_spain_civil_war_soldiers
    fire_only_once = yes
    is_triggered_only = yes

    option = {
        name = maratha_event.3.a
        trigger = { }
        ai_chance = { factor = 1 }

        # Make the transfer unambiguous: give 439 to MAH explicitly.
        MAH = { transfer_state = 439 }

        hidden_effect = { }
    }
}

country_event = {
    id = maratha_event.4
    title = maratha_event.4.t
    desc  = maratha_event.4.d
    

    picture = GFX_report_event_indian_parade
    fire_only_once = yes
    is_triggered_only = yes

    option = {
        name = maratha_event.4.a
    }
}
