• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(70871)

Corporal
Mar 5, 2007
32
0
I use these events for that

Code:
##################################################  #######################
#  14302 - France returns capital to Paris
##################################################  #######################
event = {
	id = 14302
	random = no
	country = FRA

	name = "France returns capital to Paris"
	desc = "We must restore our capital."
	style = 0
	picture = "ger_surrender"

	trigger = {
		AND = {
			NOT = { exists = GER }
			owned = { province = 56 data = FRA }
		}
	}

	date = { day = 2 month = january year = 1936 }
	offset = 1 # Check for trigger conditions day
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
		name = "Fix it" #
		ai_chance = 100
		command = { type = capital which = 56 }
	}
}

##################################################  #######################
#  14305 - Holland returns capital to Amsterdam
##################################################  #######################
event = {
	id = 14305
	random = no
	country = HOL

	name = "Holland returns capital to Amsterdam"
	desc = "We must restore our capital."
	style = 0
	picture = "ger_surrender"

	trigger = {
		AND = {
			NOT = { exists = GER }
			owned = { province = 47 data = HOL }
		}
	}

	date = { day = 2 month = january year = 1936 }
	offset = 1 # Check for trigger conditions day
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
		name = "Fix it" #
		ai_chance = 100
		command = { type = capital which = 47 }
		command = { type =	addcore   which = 46 }
		command = { type =	addcore   which = 47 }
		command = { type =	addcore   which = 48 }
		command = { type =	addcore   which = 49 }
		command = { type =	addcore   which = 77 }
		command = { type =	addcore   which = 78 }
		command = { type =	addcore   which = 79 }
	}
}

##################################################  #######################
#  14306 - Belgium returns capital to Brussels
##################################################  #######################
event = {
	id = 14306
	random = no
	country = BEL

	name = "Belgium returns capital to Brussels"
	desc = "We must restore our capital."
	style = 0
	picture = "ger_surrender"

	trigger = {
		AND = {
			NOT = { exists = GER }
			owned = { province = 51 data = BEL }
		}
	}

	date = { day = 2 month = january year = 1936 }
	offset = 1 # Check for trigger conditions day
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
		name = "Fix it" #
		ai_chance = 100
		command = { type = capital which = 51 }
		command = { type =	addcore   which = 45 }
		command = { type =	addcore   which = 50 }
		command = { type =	addcore   which = 51 }
		command = { type =	addcore   which = 52 }
		command = { type =	addcore   which = 65 }
		command = { type =	addcore   which = 68 }
		command = { type =	addcore   which = 69 }
		command = { type =	addcore   which = 70 }
		command = { type = removecore which = 1095 }
		command = { type = removecore which = 1142 }
		command = { type = removecore which = 1098 }
		command = { type = removecore which = 1127 }
		command = { type = removecore which = 1144 }
		command = { type = removecore which = 1143 }
		command = { type = removecore which = 1074 }
		command = { type = removecore which = 1071 }
		command = { type = removecore which = 1072 }
		command = { type = removecore which = 1073 }
		command = { type = removecore which = 1063 }
	}
}


Noline
 

Empire Builders

Captain
22 Badges
Jul 21, 2009
356
2
  • Hearts of Iron II: Armageddon
  • Arsenal of Democracy
  • Darkest Hour
  • Victoria 2: A House Divided
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • 500k Club
  • Victoria 2
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - Parklife Pre-Order
  • Cities in Motion 2
I use these events for that

Code:
##################################################  #######################
#  14302 - France returns capital to Paris
##################################################  #######################
event = {
	id = 14302
	random = no
	country = FRA

	name = "France returns capital to Paris"
	desc = "We must restore our capital."
	style = 0
	picture = "ger_surrender"

	trigger = {
		AND = {
			NOT = { exists = GER }
			owned = { province = 56 data = FRA }
		}
	}

	date = { day = 2 month = january year = 1936 }
	offset = 1 # Check for trigger conditions day
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
		name = "Fix it" #
		ai_chance = 100
		command = { type = capital which = 56 }
	}
}

##################################################  #######################
#  14305 - Holland returns capital to Amsterdam
##################################################  #######################
event = {
	id = 14305
	random = no
	country = HOL

	name = "Holland returns capital to Amsterdam"
	desc = "We must restore our capital."
	style = 0
	picture = "ger_surrender"

	trigger = {
		AND = {
			NOT = { exists = GER }
			owned = { province = 47 data = HOL }
		}
	}

	date = { day = 2 month = january year = 1936 }
	offset = 1 # Check for trigger conditions day
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
		name = "Fix it" #
		ai_chance = 100
		command = { type = capital which = 47 }
		command = { type =	addcore   which = 46 }
		command = { type =	addcore   which = 47 }
		command = { type =	addcore   which = 48 }
		command = { type =	addcore   which = 49 }
		command = { type =	addcore   which = 77 }
		command = { type =	addcore   which = 78 }
		command = { type =	addcore   which = 79 }
	}
}

##################################################  #######################
#  14306 - Belgium returns capital to Brussels
##################################################  #######################
event = {
	id = 14306
	random = no
	country = BEL

	name = "Belgium returns capital to Brussels"
	desc = "We must restore our capital."
	style = 0
	picture = "ger_surrender"

	trigger = {
		AND = {
			NOT = { exists = GER }
			owned = { province = 51 data = BEL }
		}
	}

	date = { day = 2 month = january year = 1936 }
	offset = 1 # Check for trigger conditions day
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
		name = "Fix it" #
		ai_chance = 100
		command = { type = capital which = 51 }
		command = { type =	addcore   which = 45 }
		command = { type =	addcore   which = 50 }
		command = { type =	addcore   which = 51 }
		command = { type =	addcore   which = 52 }
		command = { type =	addcore   which = 65 }
		command = { type =	addcore   which = 68 }
		command = { type =	addcore   which = 69 }
		command = { type =	addcore   which = 70 }
		command = { type = removecore which = 1095 }
		command = { type = removecore which = 1142 }
		command = { type = removecore which = 1098 }
		command = { type = removecore which = 1127 }
		command = { type = removecore which = 1144 }
		command = { type = removecore which = 1143 }
		command = { type = removecore which = 1074 }
		command = { type = removecore which = 1071 }
		command = { type = removecore which = 1072 }
		command = { type = removecore which = 1073 }
		command = { type = removecore which = 1063 }
	}
}


Noline

Where can add it ?

Thanks!
 

Pal

King of the mushroom cloud
108 Badges
Oct 7, 2003
2.797
8
  • Arsenal of Democracy
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Victoria 3 Sign Up
  • Europa Universalis 4: Emperor
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Europa Universalis IV
  • For The Glory
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Rome Gold
  • Victoria 2
  • 500k Club
  • Cities: Skylines
  • Mount & Blade: Warband
  • Paradox Order
  • Stellaris: Galaxy Edition
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III

Pal

King of the mushroom cloud
108 Badges
Oct 7, 2003
2.797
8
  • Arsenal of Democracy
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Victoria 3 Sign Up
  • Europa Universalis 4: Emperor
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Europa Universalis IV
  • For The Glory
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Rome Gold
  • Victoria 2
  • 500k Club
  • Cities: Skylines
  • Mount & Blade: Warband
  • Paradox Order
  • Stellaris: Galaxy Edition
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III
It works, thank you!

And how can let the Italy capital return to Rome and Yugoslavia return to Belglade?

The same way? Look in province.csv for the province ids (or in the game: F12 "showid" F12 ENTER) and be sure to change country tags and event id.