• 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.

Turk75

Private
22 Badges
Apr 13, 2007
21
0
  • Europa Universalis IV: Wealth of Nations
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Hi! I've done a event for the creation of prussia like this.

country_event = {

id = 7016

trigger = {
NOT = { exists = PRU }
NOT = { has_country_flag = prussian_nation_declined }
NOT = { exists = GER }
NOT = { has_country_flag = german_nation_declined }
OR = {
TAG = BRA
TAG = TEU
}
owns = 40 # Memel
owns = 41 # Ostpreussen
owns = 42 # Warmia
owns = 48 # Hinterpommern
owns = 49 # Neumark
owns = 50 # Brandenburg
owns = 52 # Altmark
owns = 51 # Ruppin
war = no
}

mean_time_to_happen = {

months = 60

modifier = {
factor = 0.95
owns = 45 # Lübeck
}
modifier = {
factor = 0.95
owns = 47 # Vorpommern
}
modifier = {
factor = 0.95
owns = 254 # Poznan
}
modifier = {
factor = 0.95
owns = 43 # Danzig
}
modifier = {
factor = 0.95
owns = 53 # Lüneburg
}
modifier = {
factor = 0.95
owns = 58 # Anhalt
}
modifier = {
factor = 0.95
owns = 57 # Hannover
}

}

title = "Nasce la Prussia"
desc = "Di fronte alla minaccia francese i principi tedeschi seppero costituire un fronte unico della nazione germanica."

option = {
name = "Dai vita alla Prussia"
ai_chance = { factor = 75 }
change_tag = PRU
PRU = {
add_core = 40 # Memel
add_core = 41 # Ostpreussen
add_core = 42 # Warmia
add_core = 48 # Hinterpommern
add_core = 49 # Neumark
add_core = 50 # Brandenburg
add_core = 52 # Altmark
add_core = 51 # Ruppin
}
capital = 41
primary_culture = prussian
government = feudal_monarchy
centralization_decentralization = -2
merchants = 1
random_owned = {
base_tax = 1
}
prestige = 0.05
}

option = {
name = "Rifiuta la possibilità"
ai_chance = { factor = 25 }
set_country_flag = prussian_nation_declined
centralization_decentralization = 2
random_owned = {
base_tax = -1
}
}
}

only one question:
I would like to set that at the creatione of new state (Prussia) this state have casus belli against other state (es. Austria); how can I set this in the file event? which command must I use for this?

somebody can explain me?

thank a lot ;)
 

jarnomiedema

First Lieutenant
96 Badges
May 28, 2006
210
82
  • Cities: Skylines - After Dark
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Warlock 2: The Exiled
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Semper Fi
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Nemesis
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
That looks very good! I'm pretty bad at writing events, so I was hoping somebody would make a Prussia event.. There's a Prussia mod out there, but I don't like playing mods if I can just add a simple event and be done with it..

Great job! Could you translate the Italian text for us, perhaps? :)

As for the Casus Belli, as said, I'm pretty bad at writing events, so I'm afraid I can't help you out.. But I'm sure there are others who know the answer!
 

Turk75

Private
22 Badges
Apr 13, 2007
21
0
  • Europa Universalis IV: Wealth of Nations
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
pierreluc said:
Watch out! :rolleyes:

You need to use add_casus_belli = HAB to give Prussia a casus belli on a country. Casus_belli = HAB gives a casus belli to Austria on you.

That would turn your world a bit upside down. :p

Thank a lot...
and in which part of the text must I put this?
I try with add_casus_belli = HAB put immediatly after TAG = PRU....

another question...

how can I change the controller (not owner right) of 1 province (Neumark) in the savegame? or in the game with consolle?

there is one method?

thanks a lot... ;)

PS: for the traduction I can try :p
 

Hartman

Second Lieutenant
76 Badges
Apr 6, 2005
191
0
  • 500k Club
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler: Cold War
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Magicka
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings III: Royal Edition
  • Europa Universalis III
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Cities in Motion
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • King Arthur II
Excellent! I've been hoping somebody would make an event like this. I tried making one myself, but being unsure if I did it right, I went and deleted it before it could have possibly fired :(
 

Obentraut

First Lieutenant
99 Badges
Jan 27, 2007
241
0
  • Victoria 2
  • Europa Universalis III Complete
  • King Arthur II
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Supreme Ruler 2020
  • Impire
  • Victoria 2: A House Divided
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings III
  • Europa Universalis III
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • A Game of Dwarves
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Maybe you should have posted this threat in the modding subforum to recieve detailed help?

Well I don't know much about eventscripting. :(
but concerning your question how to change an owners province:
there are such events, like in the magna-mundi mod.
So maybe someone of them could answer to your question?


My thoughts on the problems:

Maybe you should create an empty dummy-country tag, such as ZZZ.
then give the province in question to this country.

option = { ZZZ={add_core = ###} # where ### is the province-id

I dont know if this is enough to release the country ZZZ ?

then you need to inherit that dummy by:
option = { PRU = {inherit = ZZZ}}

Then you have changed the province ownership to prussia.


I dont know if this could be a solution, but maybe someone more advanced in eventscripting could answer to that?
 

Manziel

Lt. General
9 Badges
Feb 25, 2007
1.268
1
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
Turk75 said:
how can I change the controller (not owner right) of 1 province (Neumark) in the savegame? or in the game with consolle?
open the savegame with notepad or a similar editor. then search for the capital of neumark. some lines above there should be something like
controller="XXX" (XXX=tag of the controlling nation)
then change the tag to your tag and the province is controlled by you
 
Jan 9, 2005
8.858
5
I made one a while ago. Here's my attempt. :)

Code:
country_event = {

	id = 1016

	trigger = {
		NOT = { exists = PRU }
		NOT = { has_country_flag = prussian_nation_declined }
		OR = {
			culture_group = baltic
			primary_culture = estonian
			primary_culture = prussian
		}
		owns = 40		# Memel
		owns = 41		# Ostpreussen
		owns = 42		# Warmia
		war = no
	}
	
	mean_time_to_happen = {
	
		months = 216
	
		modifier = {
			factor = 0.95
			owns = 35	# Osel
		}
		modifier = {
			factor = 0.95
			owns = 36	# Estland
		}
		modifier = {
			factor = 0.95
			owns = 37	# Livland
		}
		modifier = {
			factor = 0.95
			owns = 38	# Riga
		}
		modifier = {
			factor = 0.95
			owns = 39	# Kurland
		}
		modifier = {
			factor = 0.95
			owns = 47	# Vorpommern
		}
		modifier = {
			factor = 0.95
			owns = 48	# Hinterpommern
		}
		modifier = {
			factor = 0.95
			owns = 49	# Neumark
		}
		modifier = {
			factor = 0.95
			owns = 50	# Brandenburg
		}
		modifier = {
			factor = 0.95
			owns = 51	# Ruppin
		}
		modifier = {
			factor = 0.95
			owns = 52	# Altmark
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -3 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 2
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 4
		}
		modifier = {
			factor = 0.7
			idea = military_drill
		}
		modifier = {
			factor = 0.7
			idea = national_conscripts
		}
		modifier = {
			factor = 0.9
			ADM = 7
		}
		modifier = {
			factor = 0.8
			MIL = 8
		}
		modifier = {
			factor = 0.8
			statesman = 6
		}
	}
	
	title = "EVTNAME1016"
	desc = "EVTDESC1016"
	
	option = {
		name = "EVTOPTA1016"
		ai_chance = { factor = 75 }
		PRU = {
			add_core = 35		# Osel
			add_core = 36		# Estland
			add_core = 37		# Livland
			add_core = 38		# Riga
			add_core = 39		# Kurland
			add_core = 40		# Memel
			add_core = 41		# Ostpreussen
			add_core = 42		# Warmia
			add_core = 43		# Danzig
			add_core = 47		# Vorpommern
			add_core = 48		# Hinterpommern
			add_core = 49		# Neumark
			add_core = 50		# Brandenburg
			add_core = 51		# Ruppin
			add_core = 52		# Altmark
		}
		capital = 41 # Königsberg
		colonists = 1
		random_owned = {
			base_tax = 1
		}
		centralization_decentralization = -2
		prestige = 0.05
		change_tag = PRU
	}

	option = {
		name = "EVTOPTB1016"
		ai_chance = { factor = 25 }
		set_country_flag = prussian_nation_declined
		centralization_decentralization = 2
		random_owned = {
			base_tax = -1
		}
	}
}
 

Turk75

Private
22 Badges
Apr 13, 2007
21
0
  • Europa Universalis IV: Wealth of Nations
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Manziel said:
open the savegame with notepad or a similar editor. then search for the capital of neumark. some lines above there should be something like
controller="XXX" (XXX=tag of the controlling nation)
then change the tag to your tag and the province is controlled by you

thanks

mandead said:
I made one a while ago. Here's my attempt. :)

Code:
country_event = {

	id = 1016

	trigger = {
		NOT = { exists = PRU }
		NOT = { has_country_flag = prussian_nation_declined }
		OR = {
			culture_group = baltic
			primary_culture = estonian
			primary_culture = prussian
		}
		owns = 40		# Memel
		owns = 41		# Ostpreussen
		owns = 42		# Warmia
		war = no
	}
	
	mean_time_to_happen = {
	
		months = 216
	
		modifier = {
			factor = 0.95
			owns = 35	# Osel
		}
		modifier = {
			factor = 0.95
			owns = 36	# Estland
		}
		modifier = {
			factor = 0.95
			owns = 37	# Livland
		}
		modifier = {
			factor = 0.95
			owns = 38	# Riga
		}
		modifier = {
			factor = 0.95
			owns = 39	# Kurland
		}
		modifier = {
			factor = 0.95
			owns = 47	# Vorpommern
		}
		modifier = {
			factor = 0.95
			owns = 48	# Hinterpommern
		}
		modifier = {
			factor = 0.95
			owns = 49	# Neumark
		}
		modifier = {
			factor = 0.95
			owns = 50	# Brandenburg
		}
		modifier = {
			factor = 0.95
			owns = 51	# Ruppin
		}
		modifier = {
			factor = 0.95
			owns = 52	# Altmark
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -3 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 2
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 4
		}
		modifier = {
			factor = 0.7
			idea = military_drill
		}
		modifier = {
			factor = 0.7
			idea = national_conscripts
		}
		modifier = {
			factor = 0.9
			ADM = 7
		}
		modifier = {
			factor = 0.8
			MIL = 8
		}
		modifier = {
			factor = 0.8
			statesman = 6
		}
	}
	
	title = "EVTNAME1016"
	desc = "EVTDESC1016"
	
	option = {
		name = "EVTOPTA1016"
		ai_chance = { factor = 75 }
		PRU = {
			add_core = 35		# Osel
			add_core = 36		# Estland
			add_core = 37		# Livland
			add_core = 38		# Riga
			add_core = 39		# Kurland
			add_core = 40		# Memel
			add_core = 41		# Ostpreussen
			add_core = 42		# Warmia
			add_core = 43		# Danzig
			add_core = 47		# Vorpommern
			add_core = 48		# Hinterpommern
			add_core = 49		# Neumark
			add_core = 50		# Brandenburg
			add_core = 51		# Ruppin
			add_core = 52		# Altmark
		}
		capital = 41 # Königsberg
		colonists = 1
		random_owned = {
			base_tax = 1
		}
		centralization_decentralization = -2
		prestige = 0.05
		change_tag = PRU
	}

	option = {
		name = "EVTOPTB1016"
		ai_chance = { factor = 25 }
		set_country_flag = prussian_nation_declined
		centralization_decentralization = 2
		random_owned = {
			base_tax = -1
		}
	}
}
it looks very good.... only a difference I set that the event is only for 2 state
OR = {
TAG = BRA
TAG = TEU
}

I do that cause I prefer to limit this event storically :)
 

Turk75

Private
22 Badges
Apr 13, 2007
21
0
  • Europa Universalis IV: Wealth of Nations
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
a little problem with the event...
if it fired by game all perfect less the change of government that remain teocracy....

if I lunch it from consolle ("event 7016") all ok the creation of prussia and the change of type of government...

Someone can help me to understand why fired by game the event don't change tipe of government???
Funny that firing by consolle is all ok....
Suggestion?
 

unmerged(57964)

Corporal
Jun 11, 2006
28
0
A translation is in this quote.

Turk75 said:
Hi! I've done a event for the creation of prussia like this.

country_event = {

id = 7016

trigger = {
NOT = { exists = PRU }
NOT = { has_country_flag = prussian_nation_declined }
NOT = { exists = GER }
NOT = { has_country_flag = german_nation_declined }
OR = {
TAG = BRA
TAG = TEU
}
owns = 40 # Memel
owns = 41 # Ostpreussen
owns = 42 # Warmia
owns = 48 # Hinterpommern
owns = 49 # Neumark
owns = 50 # Brandenburg
owns = 52 # Altmark
owns = 51 # Ruppin
war = no
}

mean_time_to_happen = {

months = 60

modifier = {
factor = 0.95
owns = 45 # Lübeck
}
modifier = {
factor = 0.95
owns = 47 # Vorpommern
}
modifier = {
factor = 0.95
owns = 254 # Poznan
}
modifier = {
factor = 0.95
owns = 43 # Danzig
}
modifier = {
factor = 0.95
owns = 53 # Lüneburg
}
modifier = {
factor = 0.95
owns = 58 # Anhalt
}
modifier = {
factor = 0.95
owns = 57 # Hannover
}

}

title = "The Birth of Prussia"
desc = "To face the French menace head-on, the German princes knew they needed to constitute a united front for the German nation."

option = {
name = "Give life to Prussia!"
ai_chance = { factor = 75 }
change_tag = PRU
PRU = {
add_core = 40 # Memel
add_core = 41 # Ostpreussen
add_core = 42 # Warmia
add_core = 48 # Hinterpommern
add_core = 49 # Neumark
add_core = 50 # Brandenburg
add_core = 52 # Altmark
add_core = 51 # Ruppin
}
capital = 41
primary_culture = prussian
government = feudal_monarchy
centralization_decentralization = -2
merchants = 1
random_owned = {
base_tax = 1
}
prestige = 0.05
}

option = {
name = "Refuse the possibility"
ai_chance = { factor = 25 }
set_country_flag = prussian_nation_declined
centralization_decentralization = 2
random_owned = {
base_tax = -1
}
}
}

only one question:
I would like to set that at the creatione of new state (Prussia) this state have casus belli against other state (es. Austria); how can I set this in the file event? which command must I use for this?

somebody can explain me?

thank a lot ;)