Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Danarca opened this issue Feb 28, 2019 · 2 comments

Comments

@Danarca
Copy link

Danarca commented Feb 28, 2019

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
Copy link

CipKac commented Mar 1, 2019

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
Copy link

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 }
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants