SighPie / HFM

# Historical Flavour Mod
106 stars 60 forks source link

Persia gets Qeshm back if unequal treaty decision is taken BEFORE the event for core-returns pops. #161

Open Danarca opened 5 years ago

Danarca commented 5 years ago

I just had the Anglo-Persian war, and upon winning it I take Qeshm through the given decision.

The event for giving Afghanistan Kandahar then fires, but also gives Qeshm backs to Persia.

I believe this is a bug?

CipKac commented 5 years ago

I'll assume here you don't know the console commands for land swap. In any case, it might help people who don't. You can easily work around the issue by using them:

Open console

Type provid and press enter.

Type: changeowner (the province id of Qeshm) (tag of your country) without parenthesis.

Press enter and Qeshm will go back to you. ——— From what you described, I think returning other land in Persia is part of the event and WAD. Maybe the dev can be more helpful there.

I usually roleplay in this game, so I would shrug it off as part of the negotiations for Kandahar.

chorious commented 5 years ago

while it's a bug, but I don't know how to fix it quickly. Perhaps the cheating code to make the lang back to your hand will help you. But if you want to fix it, maybe focusing on these codes will make sense:

The Treaty of Paris - Anglo-Persian War

country_event = { id = 99204 title = "EVTNAME99204" desc = "EVTDESC99204" picture = "treaty"

is_triggered_only = yes

option = {
    name = "EVTOPTA99204"
    prestige = -20
    FROM = { end_war = THIS }
    relation = { who = FROM value = 200 }
    diplomatic_influence = { who = FROM value = 500 }
    any_country = {
        limit = {
            OR = {
                in_sphere = FROM
                vassal_of = FROM
                is_greater_power = no
            }
            alliance_with = FROM
            war_with = THIS
        }
        end_war = THIS
    }
    any_country = {
        limit = {
            OR = {
                vassal_of = FROM
                substate_of = FROM
                tag = AFG
            }
            war_with = THIS
        }
        end_war = THIS
    }
    any_owned = {
        limit = { is_core = AFG }
        remove_core = PER
        secede_province = AFG
    }

    ai_chance = { factor = 100 }
}

}